Page 1 of 1

[Solved] GPU Passthrough causes (Windows 7) guest to crash [Ubuntu 14.04]

Posted: 16. Nov 2016, 04:10
by Rapid
Hello,

I've run into a recent issue where running my Windows 7 VM with my GTX 1070 passed through will result in the VM failing to start. I used to be able to run this VM without it crashing (although the GPU did not work). The crashes occurred after a recent update to my Ubuntu 14.04 host.

To verify:
  • I have not added any new hardware.
    My CPU supports VT-D
    My Motherboard supports VT-D
    I have enabled VT-D in my BIOS
    I have enabled IOMMU by editing the grub file
The error reads as follows:

Code: Select all

The VM session was aborted.


Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
SessionMachine
Interface: 
ISession {7844aa05-b02e-4cdd-a04f-ade4a762e6b7}
The machine in its current configuration (with GPU passed through) was able to start previously however now it will only start when the GPU is not passed through.

I have since added the Guest Additions add-on, however it did not solve the issue.

I've looked into the NS_ERROR_FAILURE (0x80004005) error and haven't come across anything that's been able to help me so far.

Additional information:

dmesg | grep iommu output:

Code: Select all

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-47-generic.efi.signed root=UUID=40b8c9c2-7a56-49a1-8054-2815bc68ca57 ro intel_iommu=on
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-47-generic.efi.signed root=UUID=40b8c9c2-7a56-49a1-8054-2815bc68ca57 ro intel_iommu=on
[    0.466372] iommu: Adding device 0000:00:00.0 to group 0
[    0.466384] iommu: Adding device 0000:00:01.0 to group 1
[    0.466391] iommu: Adding device 0000:00:01.1 to group 1
[    0.466398] iommu: Adding device 0000:00:14.0 to group 2
[    0.466406] iommu: Adding device 0000:00:16.0 to group 3
[    0.466413] iommu: Adding device 0000:00:19.0 to group 4
[    0.466419] iommu: Adding device 0000:00:1a.0 to group 5
[    0.466425] iommu: Adding device 0000:00:1b.0 to group 6
[    0.466432] iommu: Adding device 0000:00:1c.0 to group 7
[    0.466439] iommu: Adding device 0000:00:1c.3 to group 8
[    0.466446] iommu: Adding device 0000:00:1c.4 to group 9
[    0.466452] iommu: Adding device 0000:00:1d.0 to group 10
[    0.466464] iommu: Adding device 0000:00:1f.0 to group 11
[    0.466470] iommu: Adding device 0000:00:1f.2 to group 11
[    0.466477] iommu: Adding device 0000:00:1f.3 to group 11
[    0.466481] iommu: Adding device 0000:01:00.0 to group 1
[    0.466485] iommu: Adding device 0000:01:00.1 to group 1
[    0.466489] iommu: Adding device 0000:02:00.0 to group 1
[    0.466493] iommu: Adding device 0000:02:00.1 to group 1
[    0.466499] iommu: Adding device 0000:04:00.0 to group 12
[    0.466507] iommu: Adding device 0000:05:01.0 to group 13
[    0.466514] iommu: Adding device 0000:05:03.0 to group 14
[    0.466520] iommu: Adding device 0000:05:05.0 to group 15
[    0.466527] iommu: Adding device 0000:05:07.0 to group 16
[    0.466533] iommu: Adding device 0000:06:00.0 to group 13
[    0.466538] iommu: Adding device 0000:07:00.0 to group 14
[    0.466543] iommu: Adding device 0000:09:00.0 to group 16
[    0.466550] iommu: Adding device 0000:0a:00.0 to group 17
dmesg | grep IOMMU output:

Code: Select all

[    0.000000] DMAR: IOMMU enabled
[    0.054922] DMAR-IR: IOAPIC id 8 under DRHD base  0xfed90000 IOMMU 0
[   11.831234] AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>
[   11.831236] AMD IOMMUv2 functionality not available on this system
Virtualbox Version:
5.1.8r111374

Virtualbox Extension Pack Version:
5.1.8r111374

Re: GPU Passthrough causes (Windows 7) guest to crash [Ubuntu 14.04]

Posted: 16. Nov 2016, 09:54
by socratis
Rapid wrote:I used to be able to run this VM without it crashing (although the GPU did not work).
Rapid wrote:The machine in its current configuration (with GPU passed through) was able to start previously
So, just to be clear, you've never had a successful start with the GPU passing through, right? And second, the GTX-1070 is your second graphics card, the one not used by the host, right?

Re: GPU Passthrough causes (Windows 7) guest to crash [Ubuntu 14.04]

Posted: 16. Nov 2016, 18:39
by Rapid
Ah, sorry I should have clarified:

I have been able to start the VM with the GPU passed through, but the GPU would not be operational (I kept getting an Error 12 in device manager). The VM would function normally, just with the GPU disabled (I assume it was running off of the CPU integrated graphics). The GPU was detected and driver software could be installed.

Also yes, the GTX 1070 is my second graphics card. The host is using an AMD R9 270X.

Re: GPU Passthrough causes (Windows 7) guest to crash [Ubuntu 14.04]

Posted: 6. Dec 2016, 02:35
by Rapid
So I decided to start up my VM on a whim and the thing boots now. I haven't upgraded the GPU's drivers or Virtualbox. The only changes to the system are the standard upgrades Ubuntu asks me to preform.

The GPU pass-through does not work, although seeing as how it didn't before I had this issue I'm not too fussed about that. The odd thing is that the GPU is now seen as "Video Controller" in the device manager (which never happened before as it was either labeled as Unknown or GTX 1070). Additionally, the old Error 12 that Device Manager was giving me is gone, however it will now show me the memory range that is unavailable.

I am not sure exactly what fixed this problem. I will look into it more and post any findings.