#1  
Old 26th May 2011, 23:10
Tripple Tripple is offline
Senior Member
 
Join Date: Jul 2007
Posts: 114
Thanks: 7
Thanked 3 Times in 3 Posts
Default Qemu-kvm

I moved all my VMWare servers to qemu-kvm on CentOS 5.6 64-bit systems using qcow2 images.

Before any operation on a VM I'm used to take a snapshot first. So I was looking into a way to do that with qemu-kvm on a less important VM.

Here's my story.
Take a snapshot:
qemu-img snapshot -c somename.snapshot myvm.qcow2

Let's check this out:
qemu-img snapshot -l myvm.qcow2

Looking good. Maybe an extra snapshot:
qemu-img snapshot -c somename.snapshot myvm.qcow2

Great, two snapshots. Not possible with VMWare server 1.

Now, let's delete a snapshot:
qemu-img snapshot -d myvm.qcow2

Nope, didn't work. Or was it:
qemu-img snapshot -d somename.snapshot
Didn't work either. The VM is still running though.

I've been reading you shouldn't take a snapshot on a live VM? I shutdown the VM, no luck. Now the VM doesn't boot anymore.

After one error after another I tried this:
qemu-img snapshot -l myvm.qcow2
qemu-img: Could not open 'myvm.qcow2'

I rebooted the host server, but no matter what I try, qemu-img is unable to open the image. This is the error when I try to boot the vm:
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 333, in create if ret==-1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error Process exited while reading console log output: raw_pread: read beyond end of file

How do I fix this before taking snapshots on production servers?

Last edited by Tripple; 26th May 2011 at 23:13.
Reply With Quote
Sponsored Links
  #2  
Old 30th May 2011, 22:26
Tripple Tripple is offline
Senior Member
 
Join Date: Jul 2007
Posts: 114
Thanks: 7
Thanked 3 Times in 3 Posts
 
Default

Looks like I shouldn't been taken a snapshot from a running guest.
I was not able to repair the image.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM Server CPU use 100% planet_fox Server Operation 7 3rd May 2011 16:22
Ubuntu 9.10 with KVM and copying KVM disk image to LVM yowzator HOWTO-Related Questions 3 8th March 2010 13:29
Fail to create KVM guest satimis Server Operation 1 24th June 2009 21:07
USB KVM switch slow mouse and keyboard mcardo Technical 0 2nd March 2009 04:25
About KVM installation satimis Server Operation 0 28th July 2008 04:39


All times are GMT +2. The time now is 22:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.