changing interfaces

Started by 150d, May 08, 2023, 12:37:42 PM

Previous topic - Next topic
Hi,

I'm using OPNsense as a VM on a Proxmox host. A single NIC is "passed through" to the VM as a PCI device. OPNsense then uses a number of VLANs on this connection and is routing between them.

This works great, but it also makes the VM "non-migrateable" because VMs using PCI devices directly can't be moved to another Proxmox host on-the-fly. The alternative would be to give up on the pass-through device and instead provide a Linux Bridge to the VM. This could easily be mirrored on a second host if the need should arise.

But that would be a totally new device to OPNsense and I expect that it would completly screw up its interface mapping. Is there a way to manage this (swap out A for B in some INI file) or would I need to do the whole setup from scratch?

Regards

Probably better to use SDNs in Proxmox and then add virtio interfaces for each network to your OPNsense VM. SDNs are configured in the Datacenter object and are replicated to all nodes in the cluster, so you can then set each NIC to a Vnet ID and migrate in a hardware agnostic manner.

You would then need to migrate your vtnet0.vlanID interfaces to separate vtnetX NICs. There's quite a few posts on here for that, iirc... Essentially you use Interfaces: Assignments in the GUI, made much easier if you used the native VLAN for your LAN (management) interface.