Druckos Blog

a Blog with tips and tricks around Linux

Convert multiple vmkd files into one single for import in Virtualbox

converting splitted vmdks for import into Virtualbox

some people of you knows the problem wit converting on Commandline multiple splitted vmdkfiles , if you dont have graphicla windows or vmwareconverter. This Guide assists you as a walthrough to import a splitted cmdk VMWare or Player image to import int Virtualbox.

VmwarePlayerimage wih 3 vmdk files

-rwxr-xr-x@  1 heribertt  staff  2147221504 22 Mär  2011 GNS3 WorkBench-f001.vmdk
-rwxr-xr-x@  1 heribertt  staff  2147221504 22 Mär  2011 GNS3 WorkBench-f002.vmdk
-rwxr-xr-x@  1 heribertt  staff      524288 30 Okt  2010 GNS3 WorkBench-f003.vmdk
-rwxr-xr-x@  1 heribertt  staff         631 22 Mär  2011 GNS3 WorkBench.vmdk
-rwxr-xr-x@  1 heribertt  staff           0 17 Mär  2011 GNS3 WorkBench.vmsd
-rwxr-xr-x@  1 heribertt  staff        6672 22 Mär  2011 GNS3 WorkBench.vmx
-rwxr-xr-x@  1 heribertt  staff        3401 26 Dez  2010 GNS3 WorkBench.vmxf
-rwxr-xr-x@  1 heribertt  staff          77 11 Apr  2009 Username is user, pas

now we are going to convert the files to a raw image file as follows:

qemu-img convert GNS3\ WorkBench-f001.vmdk GNS3\ WorkBench-f002.vmdk GNS3\ WorkBench-f003.vmdk gns.qcow2

and now to a qcow2 Format

 qemu-img convert gns.raw -O qcow2 gns.qcow2

at last convert have to be done before you can use the diskimage for Virtualbox.

qemu-img convert -O vdi gns.qcow2 gns.vdi

Now you are be able to create a new Virtualboxmachine with the existing disk gns.vdi for booting.

If you have any problems, simply ask with a comment.

greets Drucko

Comments