FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

LinkBack Thread Tools
Old 01-07-2011, 05:12 AM
Tapas Mishra
Default qemu-img to do have a copy of a kvm os to vmdk file

I have a production environment where I am having 4 Guest OS running
on a Ubuntu server which uses kvm.
These OS are in an LVM based setup.I want these Virtual Machines to in
a vmdk format also.Where people would do
experiments with these Virtual Machines so this in a vmware
environment (or it can be Xen too) would be different from the kvm

The production Virtual Machines will still keep running on kvm server
but the VMs on which experiments would be done would be of type vmdk.

Here is output of lvscan

ACTIVE '/dev/abcd/lvm1' [100.00 GiB] inherit
ACTIVE '/dev/abcd/lvm2' [150.00 GiB] inherit
ACTIVE '/dev/abcd/lvm3' [50.00 GiB] inherit
ACTIVE '/dev/abcd/lvm4' [100.00 GiB] inherit

I was reading man page of qemu-img and what I understand is I need to
first create a qcow image file which I need to populate and then
convert that to a vmdk file.
Is that understanding correct?

Now suppose /dev/abcd/lvm4 is the virtual machine with which I am
going to start this experiment.I can shutdown the production VMs for
some time to do this.

Show is the following way correct to go on server 1 (where kvm is running)

qemu-img convert -c -f raw -O vmdk /dev/abcd/lvm4 /backup/lvm4.img

or it will affect the lvm4 on kvm server 1.

I do not want the VM running on original server to at all loose its
any of the content but also have a vmdk file for each of the Guest OS
on kvm.


ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Thread Tools

All times are GMT. The time now is 01:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org