OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: deasmi on March 24, 2021, 02:26:03 PM

Title: Moving config
Post by: deasmi on March 24, 2021, 02:26:03 PM
I have recently had an upgrade to a gigabit network connection ( lucky me !) that is making my PC Engines APU2 creak at the seams.

Before I decide on new hardware I wanted to press an old quad-core server into service.

This should, I thought, be easy. Four hours later I've given up to have a lie down.

The APU2 has, only, as serial console. The PC doesn't have a serial console but does have VGA.

So when I restore the config at next boot everything goes wrong and I can't get it up to a menu again.
As I can't get to the menu I can't assign the interfaces.
As I can't assign the interfaces I can't get into the gui....

Does anyone know the correct procedure to restore a backup and change the console type at the same time?
Can I edit the backup file in some way?
Should I just start the config from scratch?

Thanks in advance
Title: Re: Moving config
Post by: chemlud on March 24, 2021, 02:35:15 PM
Hi!

I haven't done that, but you could open config.xml with a text editor and add/change

<primaryconsole>video</primaryconsole>
...
<secondaryconsole>serial</secondaryconsole>


that's the original line from a config.xml with  primary video console...

Other option: try as long as you find the correct interface with your LAN settings and get an IP,  log into the box via ssh...
Title: Re: Moving config
Post by: Inxsible on March 24, 2021, 04:05:38 PM
In addition to the console, wouldn't your APU have different NICs and therefore drivers as compared to your PC?

You would usually need to also change the interfaces-- say from igb0 to em0 or re0 etc etc. -- in the XML file. What NICs do you have on the APU and the PC?
Title: Re: Moving config
Post by: deasmi on March 24, 2021, 04:31:03 PM
Quote from: chemlud on March 24, 2021, 02:35:15 PM
Hi!

I haven't done that, but you could open config.xml with a text editor and add/change

<primaryconsole>video</primaryconsole>
...
<secondaryconsole>serial</secondaryconsole>


that's the original line from a config.xml with  primary video console...

Other option: try as long as you find the correct interface with your LAN settings and get an IP,  log into the box via ssh...

Changing to video worked !

Thank you.