Created
April 1, 2016 15:30
-
-
Save mvlabat/44e98a0a9b258c16e1f2ec85fd28c9d6 to your computer and use it in GitHub Desktop.
Qemu run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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