Quick Question about moving to new hardware?

Started by RouterGuy2019, December 26, 2024, 06:39:36 PM

Previous topic - Next topic
I am wondering if I move to new hardware, can I backup my current opnsense system and restore it on the new hardware, or will that not work because the hardware it different?

You should be able to do a backup which backs up the config information and restore it to the new hardware once you have Opnsense installed.

Probably the most likely thing that will not match is the NIC devices, unless you choose something with the same type of NICs. You might be able to get away with editing the XML file before restoring on the new box (after figuring out what the NIC devices will be).

It's pretty likely that the NICs will have different names on the new system, but it's not that difficult to edit the config.xml file before import.
Finding out what you need to replace the old names with will likely require running the installation until you get to doing manual interface assignments.
You might actually need to finish the install if the mapping between physical ports and device names is not straightforward (if you have more than 2 ports and care which ones are to be used).

You can actually import more than just the config.xml if you'd like.
Some details here: https://forum.opnsense.org/index.php?topic=44276
On bare metal, you'd want the ISO on a 2nd USB stick.

Thanks to everyone that replied, this is kind of what I suspected was that the NIC's would identify differently and I would have to manually edit the .xml file, but I was hoping there was an easier way.  I will give it a go and report back when I get a chance to try it.

Its very simple I did it like year ago.

You just have to edit out the physical NIC and replace them with the new physical NICs. Everything else can remain.

Basically in my case I replaced igb with igc and done.

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD

The editing in itself is fairly trivial. It's just that some machines don't make it easy.
I have one where the physical ports 1-4 ended up enumerating in the 1-4-2-3 order... You won't know until you try.