{"id":5990,"date":"2011-11-29T10:35:00","date_gmt":"2011-11-29T08:35:00","guid":{"rendered":"http:\/\/www.borncity.com\/blog\/2011\/11\/29\/how-do-i-convert-a-virtualbox-vdi-file-to-vhd-vmdk\/"},"modified":"2020-12-23T17:56:07","modified_gmt":"2020-12-23T16:56:07","slug":"how-do-i-convert-a-virtualbox-vdi-file-to-vhd-vmdk","status":"publish","type":"post","link":"https:\/\/borncity.com\/blog\/2011\/11\/29\/how-do-i-convert-a-virtualbox-vdi-file-to-vhd-vmdk\/","title":{"rendered":"How do I convert a Virtualbox .vdi file to .vhd\/.vmdk?"},"content":{"rendered":"<p>Whilst Virtualbox can access virtual disks in .vdi, .vhd and .vmdk format, VMware player or workstation supports only .vhd- and .vmdk file format. From time to time people asking me, how to convert a Virtualbox .vdi file to a .vhd or VMware .vmdk.<\/p>\n<p><!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ssl-vg03.met.vgwort.de\/na\/f71f29d630d43bcae1454ea8b915915\" alt=\"\" width=\"1\" height=\"1\" \/>There are a couple of <a href=\"http:\/\/www.sysprobs.com\/vdi-vhd-convert-virtualbox-virtual-machines-virtual-pc\" target=\"_blank\" rel=\"noopener\">web sites<\/a> describing how to use Virtualbox VBoxManage.exe to convert a .vdi file to a .vhd disk. It requires invoking a command prompt window, navigate to Virtualbox install folder and enter a command like this:<\/p>\n<p><code>vboxmanage clonehd d:\\android\\android4.vdi<br \/>\nd:\\android\\android4.vhd --format VHD<\/code><\/p>\n<p>The two lines above are one command. The resulting file android.vhd can be used in VMware Player\/Workstation.<\/p>\n<blockquote dir=\"ltr\" style=\"margin-right: 0px;\">\n<p style=\"background-color: #ffffd0;\"><strong>Note:<\/strong> This approach comes with two problems. First of all, it's complicated to fiddle with command prompt window and spelling the right paths. And second I prefer to use Virtualbox portable beside my VMware Workstation installation. If Virtualbox portable is used, VBoxManage.exe won't work \u2013 some Class isn't recognized. Therefore I was looking for an alternative way, and I found the approach drawn below.<\/p>\n<\/blockquote>\n<p><strong>A smarter way to convert .vdi files<\/strong><\/p>\n<p>In this <a href=\"http:\/\/superuser.com\/questions\/69351\/how-do-i-convert-a-vdi-hdd-to-a-vhd-fie\/110039#110039\" target=\"_blank\" rel=\"noopener\">Q&amp;A<\/a> somebody mentioned, that Virtualbox comes with a tool that works well under Windows. And someone else mentioned a graphical tool will do the conversion. After a bit of experimenting, I found out, how to convert Virtualbox .vdi files in a comfortable manner. It requires Virtualbox or VMLite workstation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.imgur.com\/gnFzv4z.jpg\" alt=\"\" width=\"648\" height=\"537\" \/><\/p>\n<ol>\n<li>Launch Oracle VM Virtualbox Manager (or VMLite workstation &#8211; also Virtualbox portable fits).<\/li>\n<li>Press Ctrl+D or open the <em>Machine <\/em>menu and select <em>Manager for virtual media<\/em> (see above in background).<\/li>\n<li>In virtual media manager select the .vdi file to be converted. After selecting a file, press Ctrl+C or click the <em>Copy<\/em> button.<\/li>\n<li>In the conversion wizard's dialog box confirm the media to copy and click <em>Next<\/em>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.imgur.com\/e2JbKPe.jpg\" alt=\"\" width=\"422\" height=\"300\" \/><\/li>\n<li>Select the target disk output format and click <em>Next<\/em>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.imgur.com\/LoRuQgn.jpg\" alt=\"\" width=\"423\" height=\"301\" \/><\/li>\n<li>If you selected .vmdk for a virtual machine file, the next dialog box allows you to set the parameter for the target file.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.imgur.com\/BUwHUki.jpg\" alt=\"\" width=\"415\" height=\"295\" \/><\/li>\n<li>After confirming the disk type using the <em>Next <\/em>button, select the target folder and adjust the target file name.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.imgur.com\/amakQVC.jpg\" alt=\"\" width=\"416\" height=\"296\" \/><\/li>\n<li>Click the <em>Next <\/em>button and confirm the <em>Copy <\/em>button in the next dialog box.<\/li>\n<\/ol>\n<p>Virtualbox copy wizard creates a new target disk and convert the source content to the required target disk format.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.imgur.com\/0ljb4nX.jpg\" alt=\"\" width=\"645\" height=\"112\" \/><\/p>\n<p>Afterward, the target folder contains the converted virtual disk, that may be associated to a VMware Workstation or Virtual PC VM (depending on output format).<\/p>\n<blockquote dir=\"ltr\" style=\"margin-right: 0px;\">\n<p style=\"background-color: #fef0ff;\"><strong>Attention:<\/strong> Converting .vdi disks containing VMs with Linux or Android should be no major problem. Only Android may causes trouble, because the Linux kernel just supports IDE disk controller. A Windows guest OS in a converted VM raises serious trouble, because booting in the new environment forces Windows to install other drivers for the hardware environment found in the VM. Windows XP fails with blue screens, if the disk controller changes. Whilst Virtualbox uses SATA- or IDE-controller, VMware connects always a virtual disk via SCSI controller.<\/p>\n<\/blockquote>\n<p><strong>Change the disk controller type in VMware<\/strong><\/p>\n<p>In some cases it's sufficient to change the type of disk controller for VMware player or workstation. This change must be done manually, editing VMware .vmx configuration file with a text editor. In most cases something like this will be present in the .vmx config file:<\/p>\n<p>scsi0.present = \"TRUE\"<br \/>\nscsi0.virtualDev = \"lsilogic\"<br \/>\nscsi0:0.fileName = \"I:\\VMs\\Android3.2\\Android-v4.vhd\"<\/p>\n<p>The command lines shown above must be changed to something like the commands below:<\/p>\n<p>ide0:0.present = \"TRUE\"<br \/>\nide0:0.fileName = \"I:\\VMs\\Android3.2\\Android-v4.vhd\"<\/p>\n<p>After modifying the configuration settings, the VM can bee bootet, to see, if it went well.<\/p>\n<blockquote dir=\"ltr\" style=\"margin-right: 0px;\">\n<p style=\"background-color: #ffffd0;\"><strong>Note:<\/strong> For Windows I prefer tools like VMLite`s MyOldPC or Paragon Go Virtual. These tools not only converting the disk formats. Both tools supporting driver injection in Windows guests, so booting the converted VM should be not a painful job \u2013 only Windows activation can be a \"pain in the as\" \u2013 if Microsoft decides to block the license key.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Whilst Virtualbox can access virtual disks in .vdi, .vhd and .vmdk format, VMware player or workstation supports only .vhd- and .vmdk file format. From time to time people asking me, how to convert a Virtualbox .vdi file to a .vhd &hellip; <a href=\"https:\/\/borncity.com\/blog\/2011\/11\/29\/how-do-i-convert-a-virtualbox-vdi-file-to-vhd-vmdk\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[1700,1701,1702,1699,22,1703],"class_list":["post-5990","post","type-post","status-publish","format-standard","hentry","category-virtualisierung","tag-conversion","tag-vdi","tag-vhd","tag-virtual-disk","tag-virtualbox","tag-vmdk"],"_links":{"self":[{"href":"https:\/\/borncity.com\/blog\/wp-json\/wp\/v2\/posts\/5990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/borncity.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/borncity.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/borncity.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/borncity.com\/blog\/wp-json\/wp\/v2\/comments?post=5990"}],"version-history":[{"count":0,"href":"https:\/\/borncity.com\/blog\/wp-json\/wp\/v2\/posts\/5990\/revisions"}],"wp:attachment":[{"href":"https:\/\/borncity.com\/blog\/wp-json\/wp\/v2\/media?parent=5990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/borncity.com\/blog\/wp-json\/wp\/v2\/categories?post=5990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/borncity.com\/blog\/wp-json\/wp\/v2\/tags?post=5990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}