tag:blogger.com,1999:blog-8694303781453133223.post3559396005060128582..comments2023-12-12T08:07:13.883-07:00Comments on VFIO tips and tricks: VFIO+VGA FAQAlex Williamsonhttp://www.blogger.com/profile/02071923591707250496noreply@blogger.comBlogger37125tag:blogger.com,1999:blog-8694303781453133223.post-27881179972509390322016-07-24T15:01:03.162-06:002016-07-24T15:01:03.162-06:00This comment has been removed by a blog administrator.vfio-testuserhttps://www.blogger.com/profile/02669270231500657770noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-35447323600868089182016-07-24T13:22:33.837-06:002016-07-24T13:22:33.837-06:00This comment has been removed by a blog administrator.vfio-testuserhttps://www.blogger.com/profile/02669270231500657770noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-82981128954779151762016-05-20T03:21:59.553-06:002016-05-20T03:21:59.553-06:00Try changing you cpu configuration, I had an AMD p...Try changing you cpu configuration, I had an AMD proc, setup with cpu=host shows this BSOD, cpu=phenom solves it...<br />For intel proc, try using different intel arch such as core2duo.<br /><br />Maybe it's too late, but might help someone...Hell_of_BSODhttps://www.blogger.com/profile/05003131095787438062noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-90082558673815999062016-03-05T01:58:57.008-07:002016-03-05T01:58:57.008-07:00Same problem: nvidia error 43 and bsod
My configu...Same problem: nvidia error 43 and bsod<br /><br />My configuration:<br />* Intel i7-6700k, nVidia GTX 950<br />* debian sid<br />* win10<br /><br />Qemu command:<br />qemu-system-x86_64 \<br /> -enable-kvm -M q35,accel=kvm -m 4096 -cpu host,kvm=off,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,hv_vendor_id=Nvidia43FIX -smp 4,sockets=1,cores=2,threads=2 \<br /> -bios /usr/share/seabios/bios.bin -vga std \<br /> -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \<br /> -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on \<br /> -device vfio-pci,host=01:00.1,bus=root.1,addr=00.1 \<br /> -usb -usbdevice host:046d:c52b \<br /> -drive file=/mnt/virt/snapshot.qcow2,id=disk,format=qcow2,if=virtio \<br /> -net nic,macaddr=00:00:00:00:00:46,model=virtio -net bridge \<br /> -rtc base=localtime \<br /> -boot menu=on<br /><br />I can install latest nvidia driver, but:<br />- without kvm=off i got error 43<br />- with kvm=off i got bsod<br /><br />any idea?<br /><br />thanks in advanceAnonymoushttps://www.blogger.com/profile/11966616785443148138noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-49706113556635173962016-02-29T10:37:45.567-07:002016-02-29T10:37:45.567-07:00I was considering doing that as well; might be a f...I was considering doing that as well; might be a few days since I am doing this on a spare drive on my dev machine and have to actually get some work done at some point here.<br /><br />Please update if you get anywhere though (I'll do the same). I'm very interested to see if this is workable. I also considered using virt-manager, but didn't get around to it yet.Anonymoushttps://www.blogger.com/profile/01606733536803952131noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-33709497008721886052016-02-29T09:41:23.057-07:002016-02-29T09:41:23.057-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/01606733536803952131noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-48163670072346032952016-02-29T08:46:50.700-07:002016-02-29T08:46:50.700-07:00It's also my first attempt. I might try an old...It's also my first attempt. I might try an older version of Windows with older nvidia drivers (ie. ones that don't check for KVM) just to make sure that it's not something else causing the error.Anonymoushttps://www.blogger.com/profile/16233614638559977947noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-6302066666779101002016-02-29T07:09:44.466-07:002016-02-29T07:09:44.466-07:00Hm that's very similar indeed... Has this work...Hm that's very similar indeed... Has this worked for you previously? This is my first attempt at a FVIO setup. Might ping the mailing list otherwise.Anonymoushttps://www.blogger.com/profile/01606733536803952131noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-91263731882499180382016-02-29T01:41:06.724-07:002016-02-29T01:41:06.724-07:00I have a similar setup to you (same qemu arguments...I have a similar setup to you (same qemu arguments, also Windows 10 but with a GTX 670) and I am also getting Error 43.Anonymoushttps://www.blogger.com/profile/16233614638559977947noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-29033422810234121702016-02-27T18:41:49.904-07:002016-02-27T18:41:49.904-07:00I'm also getting Error 43 with my GTX 650 on W...I'm also getting Error 43 with my GTX 650 on Windows 10 w/ qemu 2.5.0. Is there anything immediately wrong with my config?<br /><br />qemu-system-x86_64<br />-enable-kvm<br />-cpu host,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,kvm=off,hv_vendor_id=Nvidia43FIX<br />-m 4G<br />-smp 8<br />-boot order=c<br />-drive file=image_file,format=raw<br />-device=vfio-pci,host=01:00.0,multifunction=on<br />-device=vfio-pci,host=01:00.1Anonymoushttps://www.blogger.com/profile/01606733536803952131noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-7937056946583859602016-02-16T11:13:19.626-07:002016-02-16T11:13:19.626-07:00I am having two issues, appreciated if you don'...I am having two issues, appreciated if you don't mind providing some ideas.<br /><br />1. If I check the ROM_BAR checkbox in the PCI devices (graphics and audio) of my AMD 7950, the virtual machine will be stuck right at start, no visual, and CPU usage stuck at 25% of a quad core config.<br /><br />2. If I uncheck the box, I can boot, and I can see the AMD graphics IF I am lucky. I made it work once, for some reason I deleted the domain and used a new one. Then on booting, it kept showing BSoD with SYSTEM_EXCEPTION_NOT HANDLED (atixxxx.xxx)<br /><br />Would you have any ideas?Home labhttps://www.blogger.com/profile/15638557157248840261noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-34460862259241294062016-02-05T12:12:02.999-07:002016-02-05T12:12:02.999-07:00You need to passthrough a complete iommu group. If...You need to passthrough a complete iommu group. If your GTX 660 has also an audio "device" this is often a multifunction pci device on 01:00.1 in your case. This must also be attached to the very same vm.<br /><br />Here's my qemu runtime (I'm using ZFS ZVOL as storage => don't do that if you don't know what you are doing ;) ) and virsh is generating this command for me so some statements appear doubled.<br /><br />/usr/bin/qemu-system-x86_64 <br />-name windows <br />-S<br />-machine pc-q35-2.5,accel=kvm,usb=off // q35 as machine<br />-drive file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd,if=pflash,format=raw,unit=0,readonly=on //uefi boot<br />-drive file=/var/lib/libvirt/qemu/nvram/windows_VARS.fd,if=pflash,format=raw,unit=1 // uefi settings<br />-m 16192 // memory<br />-realtime mlock=off <br />-smp 8,sockets=1,cores=4,threads=2 <br />-uuid 0fb2be0b-9a3c-42d6-8768-e86c5b710c71 <br />-nographic <br />-no-user-config <br />-nodefaults <br />-chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-windows/monitor.sock,server,nowait <br />-mon chardev=charmonitor,id=monitor,mode=control <br />-rtc base=localtime <br />-no-shutdown <br />-global ICH9-LPC.disable_s3=0 <br />-global ICH9-LPC.disable_s4=1 <br />-boot menu=off,strict=on <br />-device i82801b11-bridge,id=pci.1,bus=pcie.0,addr=0x1e <br />-device pci-bridge,chassis_nr=2,id=pci.2,bus=pci.1,addr=0x1 <br />-device ioh3420,port=0xe0,chassis=3,id=pci.3,bus=pcie.0,multifunction=on,addr=0x1c <br />-device ioh3420,port=0x18,chassis=4,id=pci.4,bus=pcie.0,addr=0x3 <br />-device ioh3420,port=0x20,chassis=5,id=pci.5,bus=pcie.0,addr=0x4 <br />-device ich9-usb-ehci1,id=usb,bus=pcie.0,multifunction=on,addr=0x1d.0x7 <br />-device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pcie.0,multifunction=on,addr=0x1d <br />-device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,multifunction=on,addr=0x1d.0x1 <br />-device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,multifunction=on,addr=0x1d.0x2 <br />-drive file=/dev/harbour/windows,format=raw,if=none,id=drive-virtio-disk0,cache=directsync,aio=native <br />-device virtio-blk-pci,scsi=off,bus=pcie.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 <br />-device ich9-intel-hda,id=sound0,bus=pcie.0,addr=0x1b -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 <br />-device vfio-pci,host=01:00.0,id=hostdev0,bus=pci.3,multifunction=on,addr=0x0 // gpu passthroguh<br />-device vfio-pci,host=01:00.1,id=hostdev1,bus=pci.3,addr=0x0.0x1 // gpu-audio hdmi passthrough<br />-device vfio-pci,host=03:00.0,id=hostdev2,bus=pci.4,addr=0x0 // ethernet adapter<br />-device vfio-pci,host=05:00.0,id=hostdev3,bus=pci.5,addr=0x0 // wifi adapter<br />-device usb-host,hostbus=1,hostaddr=5,id=hostdev4 // host usb mouse<br />-device usb-host,hostbus=1,hostaddr=4,id=hostdev5 // host usb keyboard<br />-device virtio-balloon-pci,id=balloon0,bus=pci.2,addr=0x3 <br />-vga none // disable any integrated emulated 1st graphics device<br />-cpu host,kvm=off,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,hv_vendor_id=Nvidia43Fix // disable KVM flag and enable hv windows flags with custom hv vendor<br />-msg timestamp=onAnonymoushttps://www.blogger.com/profile/09440302933459527435noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-87608627016066824292016-02-04T01:23:32.526-07:002016-02-04T01:23:32.526-07:00Specifying -bios /usr/share/ovmf/OVMF.fd doesn'...Specifying -bios /usr/share/ovmf/OVMF.fd doesn't help either.Maxhttps://www.blogger.com/profile/09478622642593602322noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-40855579882037996432016-02-04T00:18:52.073-07:002016-02-04T00:18:52.073-07:00I'm also getting the Code 43 error for an nVid...I'm also getting the Code 43 error for an nVidia card in the device manager.<br /><br />I've tried lots of combinations of -cpu=* settings, but none of them did help. The parameters suggested by Paul Idstein didn't fix it as well.<br /><br />I wonder if someone could give me ideas on how to troubleshoot/investigate it further, since I think I've tried all the combinations I was able to find.<br /><br />Here's my configuration:<br />* Intel 6700k, nVidia 660 GTX.<br />* Host is running Debian Jessie with some packages from Sid, particularly:<br />** Custom-built 4.4 kernel with the VGA arbitration patch.<br />** QEMU 2.5 which contains the fix mentioned by Paul. (Verified by setting vendor ID to more than 12 characters and seeing a message)<br />* Guest video driver version 361.75, which was downgraded during experiments to 341.44.<br /><br />VM configuration:<br />qemu-system-x86_64 \<br /> -enable-kvm \<br /> -cpu host,kvm=off,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,hv_vendor_id=Nvidia43FIX \<br /> -smp 8 \<br /> -m 1536 \<br /> -hda win8.qcow2 \<br /> -device vfio-pci,host=01:00.0 \<br /><br />Notable -cpu flag values that didn't fix the issue:<br />-cpu host,kvm=off<br />-cpu host,kvm=off,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time<br />-cpu host,hv_time,hv_vendor_id=KeenlyKVM<br /><br />Any help would be very appreciated.Maxhttps://www.blogger.com/profile/09478622642593602322noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-26429029504031764872016-01-25T09:58:34.607-07:002016-01-25T09:58:34.607-07:00Ok so I just checked my output in ps aux with the ...Ok so I just checked my output in ps aux with the VM running and its already running with -cpu SandyBridge,kvm=off I suppose the other thing I am doing wrong is using vfio-pci with a legacy VM boot, when I read the section about applying the arbitration patch I did not understand how to apply it when I clicked the link for it. Ill keep trying to read and understand your blog.Anonymoushttps://www.blogger.com/profile/01738328873329721988noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-36003918724545619322016-01-25T09:51:24.225-07:002016-01-25T09:51:24.225-07:00So I read the 5 part VFIO how to, but I do not rem...So I read the 5 part VFIO how to, but I do not remember seeing this, I did see the part where you use the hidden state. and this worked for a windows 10 OVMF setup, but I am needing to use Windows 7 and legacy. And I ready about how this option kvm=off does not get automatically applied if I am using legacy.<br /><br /><br /> <br /><br /><br />So I guess your telling me QEMU needs to be started manually or I need to start the VM Guest via command like with this KVM option off? I have been doing VM management for the most part through the GUI so I have not had to start a VM with command line options before. Ill try and figure it out.Anonymoushttps://www.blogger.com/profile/01738328873329721988noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-41969836587171783562016-01-25T09:09:15.590-07:002016-01-25T09:09:15.590-07:00-cpu is a QEMU command line option. I'd very ...-cpu is a QEMU command line option. I'd very much recommend following the how-to series on this blog, which documents exactly how to configure this.Alex Williamsonhttps://www.blogger.com/profile/02071923591707250496noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-24943356275792935682016-01-25T06:06:11.067-07:002016-01-25T06:06:11.067-07:00I apologize if this is noob question, I am trying ...I apologize if this is noob question, I am trying to learn. But I cannot seem to figure out where cpu options are.Anonymoushttps://www.blogger.com/profile/01738328873329721988noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-18127568269902199442016-01-24T21:31:03.277-07:002016-01-24T21:31:03.277-07:00Where do I put this -cpu host,kvm=off option? I co...Where do I put this -cpu host,kvm=off option? I could not find the CPU options?<br />Anonymoushttps://www.blogger.com/profile/01738328873329721988noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-78163544112163699962016-01-21T06:21:01.150-07:002016-01-21T06:21:01.150-07:00HELL YEAH the newest Proxmox kernel fixed the issu...HELL YEAH the newest Proxmox kernel fixed the issue and my LSI controller finally gets separated from the GPU! Oh my god I'm so happy right now!timo2k11https://www.blogger.com/profile/00986136307107426808noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-50446429012005197862016-01-21T05:53:10.550-07:002016-01-21T05:53:10.550-07:00Also doesn't work with kernel 3.16 and 3.10 wi...Also doesn't work with kernel 3.16 and 3.10 with ACS override patch applied.. I'm starting to think it's a problem with the motherboard? But then I can't believe the guy in the arch forums got it working properly with his 3.15 kernel... Can somebody help me please?timo2k11https://www.blogger.com/profile/00986136307107426808noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-59283253581808809372016-01-19T18:36:00.795-07:002016-01-19T18:36:00.795-07:00This is a typical result for laptop GPUs, there is...This is a typical result for laptop GPUs, there is far more integration and BIOS support required for laptop GPUs than for discrete plugin desktop GPUs.Alex Williamsonhttps://www.blogger.com/profile/02071923591707250496noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-11831703395904311432016-01-19T18:22:27.092-07:002016-01-19T18:22:27.092-07:00Is there anyway to get passed a Code 28? The error...Is there anyway to get passed a Code 28? The error is as follows:<br />"The drivers for this device are not installed. (Code 28)<br />There are no compatible drivers for this device."<br /><br />Installing nvidia drivers also throws this error:<br />"This graphics driver could not find compatible graphics hardware."<br /><br />Device Manager does recognize the correct vendor:device ID as it matches what my host reports. Card is 860M, not trying to use an external monitor(laptop), just trying to get this working via VNC, gpu appears to be passed through and Windows is installed with no other errors, so my hardware meets the requirements. Just cannot get passed Code 28 and no one seems to cover it or talk about it.<br /><br />Do you think this technique could help with my issue? I have full details of my setup posted here: https://www.reddit.com/r/VFIO/comments/41ohss/laptop_with_nvidia_gpu_passed_through_but_cannot/Brennanhttps://www.blogger.com/profile/01883832595973267859noreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-72350107233642944732016-01-16T11:02:12.958-07:002016-01-16T11:02:12.958-07:00Just when I was about to give up, you post this.
L...Just when I was about to give up, you post this.<br />Looks like there might still be hope.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8694303781453133223.post-37032763605237013532016-01-15T08:10:50.776-07:002016-01-15T08:10:50.776-07:00-cpu host,kvm=off,hv_time,hv_relaxed,hv_vapic,hv_s...-cpu host,kvm=off,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,hv_vendor_id=Nvidia43FIXAnonymoushttps://www.blogger.com/profile/09440302933459527435noreply@blogger.com