virtualization.lisp 978 B

12345678910111213141516171819202122232425262728
  1. (in-package :stumpwm)
  2. (defcommand virt-manager () ()
  3. "Start or focus virt-manager."
  4. (run-or-raise "virt-manager" '(:class ".virt-manager-real")))
  5. (defcommand looking-glass-client () ()
  6. "Start of focus looking-glass-client-wrapper."
  7. (run-or-raise "looking-glass-client-wrapper -F"
  8. '(:class "looking-glass-client")))
  9. (defcommand qemu-debian () ()
  10. "Run GNOME Debian in QEMU."
  11. (run-shell-command (concat "exec " (getenv "HOME") "/bin/debian.sh")))
  12. (defcommand debian-unstable () ()
  13. (run-shell-command
  14. (join (list "qemu-system-x86_64" "-daemonize" "-smp" "cores=4,threads=1"
  15. "-m" "4096" "-enable-kvm" "-cpu" "host" "-daemonize"
  16. "-vnc" ":5" "-hda" "~/vm/debian-unstable.qcow2"
  17. "-cdrom" "~/Downloads/debian-testing-amd64-netinst.iso"))))
  18. (defcommand epson () ()
  19. (term-shell-command "sudo qemu-epson.sh"))
  20. (defcommand epson-no-graphic () ()
  21. (term-shell-command "sudo qemu-epson.sh -display none"))