Proxmox Network Adapter Pass Through
Long time ago, I konw virtualization is go very good solution to server. But how about router build in virtualization? After tried to do it, I was failed. because virtual switch made networking very slow. So i just use dedicate server as a router.
Recently days, I just learn proxmox and find pci-e pass through function. I think maybe it is way to make routing virtualization.
Here are what I do:
Enable VT-d and X2APic Mode
Configure BIOS to enable VT-d and X2APic
Chang Grub boot settings
Inel CPU
Edit grub configure.
Inter CPU
Edit grub
Edit
/etc/default/grub, then changeGRUB_CMDLINE_LINUX_DEFAULT="quiet"toGRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"Update grub
update-grub
AMD CPU
Edit grub file.
Edit
/etc/default/grubChange
GRUB_CMDLINE_LINUX_DEFAULT="quiet"toGRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"Update grub
update-grub
##Change Required modules
- Edit /etc/modules
Add
| |
- Check IOMMU enable or not
| |
- script to make sure IOMMU is enabled
| |
- Verify IOMMU isolation
| |
Add PCI-E Device to VM
- Run
lspcito check address of network pci-e adapter device. like this
| |
| |
- Add configure of yoru VM
/etc/pve/qemu-server/<vmid>.conf - Add configure like this to set pci-expres passthrough.
| |