Loading from a flash drive or other USB device in VirtualBox

Anonim

Loading from a flash drive in VirtualBox
Connect the physical USB drive - a USB flash drive or an external hard disk in VirtualBox is not difficult, I wrote about this in the instructions Virtual VirtualBox machines for beginners. However, it will not allow the use of the boot flash drive or another USB drive so that the virtual machine is loaded from it. However, this is possible.

In this manual details how to download the download from the physical USB flash drive in VirtualBox for Legacy and UEFI downloads on the Windows, Linux and Mac OS host. Consider that it is not always the download occurs without failures and works stable (at the same time, if you have no problems loaded with the usual ISO).

Configuring download from USB drive in VirtualBox (on Windows host system)

In order to implement the conceived, we need to use the VirtualBox function, which allows you to "arouse" a physical drive into a virtual machine.

In our case, it will be a USB flash drive or an external hard drive, and the steps for implementation are as follows:

  1. Click Win + R. Enter diskmgmt.msc. And find out the disk number you want to connect to the virtual machine. In my example is a disc 2.
    Flash drive number in drives control
  2. Run the command prompt on behalf of the administrator and enter the following two commands in order. In the second command, the last letter n replace the number of the disk from the 1st step, and the path to the virtual disk, which in fact will be a link to the USB flash drive (C: \ USBFrive.vmdk) can specify any - the file will be saved in the location you specify: CD % ProgramFiles% \ Oracle \ VirtualBox VBOXMANAGE INTERNALCOMMANDS CREATERAWVMDK -FILENAME C: \ USBDRIVE.VMDK -REWDisk \\. \ PhysicalDriven
    Scroll of physical USB drive in VirtualBox
  3. Close the command line and Run VirtualBox on behalf of the administrator (it is necessary). Starting on behalf of the administrator can be performed through the context menu on the right click on the label.
  4. Create a new one or use the available VirtualBox virtual machine and go to the "Media" tab. Select the current controller and click on the Add New Device button, select "Hard Disk" (ATTENTION: If you create a new virtual machine, you can simply select the connection of the available virtual hard disk and specify the path to the file created on the 2nd step).
    Adding a new disk in VirtualBox
  5. In the next window, click "Add" and specify the path to the virtual disk file, in my case - C: \ USBDRIVE.VMDK, it will be added to the list, select it and click the Select button.
    Adding a VMDK disk to VirtualBox
  6. By default, the connected disk will be the last in the list of connected, that is, the download of the virtual machine will not be made from it. To change the sequence, change the SATA port number in the media settings.
    Enable download from a flash drive in VirtualBox
  7. Ready, now the virtual machine can boot from the physical USB drive. If the boot flash drive assumes the download in the UEFI mode, go to the "System" section in the Virtual Machine Settings and check the "Enable EFI" item.
    Enable UEFI download in VirtualBox

And the result: on the screenshot below - the menu when loading a virtual machine with a physical multi-load flash drive.

Successful loading of VirtualBox with physical USB drive

Loading from a flash drive in VirtualBox on Linux and Mac OS hosts

Check work on Linux and Mac OS I had no opportunity, but the logic is as follows. Suppose a physical flash drive - Dev / SDB drive in Linux and / dev / disk2s1 in Mac OS, then in Linux:

DF VBOXMANAGE INTERNALCOMMANDS CREATERAWVMDK -FILENAME ~ / .VIRTUALBOX / HARDDISKS / USB.VMDK -REWDisk / Dev / SDB -Register Sudo Chmod 666 / DEV / SDB * sudo chown`

In Mac OS:

DF Sudo Diskutil Unmount / Dev / Disk2S1 VboxManage InternalCommands CreateRewvmdk -Filename /Ussers/words >user/Desktop/USB.VMDK -REWDisk

The remaining steps will be the same as in Windows. In case Mac OS VirtualBox reports that it cannot access the disk, unmount it in Finder.

I hope everything turned out, and the instruction was useful for those goals with which you found it.

阅读更多

文件夹在计算机上不打开
在一个相当少数的情况下,运行各种版本的Windows操作系统的个人计算机的用户面临着不愉快的问题,这是不可能打开文件夹。此外,作为本文的一部分,我们将讨论此问题的主要原因,以及宣布一些最普遍的解决方案。PC上的文件夹不打开 首先,请注意,由于部分决定,所考虑的问题是非常复杂的,并将要求您了解您的计算机。与此同时,正如经常发生的那样,从教学中履行一般规定并不能保证完全消除问题。如果您处于存在问题的用户数量持续存在,请在评论中联系个人帮助。除此之外,还有以下问题的后果,您可能需要完全重新安装操作系统。您可以从相关文章中了解有关此过程的更多信息。 阅读更多:如何恢复指挥的工作如果是一个原因或另一个,上述建议没有带来积极的结果,可以将操作系统重新启动作为补充。出于这些目的,您可以在我们的网站上利用特殊说明。 阅读更多:如何重新启动计算机请注意,在文件夹的问题也适用于“开始”菜单的情况下,您需要执行机械重启。出于这些目的,请使用计算机或笔记本电脑的系统块上的相应按钮。同样允许重新启动并完全关闭,然后发布。为了继续使用系统中的目录和文件提供无故障操作,下载并安装总命令程序。此外,不要忘记熟悉使用此软件的说明。 除此之外,如果您无法在PC上打开一些文件夹,则肯定在其访问权限中。 阅读更多:帐户管理获得管理员权利设置共享访问此外,默认情况下,某些系统文件夹被隐藏,可以在更改某些系统设置后打开。 阅读更多:如何在Windows...