Convert virtual drive from virtualbox to vmware
Posted on Tuesday 21 June 2011, 23:03 - Linux - Permalink Tweet
- Article
- |
- Comments(0)
- |
- Attachments(0)
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.
VirtualBox provides a command line tool to convert from .vdi to .vmdk : VBoxManage clonehd
Here is an Example
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.
Post updated on Tuesday 21 June 2011, 23:03