Corrupted opnsense installation

Started by kevindd992002, August 09, 2024, 06:25:54 PM

Previous topic - Next topic
Attempting to fix UFS... hmmm, good luck. I'd boot from from ISO and try to mount the broken thing read-only, hoping the kernel won't panic on that.

Quote from: kevindd992002 on August 09, 2024, 09:09:51 PM
Or can I use a UFS opnsense backup xml to reload the config in a ZFS opnsense?
Yes, of course. OPNsense itself (and the configuration backup/restore) is completely oblivious of the filesystem the underlying OS uses.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Yes, you could use another FreeBSD/OpnSense VM and attach the virtual disk to it and try to mount it and copy /conf/config.xml, hoping that this file is intact.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+

Do I need to reinstall all packages even after installing with the recovery xml?

Sent from my SM-S916B using Tapatalk


All the OPNsense plugins will be reinstalled when you check for updates.

For the third party ones you'll have to reinstall, hopefully you have copies of the config files as they're not included in the OPNsense one.

Got it. In the conf file:

1. Will I be able to see which version it is from? And is it best to create a new opnsense vm that's exactly the same version as my old corrupted opnsense VM?

2. Does it list all third-party plugins that I have installed? Aside from AdGuard Home, I'm pretty sure there are a few more third-party plugins that I installed but haven't used yet. I just want to make sure I'm not missing anything.

Quote from: newsense on August 10, 2024, 10:32:37 AM
All the OPNsense plugins will be reinstalled when you check for updates.

For the third party ones you'll have to reinstall, hopefully you have copies of the config files as they're not included in the OPNsense one.

To follow-up on this, the opnsense plugins do not get reinstalled when you "check for updates". They get reinstalled when you click on the "resolve plugins conflict" button under System -> Firmware -> Status.

FWIW, on the console it does sync back plugins for lack of "resolve" screen estate since 2021.

https://github.com/opnsense/core/commit/7165b665eb


Cheers,
Franco