so, I'm a bit new to the aspect of virtualization on Linux, and noticed that i could pass a gpu to the VM, i went ahead and decided to try to accomplish this!
it worked...in a sense, i could start the vm with a script, but once it loaded, it just froze. i can't do anything with it, there's no console, i've even done a vnc setup and it just stays at connecting.
I had it somewhat working before but that was with PCI-Stub instead of what i am doing now, which is vfio-pci.
with PCI-Stub, it froze the qemu console but vnc would connect but it just showed a constant "Starting windows..." screen(trying to install Windows 7)
Specs:
CPU: intel core i5-4690k - linux using HD Graphics from cpu
GPU: ZOTAC AMP! Edition GTX 760 - this is the gpu being passed on
my script to launch is:
the gpu is being bound correctly at startup(at least i think it is):
im not sure if i have missed something or what? i have a monitor connected to said gpu being passed too.
I don't know if this helps solving this but my linux boot is using my IGPU on an intel 4690k. and yes, Intel_IOMMU is on
If there is any other information you need, just lemme know!
EDIT: forgot to mention, im on Ubuntu 16.04 LTS
it worked...in a sense, i could start the vm with a script, but once it loaded, it just froze. i can't do anything with it, there's no console, i've even done a vnc setup and it just stays at connecting.
I had it somewhat working before but that was with PCI-Stub instead of what i am doing now, which is vfio-pci.
with PCI-Stub, it froze the qemu console but vnc would connect but it just showed a constant "Starting windows..." screen(trying to install Windows 7)
Specs:
CPU: intel core i5-4690k - linux using HD Graphics from cpu
GPU: ZOTAC AMP! Edition GTX 760 - this is the gpu being passed on
my script to launch is:
Code:
#!/bin/bashsudo qemu-system-x86_64 -enable-kvm -M pc -m 1024 -cpu host,kvm=off \
-smp 4,sockets=1,cores=4,threads=1 \
-bios /usr/share/seabios/bios.bin -vga none \
-device vfio-pci,host=0000:01:00.0,x-vga=on,multifunction=on -device vfio-pci,host=01:00.1 \
-device qxl \
-vga none \
-vnc :0
exit 0
Code:
[ 28.443019] vfio_pci: add [10de:1187[ffff:ffff]] class 0x000000/00000000[ 28.443023] vfio_pci: add [10de:0e0a[ffff:ffff]] class 0x000000/00000000
[ 131.972538] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
I don't know if this helps solving this but my linux boot is using my IGPU on an intel 4690k. and yes, Intel_IOMMU is on
If there is any other information you need, just lemme know!
EDIT: forgot to mention, im on Ubuntu 16.04 LTS