{"id":1832,"date":"2014-02-06T10:44:05","date_gmt":"2014-02-06T10:44:05","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=1832"},"modified":"2014-02-06T10:44:21","modified_gmt":"2014-02-06T10:44:21","slug":"convert-a-physical-volume-to-boot-a-vmware-fusion-vm","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=1832","title":{"rendered":"Convert a Physical Mac Volume to Boot a VMWare Fusion VM"},"content":{"rendered":"<p>Booting a VMWare Fusion virtual machine from an external hard disk isn&#8217;t directly supported. Rather, you must bit copy the disk onto a local filesystem and create a virtual machine that uses that instead. There isn&#8217;t a GUI tool on the Mac that does this so some people don&#8217;t think this is possible. However, with several command-line tools it is very do-able. Here&#8217;s how I took a Windows install off of an old laptop drive (the laptop had broken and wouldn&#8217;t turn on) and onto a VMWare virtual machine.<\/span><\/h1>\n<p>I plugged the drive into my Mac using a multi-purpose &#8220;laptop drive to USB&#8221; contraption I had lying around. You can use disk enclosures or actually install the disk in your computer &#8211; whatever is easiest.<\/p>\n<p>I needed to find out what device in \/dev references the drive I just plugged in. As it happens, when you plug in a USB disk, the proper devices get automatically created so all I had to do was reverse list the devices in \/dev to find out that \/dev\/disk5 was the answer for me:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">ls -lrt \/dev<\/div><\/div>\n<p>but you might run &#8220;\/Applications\/Utilities\/Disk Manager&#8221; to find out as well.<\/p>\n<p>The next step is to look at the partition table on the drive using vmware-rawdiskCreator (a command-line application in \/Library\/Application Support\/VMWare Fusion) and find out what partition number vmware-rawdiskCreator in it&#8217;s view of the world. In my case, there was only one.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/Library\/Application Support\/VMware Fusion\/vmware-rawdiskCreator print \/dev\/disk5<\/div><\/div>\n<p>Nr Start Size Type Id Sytem<br \/>\n&#8212; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n1 63 117194112 BIOS 7 HPFS\/NTFS<\/p>\n<p>There is only one partition on this disk not too surprisingly numbered &#8220;1&#8221;.<\/p>\n<p>Then we use vmware-rawdiskCreator to create a &#8220;link&#8221; (just two text files) to the partitions you want converted. Here, I&#8217;m creating a set of files starting with &#8220;laptop-drive-link&#8221; that point to \/dev\/disk5, partition 1 and emulating an &#8220;ide&#8221; device.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/Library\/Application Support\/VMware Fusion\/vmware-rawdiskCreator create \/dev\/disk5 1 laptop-drive-link ide<\/div><\/div>\n<p>or for the full drive<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/Library\/Application Support\/VMware Fusion\/vmware-rawdiskCreator create \/dev\/disk5 fullDevice laptop-drive-link ide<\/div><\/div>\n<p>Then we actually do the bit copy: (run the command sans options to see how to use it)<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/Library\/Application Support\/VMware Fusion\/vmware-vdiskmanager -r laptop-drive-link.vmdk -t 0 laptop-drive.vmdk<\/div><\/div>\n<p>And lastly, create a new virtual machine in Fusion and use the new .vmdk file the above command created as the &#8220;existing virtual disk&#8221; for your new machine. Takes some space, but easy to do.<\/p>\n<p>That should do it!<\/p>\n<p>Note : This works with DMG&#8217;s of systems.  Later versions of VMware tools are located in \/Applications\/VMware\\ Fusion.app\/Contents\/Library<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Booting a VMWare Fusion virtual machine from an external hard disk isn&#8217;t directly supported. Rather, you must bit copy the disk onto [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1832","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1832"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1832\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}