Skip to content

Instantly share code, notes, and snippets.

@mvlabat
Created April 1, 2016 15:30
Show Gist options
  • Save mvlabat/44e98a0a9b258c16e1f2ec85fd28c9d6 to your computer and use it in GitHub Desktop.
Save mvlabat/44e98a0a9b258c16e1f2ec85fd28c9d6 to your computer and use it in GitHub Desktop.
Qemu run
SPICE_PORT=5924
qemu-system-x86_64 \
-daemonize \
-localtime \
-cpu host \
-enable-kvm \
-hda /home/mvlabat/qemu/WindowsVM.img \
-hdb /dev/sda3 \
-net nic -net user,hostname=windowsvm \
-m 1G \
-vga qxl \
-spice port=${SPICE_PORT},disable-ticketing \
-usbdevice tablet \
-device virtio-serial \
-chardev spicevmc,id=vdagent,name=vdagent \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
"$@"
exec remote-viewer --title Windows spice://127.0.0.1:${SPICE_PORT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment