mvlabat
4/1/2016 - 3:30 PM

Qemu run

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}