LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 07-30-2013, 04:04 PM   #1
Scrapper64
LQ Newbie
 
Registered: Jul 2012
Location: Metro-Atlanta
Distribution: CentOS & Fedora
Posts: 24

Rep: Reputation: Disabled
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
 
Old 07-31-2013, 05:22 AM   #2
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 141

Rep: Reputation: 18
Where your VMs set to autostart with the host machine?
 
Old 07-31-2013, 10:35 PM   #3
Scrapper64
LQ Newbie
 
Registered: Jul 2012
Location: Metro-Atlanta
Distribution: CentOS & Fedora
Posts: 24

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-01-2013, 06:48 AM   #4
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 141

Rep: Reputation: 18
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.

Last edited by dt64; 08-07-2013 at 11:44 AM. Reason: Typo, see post below
 
Old 08-07-2013, 09:43 AM   #5
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 253

Rep: Reputation: 70
Quote:
Originally Posted by dt64 View Post
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 View Post
This cant be used from a remote machine too.
Why not?
 
Old 08-07-2013, 11:49 AM   #6
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 141

Rep: Reputation: 18
Quote:
Originally Posted by Slax-Dude View Post
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 View Post
Why not?
Typo. Sorted. Awaiting severe punishment

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...
 
Old 08-08-2013, 04:44 AM   #7
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 253

Rep: Reputation: 70
Quote:
Originally Posted by dt64 View Post
Typo. Sorted. Awaiting severe punishment
I'd blame the keyboard
 
Old 08-08-2013, 06:12 AM   #8
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 141

Rep: Reputation: 18
I'll blame my glasses. They had temporary crack so I wasn't able to spot it earlier.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Communication between KVM virtual machines on different hosts gmalva Linux - Virtualization and Cloud 2 09-19-2012 03:29 AM
KVM API for starting virtual machines guardian1 Linux - Virtualization and Cloud 2 09-04-2012 11:33 AM
LXer: Embiggen Your KVM Virtual Machines LXer Syndicated Linux News 0 12-05-2011 08:50 PM
LXer: Embiggen Your KVM Virtual Machines LXer Syndicated Linux News 1 12-05-2011 04:12 PM
Virtual machines running their own KVM's bill.loney Linux - Newbie 2 05-01-2009 03:08 PM


All times are GMT -5. The time now is 08:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration