Virtual Machine hangs while starting with GPU attached via PCI passthrough

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ambuj
Posts: 1
Joined: 20. Jul 2017, 13:21

Virtual Machine hangs while starting with GPU attached via PCI passthrough

Post by ambuj »

I have a Linux Host (Ubuntu 14.04). I've installed CentOS 7 guest on VirtualBox 5.1.22 (with extension pack).

I've two NVIDIA K20X GPU on my system:

Code: Select all

lspci -nn | grep NVIDIA
84:00.0 3D controller [0302]: NVIDIA Corporation GK110GL [Tesla K20Xm] [10de:1021] (rev a1)
85:00.0 3D controller [0302]: NVIDIA Corporation GK110GL [Tesla K20Xm] [10de:1021] (rev a1)
I tried to attach one of the GPUs to my VM:

Code: Select all

VBoxManage modifyvm "VM name" --pciattach 85:00.0@01:05.0
I have IOMMU enabled in BIOS and system boots with it:

Code: Select all

dmesg | grep IOMMU
[    0.000000] DMAR: IOMMU enabled
[    0.097288] DMAR-IR: IOAPIC id 3 under DRHD base  0xfbffe000 IOMMU 0
[    0.097292] DMAR-IR: IOAPIC id 0 under DRHD base  0x97ffc000 IOMMU 1
[    0.097295] DMAR-IR: IOAPIC id 2 under DRHD base  0x97ffc000 IOMMU 1
[   48.699760] vboxpci: IOMMU found
Now when I start my VM it is stuck in a dialog box at 20% saying "Starting Virtual Machine ... 2/2"

The VBox.log has the last entry as:

Code: Select all

00:00:00.920798 ACPI: enabling 64-bit prefetch root bus resource 0x00000004bcc00000..0x0000000fffffffff
I'm unable to figure out the issue. Can anyone please help? The dmesg log at the end shows the dump after starting the VM. I've attached the logs.
Attachments
dmesg.log
(105.03 KiB) Downloaded 8 times
VBox.log
(43.15 KiB) Downloaded 10 times
VMInfo.log
(4.14 KiB) Downloaded 9 times
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: Virtual Machine hangs while starting with GPU attached via PCI passthrough

Post by frank »

Passing through a GPU is unlikely to work. The PCI passthrough code is a bit outdated.
Post Reply