OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: Berzerker on May 21, 2022, 05:11:58 pm

Title: DEC3840 Config import no login prompt
Post by: Berzerker on May 21, 2022, 05:11:58 pm
Hello, I just received my new-to-me DEC3840, trying to install 22.1 and restore a 21.7 config, but after a reboot, I don't get a login prompt.

I assume I should try installing an older version? Is there a way to get my config compatible without having to go through an upgrade path?

Thanks.
Title: Re: DEC3840 Config import no login prompt
Post by: Patrick M. Hausen on May 21, 2022, 05:23:55 pm
Can you reach the web UI despite the missing login? Maybe your config has the wrong console type for the device?

If this is a config from an existing and still running firewall, you could change the primary console temporarily, export the config again, then change back.
Title: Re: DEC3840 Config import no login prompt
Post by: Berzerker on May 21, 2022, 05:40:22 pm
Can you reach the web UI despite the missing login? Maybe your config has the wrong console type for the device?

If this is a config from an existing and still running firewall, you could change the primary console temporarily, export the config again, then change back.

I haven't tried accessing the web console, but I can't get to the point where I can reconfigure interfaces, so I don't think I could even if I tried.

Is there a description of what's required of the "change the primary console" that I could maybe make in the config xml before importing? This config was previously run on a whitebox with a Xeon and now is running on a DEC without VGA, so I assume *something* needs to be changed.

Thanks.
Title: Re: DEC3840 Config import no login prompt
Post by: Patrick M. Hausen on May 21, 2022, 06:24:32 pm
Try:
Code: [Select]
<system>
    <serialspeed>115200</serialspeed>
    <primaryconsole>serial</primaryconsole>
[...]
Title: Re: DEC3840 Config import no login prompt
Post by: Berzerker on May 21, 2022, 06:27:41 pm
Try:
Code: [Select]
<system>
    <serialspeed>115200</serialspeed>
    <primaryconsole>serial</primaryconsole>
[...]

Ah, that might have been it! I made this backup on a VGA install so it was set to video.

Does this setting matter as well?
Code: [Select]
<disablevirtualconsole>1</disablevirtualconsole>
Title: Re: DEC3840 Config import no login prompt
Post by: Patrick M. Hausen on May 21, 2022, 06:31:03 pm
I guess (without knowing for sure) that this setting is not relevant when the console is set to "serial". Virtual consoles are a feature if the VGA console driver.
Title: Re: DEC3840 Config import no login prompt
Post by: Berzerker on May 21, 2022, 07:05:45 pm
is there a way to invoke the serial console without editing the config file? so I can test without reporting a config?
Title: Re: DEC3840 Config import no login prompt
Post by: Patrick M. Hausen on May 21, 2022, 07:13:41 pm
Do you get the boot loader at least? In that case you can escape to the loader prompt, then type
Code: [Select]
set console=comconsole
boot
Title: Re: DEC3840 Config import no login prompt
Post by: Berzerker on May 21, 2022, 07:14:10 pm
Do you get the boot loader at least? In that case you can escape to the loader prompt, then type
Code: [Select]
set console=comconsole
boot

thanks I'll try that!
Title: Re: DEC3840 Config import no login prompt
Post by: Berzerker on May 21, 2022, 07:22:12 pm
Do you get the boot loader at least? In that case you can escape to the loader prompt, then type
Code: [Select]
set console=comconsole
boot

That didn't seem to work, I still don't get a login prompt, still stuck at the hashes.
Title: Re: DEC3840 Config import no login prompt
Post by: Berzerker on May 21, 2022, 08:02:54 pm
Do you get the boot loader at least? In that case you can escape to the loader prompt, then type
Code: [Select]
set console=comconsole
boot

Sorry, do you have any other suggestions? Thanks.
Title: Re: DEC3840 Config import no login prompt
Post by: Patrick M. Hausen on May 21, 2022, 08:20:13 pm
Why don't you want to edit the config and reinstall?
Title: Re: DEC3840 Config import no login prompt
Post by: Berzerker on May 23, 2022, 01:17:36 am
Why don't you want to edit the config and reinstall?

Thank you, that solved the issue. I'm having a different one now so I'll create a new topic