Comment on virtualizing PFSense. What else works besides ESXi for virtual networking?
tofubl@discuss.tchncs.de 10 months agoI have another question, if you don’t mind: I have a debian/incus+opnsense setup now, created bridges for my NICs with systemd-networkd and attached the bridges to the VM like you described. I have the host configured with DHCP on the LAN bridge and ideally (correct me if I’m wrong, please), I’d like the host to not touch the WAN bridge at all (other than creating it and hooking it up to the NIC).
Here’s the problem: if I don’t configure the bridge on the host with either dhcp or a static IP, the opnsense VM also doesn’t receive an IP on that interface. I have a br0.netdev to set up the bridge, a br0.network to connect the bridge to the NIC, and a wan.network to assign a static IP on br0, otherwise nothing works. (While I’m working on this, I have the WAN port connected to my old LAN, if it makes a difference.)
My question is: Is my expectation wrong or my setup? Am I mistaken that the host shouldn’t be configured on the WAN interface? Can I solve this by passing the pci device to the VM, and what’s the best practice here?
Thank you for taking a look! 😊
TCB13@lemmy.world 10 months ago
I think there’s something wrong with your setup. One of my machines has a
br0
and a setup like yours.10-enp5s0.network
is the physical “WAN” interface:Now, I have a profile for “bridged” containers:
And one of my VMs with this profile:
Inside the VM the network is configured like this:
Can you check if your config is done like this? If so it should work.
tofubl@discuss.tchncs.de 10 months ago
My config was more or less identical to yours, and that removed some doubt and let me focus on the right part: Without a
wan0.network
, the host isn’t bringing upbr0
on boot. I thought it had something to do with the interface having an IP, but turns out the following works as well:Thank you once again!
TCB13@lemmy.world 10 months ago
Oh, now I remembered that there’s
ActivationPolicy=
on[Link]
that can be used to control what happens to the interface. At some point I even reported a bug on that feature and vlans ahah github.com/systemd/systemd/issues/22593tofubl@discuss.tchncs.de 10 months ago
You know your stuff, man! It’s exactly as you say. 🙏