[libvirt-users] Split a qcow2-image?

Hello, I converted a W2003-Server to a vmdk-image, I didn't think too much back then ... Now I have 2 windows-drives C: and E: inside one vmdk-image-file, which was converted to qcow2. I have installed drivers and stuff into that VM already and would like to avoid to start over again with the vmdk-file -> Is there a way to split that one qcow2 into 2 separate files, one for each windows-harddisk? or plan B: can I possibly enlarge the part of C: inside that qcow2? I use qemu-kvm on gentoo linux, and libvirt-0.9.3-r1. I would appreciate any help on this topic! Thanks Stefan

Am 25.07.2011 19:42, schrieb Stefan G. Weichinger:
Is there a way to split that one qcow2 into 2 separate files, one for each windows-harddisk?
or plan B: can I possibly enlarge the part of C: inside that qcow2?
I just give it a try with gparted now ... and resize the partitions for a start. E: gets smaller, C: larger ... that should suffice. S

On 07/25/2011 12:01 PM, Stefan G. Weichinger wrote:
Am 25.07.2011 19:42, schrieb Stefan G. Weichinger:
Is there a way to split that one qcow2 into 2 separate files, one for each windows-harddisk?
or plan B: can I possibly enlarge the part of C: inside that qcow2?
I just give it a try with gparted now ... and resize the partitions for a start. E: gets smaller, C: larger ... that should suffice.
Have you tried using virt-resize yet? That may have all the functionality you need for resizing partitions; although I'm not sure if it can completely remove a partition. If it can, then you'd use original->copy1 to remove the e: partition, and original->copy2 to remove the c: partition, leaving you with two files for the two partitions with sizes of your choice. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

Am 25.07.2011 21:49, schrieb Eric Blake:
Have you tried using virt-resize yet?
I don't have that binary here ... should it come with libvirt?
That may have all the functionality you need for resizing partitions; although I'm not sure if it can completely remove a partition. If it can, then you'd use original->copy1 to remove the e: partition, and original->copy2 to remove the c: partition, leaving you with two files for the two partitions with sizes of your choice.
Thanks ... I have for now solved it by using gparted. This should work for some time now. Stefan
participants (2)
-
Eric Blake
-
Stefan G. Weichinger