Converting Linux guest from vmware to vbox

Discussions about using Linux guests in VirtualBox.
Post Reply
majickmann
Posts: 2
Joined: 9. Mar 2011, 00:21
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: rhel6

Converting Linux guest from vmware to vbox

Post by majickmann »

I have two files, fedora.vmdk and fedora-flat.vmdk from VMware host. I would like to migrate to VBox4.0.4 on Ubuntu 10.10 workstation.

I've searched google and this forum, but am confused now. I've seen references to a vmdk and flat.vmdk file which calls for running a command-line on the vmware host. Currently, this is not an option for me.

I've read that VBox supports using vmdk files, but haven't found how.

Appreciate any help/pointers/etc...
:-)
majickmann
Posts: 2
Joined: 9. Mar 2011, 00:21
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: rhel6

Re: Converting Linux guest from vmware to vbox

Post by majickmann »

Okay... have to admit I'd read this http://www.ubuntugeek.com/howto-convert ... image.html before posting. But, I thought since I had a *.vmdk and *-flat.vmdk those instructions would not work. I was wrong.
Only the *-flat.vmdk file is needed.
This is exactly what I did:

Code: Select all

majickmann@myvbox:~/temp$ qemu-img convert fedora-flat.vmdk fedora-flat.bin
majickmann@myvbox:~/temp$ ls
fedora-flat.bin  fedora-flat.vmdk  fedora.vmdk
majickmann@myvbox:~/temp$ VBoxManage convertdd fedora-flat.bin fedora.vdi
Converting from raw image file="fedora-flat.bin" to file="fedora.vdi"...
Creating dynamic image with size 8589934592 bytes (8192MB)...
majickmann@myvbox:~/temp$ ll
total 14547440
-rw-r--r-- 1 majickmann users 8589934592 2011-03-08 17:34 fedora-flat.bin
-rw------- 1 majickmann users 3253768192 2011-03-08 17:41 fedora.vdi
-rw-r--r-- 1 majickmann users 8589934592 2011-03-08 15:05 fedora-flat.vmdk
-rw-r--r-- 1 majickmann users        354 2011-03-08 16:03 fedora.vmdk
Created the new VM selecting the existing HDD fedora.vdi file.

Hope this helps someone else...
:-)
--majickmann
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Converting Linux guest from vmware to vbox

Post by stefan.becker »

There is an easier way: CloneVDI. It runs with WINE on linux and is able to clone / convert vmdks to vdis.
Post Reply