Virtualbox PCI Passthrough Notes

· 1 min read
Virtualbox PCI Passthrough Notes

Some notes regarding exposing a PCI card inside a Virtualbox VM

Determine PCI ID on host:

vbox@vbox:~$ lspci|grep Ethernet
01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)

Determine name VM:

vbox@vbox:~$ VBoxManage list runningvms
"node-server" {881f529e-5876-4f95-8784-ec7d8d8c8bf4}

Inside VM, take note of used ID's:

user@node-server:~$ lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0b.0 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)

On Host machine:

$ VBoxManage modifyvm "node-server" --pciattach 01:00.0@01:01.0
VBoxManage: error: Host PCI attachment only supported with ICH9 chipset

So make sure the VM uses ICH9 chipset, change accordingly.

Attach PCI card to VM:

$ VBoxManage modifyvm "node-server" --pciattach 01:00.0@01:01.0

Related Articles

Enable Google Authenticator 2FA for SSH
· 1 min read
Misc Linux tips and tricks
· 2 min read

Virtualbox Admin

I run several machines on top of Virtual Box on Debian (headless). Here some notes I made... Install latest version

· 2 min read

Repair a non booting GRUB installation

Today I had to fix two issues with my computer not booting through grub bootloader. One of the reasons was

· 1 min read