Learn more about Proxmox PCI passthrough NIC from our experts. Our Proxmox Support team is here to help you with your questions and concerns.
Proxmox PCI passthrough NIC | Enable & Configure
Proxmox VE plays a key role in managing and using computing resources. Furthermore, it can perform PCI passthrough. This involves the direct sharing of PCI devices with virtual machines.
Today, we are going to dive into configuring and verifying PCI passthrough within the Proxmox environment.
- First, we have to log into our Proxmox node through SSH.
- Then, it is time to open the GRUB configuration file and modify the GRUB_CMDLINE_LINUX_DEFAULT=”quiet” line according to our CPU type.
- For Intel CPUs, add: intel_iommu=on
- For AMD CPUs, add: amd_iommu=on
- After making the changes, save the file and exit.
- Then, we have to update GRUB to apply the changes.
How to pass a physical NIC to a VM
- First, we must ensure the hardware and BIOS support and have IOMMU enabled.
- Next, we have to verify that Proxmox recognizes the NIC we want to pass through. We can do this with the lspci command. It will list all PCI devices and identify the NIC by its identifier.
- If the kernel driver binds to the NIC, preventing passthrough, we must blacklist it. We can do that by editing the /etc/modprobe.d/blacklist.conf file and add the following line:
blacklist driver_name
We have to replace driver_name with the kernel driver’s name.
- Then, open the grub configuration file and add the following line:
GRUB_CMDLINE_LINUX_DEFAULT = “quiet intel_iommu=on”
After that, we have to save and update the grub configuration file.
- Now, reboot the Proxmox host to let the IOMMU changes take effect.
- Before passing via the NIC to the VM, we have to make sure it is not in use by the host. We can use this command to detach the NIC:
echo 1 > /sys/bus/pci/devices/0000:xx:xx.x/remove
- Next, head to the Proxmox web interface and go to Datacenter.
- Then, we must choose the node and select the VM.
- After that, we have to click Add under Hardware.
- Next, choose PCI Device and select the PCI device corresponding to the NIC.
- After attaching the NIC, we have to configure its network settings within the guest OS.
Finally, we can confirm the NIC’s functionality within the VM by testing network connectivity and usage.
[Need assistance with a different issue? Our team is available 24/7.]
Conclusion
In summary, our Support Techs introduced us to enabling and configuring the PCI passthrough in Proxmox.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments