LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Lost Then Found KVM Virtual Machines (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/lost-then-found-kvm-virtual-machines-4175471499/)

Scrapper64 07-30-2013 04:04 PM

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

dt64 07-31-2013 05:22 AM

Where your VMs set to autostart with the host machine?

Scrapper64 07-31-2013 10:35 PM

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

dt64 08-01-2013 06:48 AM

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.

Slax-Dude 08-07-2013 09:43 AM

Quote:

Originally Posted by dt64 (Post 5000892)
To manage your machines you might want to have a look at the virt-manager gui as well.

In the very first post the OP mentions he already used virt-manager...

Quote:

Originally Posted by dt64 (Post 5000892)
This cant be used from a remote machine too.

Why not?

dt64 08-07-2013 11:49 AM

Quote:

Originally Posted by Slax-Dude (Post 5004898)
In the very first post the OP mentions he already used virt-manager...

Ok, my fault. But my main goal was to indicate the error messages which are usually logged in /var/log/messages. And after re-reading - yes, you are right, he mentioned it.

Quote:

Originally Posted by Slax-Dude (Post 5004898)
Why not?

Typo. Sorted. Awaiting severe punishment :D

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...

Slax-Dude 08-08-2013 04:44 AM

Quote:

Originally Posted by dt64 (Post 5004993)
Typo. Sorted. Awaiting severe punishment :D

I'd blame the keyboard ;)

dt64 08-08-2013 06:12 AM

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 11:14 AM.