Blog Pro de Jean-Baptiste HEREN

Notes d'un consultant Freelance en Informatique

To content | To menu | To search

Convert virtual drive from virtualbox to vmware

vbox_logo.pngYou have a virtualbox image and want to use it in VMWARE ?

If the .ova file does not fits your needs, you can try to convert the hard drive and then use it directly in a configured vmware machine.

VirtualBox provides a command line tool to convert from .vdi to .vmdk : VBoxManage clonehd

Here is an Example

[script]
jb$ cd /Users/jb/VirtualBox VMs/myvirtualdrive-bash: cd: /Users/jb/VirtualBox: No such file or directory
jb$ cd "/Users/jb/VirtualBox VMs/myvirtualdrive"
jb$ ls
Logs                myvirtualdrive.vbox      myvirtualdrive.vbox-prev myvirtualdrive.vdi
jb$ VBoxManage clonehd myvirtualdrive.vdi --format VMDK myvirtualdrive.vmdk
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VMDK'. UUID: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Documentation from VirtualBox

This command duplicates a registered virtual hard disk image to a new image file with a new unique identifier (UUID). The new image can be transferred to another host system or imported into VirtualBox again using the Virtual Media Manager; see the section called “The Virtual Media Manager” and the section called “Cloning disk images”. The syntax is as follows:

VBoxManage clonehd         <uuid>|<filename> <outputfile>
                           [--format VDI|VMDK|VHD|RAW|<other>]
                           [--variant Standard,Fixed,Split2G,Stream,ESX]
                           [--existing]

where the parameters mean:

format Allow to choose a file format for the output file different from the file format of the input file.

variant Allow to choose a file format variant for the output file. It is a comma-separated list of variant flags. Not all combinations are supported, and specifying inconsistent flags will result in an error message.

existing Perform the clone operation to an already existing destination medium. Only the portion of the source medium which fits into the destination medium is copied. This means if the destination medium is smaller than the source only a part of it is copied, and if the destination medium is larger than the source the remaining part of the destination medium is unchanged.

Jean-Baptiste Heren

Author: Jean-Baptiste Heren

Stay in touch with the latest news and subscribe to the RSS Feed about this category

Comments are closed


no attachment



You Might Also Like

vbox_logo.png

Convert virtual drive from virtualbox to vmware

You have a virtualbox image and want to use it in VMWARE ? If the .ova file does not fits your needs, you can try to convert the hard drive and then use it directly in a configured vmware machine....

Continue reading

harddrive_osx.png

Repair HFS+ Volume on OSX

Yesterday I had a little surprise on one of my disks (the backup one.Disk utility was unable to repair it, but here you will find some tips 1- read your disk with Linux Boot on Ubuntu live CD and try...

Continue reading