Comment on Setting Up OPNsense on Proxmox: Doubts regarding NIC setup
NarrativeBear@lemmy.world 22 hours agoHonestly I don’t know enough to answer that question fully.
From what I understand PCI addresses (01:00.0) are dynamically assigned by the motherboard’s BIOS at boot. Adding or removing PCIe devices, enabling M.2 drives, or adjusting BIOS settings often shifts your device addresses up or down which can prevent a VM from starting up.
Reading online though, there now seems to be a workaround to this issue. I might need to give it a shot on my Proxmox machine.
“PCI ID overrides” is the term in this document to search for.
I have one more doubt.
(Nothing setup as of now, just checking all possible angles)
Since, as per your suggestion, I have passed the NIC to OPNsense, so Proxmox won’t see the dual NIC card. The onboard ethernet port
eth3is connected to a switch and Proxmox will useeth3.Image Here’s a fresh diagram
You can see that I have a Ubuntu VM. How will the PC communicate with the VM? (Links E and D are hypothetical. I don’t know which one is better given my scenario). Will it be
C -> B -> DorC -> A -> E?Case #1:
C -> B -> DThe switch must differentiate between uplink traffic/proxmox traffic/other physical devices connected to the switch (phone/TV). I prefer this solution because even if OPNsense is down, I can still access the Ubuntu server. But the switch must handle this complexity. I will be getting a managed switch anyway.
Case #2:
C -> A -> EThe interface
eth2, which OPNsense is using, must have some sort of routing table which redirects to linksEorFdepending upon destination IP (Probably implemented using virtual bridge or virtual switch). This is simpler for the switch but if OPNsense is down, i lose direct network access to the VM. I can probably access it via Proxmox web-interface.Can you tell me which one is preferred or which one you would have done?
Sorry for my ramblings.