[Spice-devel] How to use spice in gpu passthrough case?
John Y.
wjseven1707 at gmail.com
Thu Jan 12 10:55:41 UTC 2017
I passed a nvidia graphic card to a virtual machine with KVM.
I seted '-vga none' because vga in qemu will conflict with the gpu that I
passed to VM in windows 7. I will get code 12 with graphic card in Device
Manager when I set '-vga cirrus' or '-vga qxl'.
I could not connect to VM by spice because I had set '-vga none'.
The '-vga cirrus' will not conflict with the gpu in Windows 10, but spice
will connect to vga instead of the graphic card that I passed to VM.
How can I connet to the graphic card and controll the vm by spice?
Here my qemu command:
/root/qemu25/qemu/x86_64-softmmu/qemu-system-x86_64 \
-name i-gputest \
-machine pc \
-m 2048 \
-boot strict=on \
-smp 2,sockets=1,cores=2,threads=1 \
-hda /root/gputest/windows7.raw \
-k en-us \
-drive
if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd
\
-drive if=pflash,format=raw,file=/root/gputest/OVMF_VARS-pure-efi.fd \
-device vfio-pci,host=44:00.0,multifunction=on,x-vga=on \
-device vfio-pci,host=44:00.1 \
-spice port=5944,disable-ticketing \
-vga none
Regards,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170112/d4cff8aa/attachment.html>
More information about the Spice-devel
mailing list