{"id":4598,"date":"2015-01-23T13:33:04","date_gmt":"2015-01-23T13:33:04","guid":{"rendered":"http:\/\/www.top-password.com\/blog\/?p=4598"},"modified":"2015-01-23T14:00:59","modified_gmt":"2015-01-23T14:00:59","slug":"how-to-boot-an-existing-virtualbox-vm-from-usb-drive","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/how-to-boot-an-existing-virtualbox-vm-from-usb-drive\/","title":{"rendered":"How to Boot An Existing VirtualBox VM from USB Drive"},"content":{"rendered":"<p>How can I get a VirtualBox virtual machine to boot from a physical USB drive? The problem is that the GUI of Oracle VirtualBox does not have an option to set boot from USB. Luckily there is a workaround to boot a VirtualBox virtual machine from USB drive.<\/p>\n<p>Just create a new virtual hard disk (VMDK) file and use it as a raw disk that VirtualBox maps to your USB drive. When you boot your virtual machine from the newly-created virtual hard drive, it will load the operating system on your USB stick. Here&#8217;s how.<\/p>\n<p><strong>How to Boot An Existing VirtualBox VM from USB Drive?<\/strong><\/p>\n<ol>\n<li>Before doing anything, make sure you&#8217;ve created a bootable USB drive and plugged it into your computer. Now we need to find the disk number of your physical USB drive.<\/li>\n<li>Press Windows Key + R to bring up the Run box, type <strong>diskmgmt.msc<\/strong> and press Enter to open the Disk Management window. Locate your USB drive and note its disk number. In my case, the USB drive is listed as &#8220;<em>Disk 1<\/em>&#8220;, so the disk number is 1.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2015\/01\/disk-management.png\" alt=\"disk-management\" width=\"600\" height=\"382\" class=\"alignnone size-full wp-image-4604\" \/><\/p>\n<\/li>\n<li>Once you have the disk number, open up the Command Prompt as administrator. Use the cd command to navigate to VirtualBox&#8217;s installation directory. If you have installed VirtualBox in any other directory or drive, then change the command accordingly.\n<p><code>cd %programfiles%\\Oracle\\VirtualBox<\/code><\/p>\n<\/li>\n<li>Enter the following command while replacing <em>#<\/em> with the actual disk number you found above.\n<p><code>VBoxManage internalcommands createrawvmdk -filename C:\\exusb.vmdk -rawdisk \\\\.\\PhysicalDrive#<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2015\/01\/create-virtual-hard-drive.png\" alt=\"create-virtual-hard-drive\" width=\"600\" height=\"175\" class=\"alignnone size-full wp-image-4605\" \/><\/p>\n<p>\tYou can replace <em>C:\\extusb.vmdk<\/em> with any file path you want. This command creates a virtual machine disk (VMDK) file that points to the physical USB drive.<\/li>\n<li>Now open up the VirtualBox with administrative rights. If not, VirtualBox will fail to boot from the USB drive. In the VirtualBox main window, select your target virtual machine and click <strong>Settings<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2015\/01\/virtualbox-manager.png\" alt=\"virtualbox-manager\" width=\"600\" height=\"364\" class=\"alignnone size-full wp-image-4606\" \/><\/p>\n<\/li>\n<li>Click on the <strong>Storage<\/strong> tab. Under the Storage Tree section, highlight <strong>Controller:IDE<\/strong> and then click on the &#8220;Add Hard Disk&#8221; icon to the right.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2015\/01\/virtualbox-settings.png\" alt=\"virtualbox-settings\" width=\"600\" height=\"380\" class=\"alignnone size-full wp-image-4607\" \/><\/p>\n<\/li>\n<li>In the popup box, click <strong>Choose existing disk<\/strong> and then choose the VDMK file (<em>C:\\exusb.vdmk<\/em> in the example) you created in step 4. When this is done, click OK to save your changes.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2015\/01\/add-virtual-hard-drive.png\" alt=\"add-virtual-hard-drive\" width=\"315\" height=\"157\" class=\"alignnone size-full wp-image-4608\" \/><\/p>\n<\/li>\n<li>Now starts Virtual machine and you&#8217;ll see that it starts booting from your physical USB drive. As you can see from the image below, I&#8217;ve successfully booted into my PCUnlocker Live USB drive.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2015\/01\/pcunlocker.png\" alt=\"pcunlocker\" width=\"600\" height=\"564\" class=\"alignnone size-full wp-image-4609\" \/><\/p>\n<\/li>\n<\/ol>\n<p>With this method you can install the operating system from the USB stick, or boot your existing VirtualBox virtual machine from other third-party rescure &amp; recovery USB drives.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How can I get a VirtualBox virtual machine to boot from a physical USB drive? The problem is that the GUI of Oracle VirtualBox does not have an option to set boot from USB. Luckily there is a workaround to boot a VirtualBox virtual machine from USB drive. Just create a new virtual hard disk [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1,10],"tags":[2061],"class_list":["post-4598","post","type-post","status-publish","format-standard","hentry","category-free-software","category-others","category-tips-tricks","tag-virtualbox-boot-from-usb"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/4598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=4598"}],"version-history":[{"count":11,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/4598\/revisions"}],"predecessor-version":[{"id":4615,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/4598\/revisions\/4615"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=4598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=4598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=4598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}