Page 1 of 1

4.1[release] PCI passthrough fails with general failure

Posted: 11. Jul 2011, 17:35
by levk
I made a brand new VM - no OS or anything - and attached my onboard NIC to it, after installing the latest extpack the VM fails on start with general failure:

Image

I've tried it first while the NIC was on [edit: on the host] and then I did 'modprobe -r' [again, on the host] on it and tried again, same picture. The machine started normally after detaching the PCI (into a missing boot drive)

The host is a Dell Optiplex 960 3.16GHz Core2 Duo with Q45 chipset (from what I can tell), running uptodate Ubuntu 11.04, VT-d is checked on in the BIOS.

Here are just the basics, I'm also attaching all the logs it created

levk@levk:~/Downloads$ lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
00:03.0 Communication controller: Intel Corporation 4 Series Chipset HECI Controller (rev 03)
00:03.2 IDE interface: Intel Corporation 4 Series Chipset PT IDER Controller (rev 03)
00:03.3 Serial controller: Intel Corporation 4 Series Chipset Serial KT Controller (rev 03)
00:19.0 Ethernet controller: Intel Corporation 82567LM-3 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801JD/DO (ICH10 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a2)
00:1f.0 ISA bridge: Intel Corporation 82801JDO (ICH10DO) LPC Interface Controller (rev 02)
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801JD/DO (ICH10 Family) SMBus Controller (rev 02)
levk@levk:~/Downloads$ vboxmanage modifyvm vtd --pciattach 00:19.0
levk@levk:~/Downloads$ sudo lshw -C network -sanitize
*-network
description: Ethernet interface
product: 82567LM-3 Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 02
serial: [REMOVED]
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=1.2.20-k2 duplex=half firmware=0.5-3 ip=[REMOVED] latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:48 memory:fe6e0000-fe6fffff memory:fe6d9000-fe6d9fff ioport:ecc0(size=32)
levk@levk:~/Downloads$ sudo modprobe -r e1000e
levk@levk:~/Downloads$ sudo modprobe e1000e
levk@levk:~/Downloads$ vboxmanage modifyvm vtd --pcidetach 00:19.0

Re: 4.1b2 PCI passthrough fails with general failure

Posted: 11. Jul 2011, 17:36
by levk
Last log file

EDIT:

CONFIG_DMAR should be enabled on my kernel as per https://bugs.launchpad.net/ubuntu/+sour ... bug/552311 and I just thought these might be appropriate as well, although I can't tell if it's good or bad:

levk@levk:~/VirtualBox VMs/vtd/Logs$ sudo dmesg | grep DMAR
[sudo] password for levk:
[ 0.000000] ACPI: DMAR 00000000000fce0c 00120 (v01 DELL B10K 00000015 ASL 00000061)
[ 0.170046] DMAR: Host address width 36
[ 0.170047] DMAR: DRHD base: 0x000000fedc1000 flags: 0x0
[ 0.170056] DMAR: DRHD base: 0x000000fedc2000 flags: 0x0
[ 0.170062] DMAR: DRHD base: 0x000000fedc3000 flags: 0x0
[ 0.170067] DMAR: DRHD base: 0x000000fedc4000 flags: 0x1
[ 0.170074] DMAR: RMRR base: 0x000000cda58000 end: 0x000000cda6ffff
[ 0.170075] DMAR: RMRR base: 0x000000cdc00000 end: 0x000000cfffffff
[ 0.170076] DMAR: No ATSR found
levk@levk:~/VirtualBox VMs/vtd/Logs$ sudo dmesg | grep PCI-DMA
[ 2.652147] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)

Re: 4.1b2 PCI passthrough fails with general failure

Posted: 12. Jul 2011, 11:45
by frank
Please also attach the output of 'dmesg' from the host after you tried to start this VM.

Re: 4.1b2 PCI passthrough fails with general failure

Posted: 12. Jul 2011, 16:47
by levk
Attached.

Re: 4.1b2 PCI passthrough fails with general failure

Posted: 12. Jul 2011, 20:17
by levk
Actually that dmesg doesn't have the intel_iommu=on boot option, which is why that log says IOMMU not found, I have this log with the boot option where it finds IOMMU, but I still get a general failure trying to start it.

Re: 4.1b2 PCI passthrough fails with general failure

Posted: 15. Jul 2011, 16:44
by levk
Just posting to say I'm still getting this on b3 with b3 extension pack. dmesg and VBox.log attached

Re: 4.1[release] PCI passthrough fails with general failure

Posted: 19. Jul 2011, 16:38
by levk
I'm still getting this with release, should I open a ticket?

Re: 4.1[release] PCI passthrough fails with general failure

Posted: 19. Jul 2011, 16:48
by Perryg
levk wrote:I'm still getting this with release, should I open a ticket?
I would repost here first.