[SOLVED] NIC passthrough results in loss of connectivity

DialDown

New Member
Apr 15, 2020
2
0
1
32
Currently running Proxmox on a Lenovo T440 Laptop (testing purposes)
This means I have only 1 NIC.

I was trying to install OPNsense, so I followed: (confirmed it is in line with official documentation best practices)
https://fuzzyitlogic.com/2018/11/05/install-opnsense-in-proxmox-ve-on-a-qotom-q355g4/

1. After setting up the configuration, everything was fine, until I started the VM (initial setup) , and then I lost the network connection to the host. (both ssh & web interface)
2. I checked my router and the host's IP 192.168.0.229 in my case, was online, but pinging it from any device from the network time'd out.
3. Ran a <qm stop [VMID] > directly on the host & made sure the VM was stopped, but the connection did not come back
4. Rebooting the host server seems to reset everything & I regain full access
5. If I start the the VM, everything drops again.

Maybe I don't fully understand how passthrough works, but am I just telling the network: ''Ignore the host, just connect my router to the VM'', thus losing all other connections?

lipci output:

Code:
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:16.3 Serial controller: Intel Corporation 8 Series HECI KT (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 6 (rev e4)
00:1c.1 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev 83)

qm config problem VMID output

Code:
bootdisk: scsi0
cores: 2
cpu: host
hostpci0: 00:19.0
ide2: local:iso/OPNsense-20.1-OpenSSL-dvd-amd64.iso,media=cdrom
memory: 2048
name: pvm-hulk-OPNsense
net0: virtio=1A:7B:E7:CF:32:D5,bridge=vmbr0,firewall=1
numa: 0
ostype: other
scsi0: local-lvm:vm-103-disk-0,size=10G
scsihw: virtio-scsi-pci
smbios1: uuid=2010fe32-e390-4ed2-96cd-b362c91280df
sockets: 1
vmgenid: b23605cd-82bb-4872-87a3-bd1d47ba79e8


Code:
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
/sys/kernel/iommu_groups/1/devices/0000:00:02.0
/sys/kernel/iommu_groups/2/devices/0000:00:03.0
/sys/kernel/iommu_groups/3/devices/0000:00:14.0
/sys/kernel/iommu_groups/4/devices/0000:00:16.0
/sys/kernel/iommu_groups/4/devices/0000:00:16.3
/sys/kernel/iommu_groups/5/devices/0000:00:19.0
/sys/kernel/iommu_groups/6/devices/0000:00:1b.0
/sys/kernel/iommu_groups/7/devices/0000:00:1c.0
/sys/kernel/iommu_groups/8/devices/0000:00:1c.1
/sys/kernel/iommu_groups/9/devices/0000:00:1d.0
/sys/kernel/iommu_groups/10/devices/0000:00:1f.0
/sys/kernel/iommu_groups/10/devices/0000:00:1f.2
/sys/kernel/iommu_groups/10/devices/0000:00:1f.3
/sys/kernel/iommu_groups/11/devices/0000:02:00.0
/sys/kernel/iommu_groups/12/devices/0000:03:00.0

Thank you for your time & patience,
Regards,
C
 
Last edited:
AFAICS, you only have one PCI network card (disregarding the wifi one)
you cannot passthrough a nic while using it on the host at the same time,
so either you use virtual nics for the vm, or you install a second nic and pass through that.
 
Thanks, Dominik, it definitely makes sense. I already ordered a USB-to-Ethernet adapter.
Have a great rest of the day & week.

Cheers,
Calin
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!