Linux - Virtualization and CloudThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a test-guest image which I can't start after a host forced shutdown.
I'm using Cent OS 6.x on both host and guest using KVM
When trying to start in VMM it tries to resume the guest, but gets an error.
Is there a way to skip the resume and just boot the guest from scratch ? Or do a repair ? Using virsh i presume.
I think the problem is, that when the host went down, it tried to save the state of the guest to disk, but then i forced the host down. Testing what would happen.
If there's an issue here, it would be nice to know before production starts...
Regards.
Last edited by ThomasRonshof; 12-21-2011 at 02:30 AM.
You didn't mention what the guest OS is (Windows, Linux, FreeBSD, etc.). I assume the host is Linux, but which Distro? In fact, are you using VirtualBox, KVM or VMWare?
In any case, you may be able to download a Linux rescue CD image such as SystemRescueCD, RIP Linux, Finnix or similar and boot your VM guest with it.
Then you may be able to fsck the disk and mount it and look around for damage.
I had a similar problem not so long ago when the ups was configured to wait until 30% of battery capacity before shutdown. Linux was still completing a save of the guest image when it ran out of power. Since then I've configured the ups to initiate shutdown after 30 seconds.
The image was winxp pro & I did the following:
service libvirtd stop
top
kill qemu-kvm processes with -9
cd /var/lib/libvirt
rm -rf qemu
rm -rf network
Remove kvm
Re-install kvm
service libvirtd start
Removing & re-installing kvm may not be necessary but this procedure worked.
You said it's trying to resume, which implies their is a RAM image somewhere. I don't know where it would be stored, but if you can find it, then rename or delete it.
By the way, is 30 seconds enough to save the image ?
Thomas, the 30 seconds refers to the time that the ups will begin its shutdown sequence after a power fail. It does not mean the time required to save an image which obviously takes a lot longer.
The bad RAM image I just deleted was 1 Gb in size. The guest has configured 10 GB om ram, so I presume the RAM image to become 10 GB when saved during af host shutdown.
Is it normal it takes minutes to save the RAM image ? We are talking a brand new x3850 with 4 x 8core CPU's...
Is it normal it takes minutes to save the RAM image ?
Yes it is.
You could always initiate a shutdown from the guest before the host if you want this to be faster. Means loading up a UPS app on the guest.
Network UPS Tools (NUT) will do this for you.
Okay... then it's possible to have the UPS software running on both the host AND the guest ? Reading from the same usb-port, to communicate with the UPS ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.