Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
[Solved] Restoring config - boot failure
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] Restoring config - boot failure (Read 979 times)
jonm
Jr. Member
Posts: 51
Karma: 2
[Solved] Restoring config - boot failure
«
on:
May 03, 2024, 09:38:47 am »
I'm trying to restore the config from my live system into a VM and whenever I do this I'm hitting an issue.
The VM is working fine and is at the exact same release level as the live system.
The restore works as expected, and the system automatically reboots. Everything looks to be in order.
But if I then power off and re-start, after the system boots I get dropped to a mountroot prompt.
Issuing "?" at the mountroot prompt lists no devices.
I don't know how to debug this, any help would be appreciated please...
I can re-create this behaviour every time by reverting the VM using a snapshot.
«
Last Edit: May 03, 2024, 11:21:56 am by jonm
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6797
Karma: 571
Re: Restoring config - boot failure
«
Reply #1 on:
May 03, 2024, 09:51:06 am »
Which hypervisor? There's an issue with virtual box and host cacheing of virtual disks that leads to data corruption.
Also do you really mean "power off" instead of "properly shut down"? If you just power off any machine running, you have a good chance of file system damage.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
jonm
Jr. Member
Posts: 51
Karma: 2
Re: Restoring config - boot failure
«
Reply #2 on:
May 03, 2024, 10:00:34 am »
Thanks for the reply. This is qemu on Fedora. And I’m powering off from the web gui.
Logged
jonm
Jr. Member
Posts: 51
Karma: 2
Re: Restoring config - boot failure
«
Reply #3 on:
May 03, 2024, 10:05:00 am »
To clarify, I am shutting down properly via the Opnsense web gui.
But I am pretty sure I can start up/shut down repeatedly without issue until I restore the config…
Logged
Patrick M. Hausen
Hero Member
Posts: 6797
Karma: 571
Re: Restoring config - boot failure
«
Reply #4 on:
May 03, 2024, 10:08:55 am »
Any tunables in the live system that might apply to the root mount?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
jonm
Jr. Member
Posts: 51
Karma: 2
Re: Restoring config - boot failure
«
Reply #5 on:
May 03, 2024, 10:29:24 am »
I just checked and it looks like the only tunables I have set are:
hw.pci.enable_msix 0
hw.bce.tso_enable 0
No idea if these could be an issue?
Logged
Patrick M. Hausen
Hero Member
Posts: 6797
Karma: 571
Re: Restoring config - boot failure
«
Reply #6 on:
May 03, 2024, 10:34:15 am »
You can try - remove the tunables from the exported XML with an editor before import.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
jonm
Jr. Member
Posts: 51
Karma: 2
Re: Restoring config - boot failure
«
Reply #7 on:
May 03, 2024, 10:39:10 am »
OK, I will give that a go. I have reverted the VM to an earlier snapshot and I'm just going through a few power on/off cycles to make absolutely sure it's OK before I restore the config again.
Logged
jonm
Jr. Member
Posts: 51
Karma: 2
Re: Restoring config - boot failure
«
Reply #8 on:
May 03, 2024, 10:59:07 am »
It looks like removing those tunables has done the trick! I have a restored system that is working properly now.
Many thanks
Logged
Patrick M. Hausen
Hero Member
Posts: 6797
Karma: 571
Re: Restoring config - boot failure
«
Reply #9 on:
May 03, 2024, 11:00:29 am »
I suspect hw.pci.enable_msix somehow applies to the virtual disk controller, too.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
jonm
Jr. Member
Posts: 51
Karma: 2
Re: Restoring config - boot failure
«
Reply #10 on:
May 03, 2024, 11:14:13 am »
What does it do? I must admit, I don't really know why I have it in the live config.
Logged
Patrick M. Hausen
Hero Member
Posts: 6797
Karma: 571
Re: [Solved] Restoring config - boot failure
«
Reply #11 on:
May 03, 2024, 11:53:56 am »
MSI-X,
Message Signaled Interrupts
, is a more modern interrupt mechanism compared to traditional "interrupt lines".
Disabling it can help work around some bugs in some network drivers or the respective hardware.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
[Solved] Restoring config - boot failure