Lost Then Found KVM Virtual Machines
I suffered a power outage while I was away from home. SO when I returned home I powered the machine back up and it went through all of it's checks as normal. But when it was up and I could log on I could see that none of my 4 VM was running. I brought up virt-manager but there were no VM showing.
I looked around and found virsh and issued a virsh list --all and I could see the VM by name. I then issued a virsh restore <name> and all 4 of the VM were there. I then issued a virsh start <name> but it failed I'm running CentOS 5.9 x86_64 with 24GB RAM and 4 - 1 TB haard drives in 2 RAID-1 array. Any ideas? TIA Scrapper64 |
Where your VMs set to autostart with the host machine?
|
Lost Then Found KVM Virtual Machines
They are set to autostart.
I rebooted the machine and all came back. My goal now is to learn all I can about the virsh command. Thanks All! Scrapper64 |
in standard configuration libvirt would log all output to /var/log/messages.
Sometimes VMs can't start because pre-requisites aren't there, e.g. the virtual network devices weren't started due to other issues. If you run into trouble like this make sure you read and understood the error messages (virsh start <VMname> migth give you a reason why it failed) and log files. To manage your machines you might want to have a look at the virt-manager gui as well. This can be used from a remote machine too. |
Quote:
Quote:
|
Quote:
Quote:
It sounds as if this issue was sorted by a reboot anyway, even we readers (maybe the Op as well) didn't understand what the actual issue was. With issues like this I sometimes feel like being in the Windows world: You have an issue? Go <Start> <Shutdown> <Restart> and all will be sorted... |
Quote:
|
I'll blame my glasses. They had temporary crack so I wasn't able to spot it earlier. :D
|
All times are GMT -5. The time now is 09:13 AM. |