As the doctor gone rogue

February 6, 2014

Converting virtual machine raw image .img to vmdk

Filed under: bash, Virtual Machine — Tags: , — hypotheses @ 11:26 am

OK, you got “.img” virtual machine image. Now what?
Diving in VMWare, Oracle Virutal Machine, etc, etc, there is not a shadow of the option to choose “new virutal machine” from .img image.

What should I do?

1. Download Qemu (ported version for OSX) http://www.kju-app.org/

2. After installing it on Mac (works fine for me on Maverick),

cd /Application/Q.app/Contents/MacOS/qemu-img
./qemu-img convert -f raw -O vmdk /Volumes/xxx/rawdisk200gb.img /Volumes/xxx/vdisk200gb.vmdk

3. Next, open up vmware to create a new virtual machine.
4. Choose continue without disk > choose an existing virtual disk
5. Follow the instruction to start up your new machine 🙂

Thanks to http://www.igorkromin.net/?x=entry:entry130909-170324 for written up the solution for mac.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: