OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: mircsicz on June 23, 2018, 01:19:53 pm

Title: using the configuration importer during installation
Post by: mircsicz on June 23, 2018, 01:19:53 pm
As I'm currently preparing a replacement router for a client I wanted to use the offered option during Installation:

Code: [Select]
Press any key to start the configuration importer: ..

But entering the USB Stick's device name only lead's me to an error message. If I google for that message I find this Topic (https://forum.opnsense.org/index.php?topic=6315.msg26774#msg26774). And additionally I found that (https://forum.opnsense.org/index.php?topic=3297.0), but none of those solve the issue by using the offer during install.

BTW: I'm using OPNsense-18.1.6-OpenSSL-serial-amd64.img

So if I enter the drive's dev name all I get is:

Code: [Select]
Press any key to start the configuration importer: ..

<SATA SSD S9FM02.9>                at scbus0 target 0 lun 0 (pass0,ada0)
<Verbatim STORE N GO 5.00>         at scbus2 target 0 lun 0 (pass1,da0)
<General USB Flash Disk 1.00>      at scbus3 target 0 lun 0 (pass2,da1)

Select device to import from (e.g. ada0) or leave blank to exit: da0

No known partition layout was found for 'da0'.

<SATA SSD S9FM02.9>                at scbus0 target 0 lun 0 (pass0,ada0)

So for this time I'll stick with the import through the WebGUI, but for the future I'ld love to have an USB-Stick at hand that I connect in next to the installer stick and have some Client config's on that...

So my question is how has the partition layout to be like, to be able to make a use of the offered import option?
Title: Re: using the configuration importer during installation
Post by: franco on June 23, 2018, 05:22:44 pm
Hi mircsicz,

The importer requires a previous installation to import a configuration from.

I think what you're looking for is this:

https://github.com/opnsense/core/issues/1372

There have been many ideas over the years, yet few people who are willing to work on it.


Cheers,
Franco
Title: Re: using the configuration importer during installation
Post by: Davesworld on June 24, 2018, 01:55:53 am
Hi mircsicz,

The importer requires a previous installation to import a configuration from.

I think what you're looking for is this:

https://github.com/opnsense/core/issues/1372

There have been many ideas over the years, yet few people who are willing to work on it.


Cheers,
Franco

And it has to be a single drive install, Geom Mirror or ZFS Raid will not work.
Title: Re: using the configuration importer during installation
Post by: franco on June 24, 2018, 09:10:19 am
That seems so, but it's untrue:

For mirror and RAID use mirror/NAME or raid/NAME respectively. It always worked. 18.7 makes this clearer:

https://github.com/opnsense/core/commit/68ac728d1fec

For ZFS use "zfsroot" on 18.7.


Cheers,
Franco
Title: Re: using the configuration importer during installation
Post by: mircsicz on June 26, 2018, 01:07:08 am
@franco: Looking forward for 18.7 and THX for letting me know how I can use the current feature...
Title: Re: using the configuration importer during installation
Post by: franco on June 27, 2018, 11:17:38 pm
It should be fixed now and can import from FAT USB sticks in simple one partition MBR or GPT layout. Soon available for testing in the 18.7-RC1 images.


Cheers,
Franco