Berikut step by step passthrough NIC/SFP card di Proxmox:
1. Aktifkan IOMMU di Proxmox
Masuk ke shell Proxmox (SSH atau langsung di server).
Edit grub:
Ubah baris:
menjadi:
kalau CPU AMD:
Simpan, lalu update grub:
2. Aktifkan Modul IOMMU
Edit file:
Tambahkan:
3. Cari Device PCI ID SFP Card
Jalankan:
Contoh keluarannya:
Catat bagian [8086:10fb]
→ itu VendorID:DeviceID.
4. Bind Device ke VFIO
Edit file:
Isi:
(sesuaikan ID dengan hasil lspci -nn
)
5. Reboot Server
Agar device di-attach ke VFIO, bukan dipakai oleh Proxmox host.
6. Assign ke VM di Proxmox
Buka Proxmox WebUI → VM → Hardware → Add → PCI Device → pilih NIC/SFP card kamu.
-
Centang All Functions
-
Centang PCI-Express (jika device butuh)
-
Centang Primary GPU (jika device GPU, bukan NIC) → untuk NIC tidak perlu.
7. Install Driver di Guest OS
-
Kalau Windows Server 2022 VM → install driver asli NIC (dari Huawei/Intel/Mellanox sesuai card).
-
Kalau MikroTik CHR → langsung jalan karena dia native support NIC PCI.
Catatan penting:
-
CT (LXC container) tidak bisa passthrough hardware PCI. Jadi jangan pakai CT, harus VM.
-
Dengan passthrough, Proxmox host tidak bisa lagi pakai NIC itu (karena 100% dipakai VM).
-
Kalau mau share, harus pakai SR-IOV (kalau NIC support).