<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>I would suggest the following :<br><br>1. Pause the virtual machine ( with virsh for example )<br>2. Take a snapshot of the logical volume.<br>3. Unpause the virtual machine<br>4. Convert the snaposhot ot qcow2.<br><br>I'm doing something similar with a python script.<br><br><hr id="zwchr"><b>From: </b>"Tapas Mishra" <mightydreams@gmail.com><br><b>To: </b>"Ubuntu Server Team" <ubuntu-server@lists.ubuntu.com><br><b>Sent: </b>Monday, January 3, 2011 12:03:31 PM<br><b>Subject: </b>converting lvm based Virtual Machine to qcow image.<br><br>A long time back I had asked as how to back up OS running on KVM in an<br>LVM setup.<br>Here are the excerpts from the message<br><br>"One way to take a backup is to convert the LVM volumes to compressed qcow2<br>images, like this:<br># qemu-img convert -c -f raw -O qcow2 /dev/nintendo/lvm1 /backup/lvm1.img"<br><br>I would like to know do I need to shut down the VM to be able to use<br>the above command.<br><br><br>-- <br>http://mightydreams.blogspot.com<br><br>-- <br>ubuntu-server mailing list<br>ubuntu-server@lists.ubuntu.com<br>https://lists.ubuntu.com/mailman/listinfo/ubuntu-server<br>More info: https://wiki.ubuntu.com/ServerTeam<br><span><br><br>-- <br><span name="x"></span><hr style="width: 100%; height: 2px;"><br><span style="font-weight: bold;" mce_style="font-weight: bold;">Nikolai K. Bochev</span><br><span style="font-weight: bold;" mce_style="font-weight: bold;">System Administrator</span><br><br><br><span name="x"></span><br></span></div></body></html>