summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/bd--files.el
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-02-04 16:53:11 -0500
committerbd <bdunahu@operationnull.com>2025-02-04 16:53:11 -0500
commit3874a069c4efdaf4f01f22726e05971109420bd3 (patch)
tree8275e6d7d08b7c7c54677558fda9c1f6f5ba7818 /.config/emacs/modules/bd--files.el
parenta2c04467caf56d1a4a63ed709f7b2abf7ed410ee (diff)
Start QEMU in headless with SSH
Diffstat (limited to '.config/emacs/modules/bd--files.el')
-rw-r--r--.config/emacs/modules/bd--files.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/emacs/modules/bd--files.el b/.config/emacs/modules/bd--files.el
index 70deefc..5cf4e86 100644
--- a/.config/emacs/modules/bd--files.el
+++ b/.config/emacs/modules/bd--files.el
@@ -25,7 +25,9 @@
(defun bd/qemu (file)
"Open FILE with QEMU."
(start-process "qemu-system" nil "qemu-system-x86_64" (expand-file-name file)
- "--accel" "kvm" "-m" "4G"))
+ "-nographic" "-net" "nic" "-net"
+ "user,hostfwd=tcp:127.0.0.1:2222-:22" "--accel" "kvm" "-m" "4G")
+ "Running headless.")
(defun bd/rom (file)
"Open FILE with an emulator."
(let ((command