[SOLVED] How to remove/undo PCIe (NIC) passthrough?

avdol

Member
Mar 6, 2021
14
2
8
33
Hi,

I have a nic passthrough to pfsense which i want to convert to linux bridge. How do i undo a pcie passthrough so that the host can regain control?
 
You remove the "PCI device" from the VMs hardware tab and restart the VM.
I did that but i got this error whilst trying to create a bridge

1687057547057.png

Furthermore, under network for the node, each port of the NIC is not active
1687057574410.png
 
Did you make changes to the kernel parameters and/or files in /etc/modprobe.d/? You probably need to undo them.
Indeed i did. I performed the following to undo the block.

nano /etc/modprobe.d/nicpcie.block.conf

update the file to undo the block by commenting the line i added.
1687083577053.png
nano /etc/modprobe.d/nicblacklist.conf
1687083611157.png

update-initramfs -u -k all

Performed a reboot and now the nic port is active.

1687083781908.png

I've just elaborated for other that may come across the issue. Post will be marked as solved
 

Attachments

  • 1687083706382.png
    1687083706382.png
    18.5 KB · Views: 0
  • Like
Reactions: leesteken
So if it's inactive in the host, does that mean it is blocked already? Proxmox tries to automatically block the nic in the host when passing through, right?
 

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!