I have a backup that's a few days old so my fall back plan is to just restore it, but I am wondering if this is something that I can recover from in case it ever happens to a VM with no backup or a much older backup.
I did a live snapshot, thinking it would work, or at least tell me I can't do it if it's not doable, but it started anyway but it got stuck and never finished. I shutdown the VM thinking it would make it finish but it just bricked the VM.
This is the error that I get:
I tried to set HA to ignore but it says the VM is locked so can't do that either. I forgot to do it at first so maybe that was part of my issue, it probably tried to start back up after I shut it down.
Also ran
As well as
Anything else I can try to recover this? I also tried to delete the lock but it just comes back. Basically I can't do anything with the VM in it's current state.
Edit: SOLVED!
Ended up using Grok... I really try not to rely on AI for these things but sometimes, it just works!
So here's more or less the steps I had to do in case anyone ever runs into this:
Some of these may be redundant and repeated, just following exactly what my console looked like that lead to it working.
I was then able to start the VM. Not sure what state it's in, if it's after the snapshot, or before. I assume it's before.
So yeah, live from my fail... turn OFF vm before taking snapshot! Could have sworn I had done live snapshots before though... Maybe it only works on quiet VMs and not ones writing lot of data such as CCTV.
I did a live snapshot, thinking it would work, or at least tell me I can't do it if it's not doable, but it started anyway but it got stuck and never finished. I shutdown the VM thinking it would make it finish but it just bricked the VM.
This is the error that I get:
Code:
Requesting HA start for VM 115
service 'vm:115' in error state, must be disabled and fixed first
TASK ERROR: command 'ha-manager set vm:115 --state started' failed: exit code 255
I tried to set HA to ignore but it says the VM is locked so can't do that either. I forgot to do it at first so maybe that was part of my issue, it probably tried to start back up after I shut it down.
Also ran
Code:
qm cleanup 115 0 0
As well as
Code:
rm /var/lock/qemu-server/lock-115.conf
Anything else I can try to recover this? I also tried to delete the lock but it just comes back. Basically I can't do anything with the VM in it's current state.
Edit: SOLVED!
Ended up using Grok... I really try not to rely on AI for these things but sometimes, it just works!
So here's more or less the steps I had to do in case anyone ever runs into this:
Some of these may be redundant and repeated, just following exactly what my console looked like that lead to it working.
Code:
qm unlock 115
ha-manager set vm:115 --state disabled
rm /var/lock/qemu-server/lock-115.conf
ha-manager set vm:115 --state disabled
qm delsnapshot 115 b4update --force
ha-manager set vm:115 --state disabled
ha-manager set vm:115 --state ignored
I was then able to start the VM. Not sure what state it's in, if it's after the snapshot, or before. I assume it's before.
So yeah, live from my fail... turn OFF vm before taking snapshot! Could have sworn I had done live snapshots before though... Maybe it only works on quiet VMs and not ones writing lot of data such as CCTV.
Last edited: