{"id":1893,"date":"2013-02-21T20:17:09","date_gmt":"2013-02-21T12:17:09","guid":{"rendered":"http:\/\/rmohan.com\/?p=1893"},"modified":"2013-02-21T20:24:25","modified_gmt":"2013-02-21T12:24:25","slug":"convert-virtualbox-vdi-to-vmware-vmdk-disks","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1893","title":{"rendered":"Convert VirtualBox VDI to VMware VMDK disks"},"content":{"rendered":"<h3>VBoxManage<\/h3>\n<p>We have used VBoxManage to <a href=\"http:\/\/www.dedoimedo.com\/computers\/virtualbox-clone.html\">clone<\/a> VirtualBox disks. The method here is identical, except that we will be converting to a different disk format. Let&#8217;s see how this is done.<\/p>\n<p>VBoxManage clonehd\u00a0source.vdi\u00a0target.vmdk &#8211;format VMDK<\/p>\n<p>Where source is your VirtualBox disk, target is your VMware disk and &#8211;format VMDK is the desired output format. Similarly, you can go the other way around, using VMDK as your source and VDI as your target. Make sure to specify the right disk format. VBoxManage clonehd function supports other formats as well.<\/p>\n<p>&nbsp;<\/p>\n<p>Vice versa<\/p>\n<p>Oh, yes, the other direction is fairly simple.<\/p>\n<p>VBoxManage clonehd\u00a0source.vmdk\u00a0target.vdi &#8211;format VDI<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>QEMU<\/h3>\n<p><a href=\"http:\/\/wiki.qemu.org\/Main_Page\">QEMU<\/a> is an old friend, too. We&#8217;ve seen in my very <a href=\"http:\/\/www.dedoimedo.com\/computers\/vmware_player.html\">first<\/a> article on virtualization, when I was still young and naive. Strike that, I was never young. We have also used QEMU to convert VMDK disks to RAW format, so we could use them with <a href=\"http:\/\/www.dedoimedo.com\/computers\/amazon-ec2.html\">Amazon EC2<\/a> machines. The concept is exactly the same here. And it works both ways.<\/p>\n<p>VDI to VMDK<\/p>\n<p>It&#8217;s extremely simple.<\/p>\n<p>qemu-img convert something.vdi -O vmdk something.vmdk<\/p>\n<p>VMDK to VDI<\/p>\n<p>You have two ways to do this. Use a one-step qemu-img-vdi tool or go about using classic qemu-img, which will require an intermediate conversion to raw format.<\/p>\n<p>qemu-img-vdi<\/p>\n<p>Pretty much like all other conversions we&#8217;ve seen before:<\/p>\n<p>qemu-img-vdi convert something.vmdk -O vdi something.vdi<\/p>\n<p>qemu-img<\/p>\n<p>Now, using qemu-img, you have two steps, first convert to RAW format, then use VBoxManage to convert to VDI. Older versions of VirtualBox used the tool called vditool, so you may find online resources that reference this utility.<\/p>\n<p>Step 1: Convert VMDK to RAW (you don&#8217;t need any file extension, btw)<\/p>\n<p>qemu-img convert something.vmdk something.raw<\/p>\n<p>Step 2: Convert RAW to VDI<\/p>\n<p>VBoxManage convertdd something.raw something.vdi<\/p>\n<p>Note: If you&#8217;re using sparse disks, as we&#8217;ve seen in other tutorials, the raw file will them inflated to their intended max. size. A 20GB disk, even though if only 2.4GB are used, will become a 20GB byte-by-byte file on your hard disk.<\/p>\n<p>That would be all. Next, please!<\/p>\n<h3>Conversion method 3 (maybe): VMware Converter<\/h3>\n<p>To the best of my knowledge, and I&#8217;ve already stated in the past, it does not seem that VMware Converter supports VirtualBox. Therefore, using VMware Converter may or may not work.<\/p>\n<p>Now, you can try a different method. Export your VirtualBox machine as an appliance, which will save it in the .ovf format, including a ready VMDK disk. Then, convert the appliance using VMware Converter. There&#8217;s no guarantee, though. I have read a few forum threads here and there where various users claimed to have done it successfully, so it indeed may be possible.<\/p>\n<p>I have not managed this yet, so keep this in mind!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VBoxManage <\/p>\n<p>We have used VBoxManage to clone VirtualBox disks. The method here is identical, except that we will be converting to a different disk format. Let&#8217;s see how this is done.<\/p>\n<p>VBoxManage clonehd source.vdi target.vmdk &#8211;format VMDK<\/p>\n<p>Where source is your VirtualBox disk, target is your VMware disk and &#8211;format VMDK is the desired output [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1893"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1893"}],"version-history":[{"count":4,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1893\/revisions"}],"predecessor-version":[{"id":1897,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1893\/revisions\/1897"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}