Contacts

Virtual machine on Windows flash drive. Loading from a USB disk in VirtualBox. Copy the downloaded image on the USB flash drive

Hi friends! A huge number of users personal computer Use. The fact is that it is very convenient, you can install anyone on the virtual machine. operating system (guest) and use it as a real, install all your favorite programs on it and use it as an ordinary system if you infect her viruses or for some reason it will stop loading, then you are very easy to restore it from backup or install Newly, all this will happen without prejudice to your main operating system (host) installed on your computer.

In the process of working with a virtual machine, you may appear (and more than once) the need to load it from the boot flash drive, for example, to check whether the flash drive is loading or not. Common manual way creating a USB.VMDK file that binding a USB flash drive and a virtual machine is not the easiest way, so I suggest you to take advantage of a very simple program Virtual Machine USB Boot 1.5, I am confident that after reading the article you will be surprised how easy it works. But in the work of the program, especially with the last operating windows system 10 There are nuances, so read the article more carefully.

So, we go to the official website of the utility and download the installer you need.

http://reboot.pro/files/download/339-virtual-machine-usb-boot/

You can download the portable version of the program, but you can download the installer.

I download the portable version, you can run it directly from the flash drive (just in case I lay it out on your cloud storage).

After downloading, launch virtual program Machine USB Boot 1.5.

In the main window of the program click Add. (Add).

In point VM Name. Click on the arrow

and select the name of the virtual machine in the drop-down list, which we want to download from the flash drive. On my laptop, two virtual machines: Windows 10 and Windows 7,

I want to download from the flash drive Windows 10., so I choose it in the list.

In point Drive To Add and Boot I choose a loading flash drive.

OK .

Important: Now, if you are running VirtualBox, it must be closed, since the virtual machine will run the program Virtual Machine USB Boot 1.5.

Click Start..

The virtual machine is launched and an error comes out: Fatal: No Bootable Medium Found! System Halted.

Friends, the fact is that the program Virtual Machine USB Boot 1.5 works incorrectly with last version Virtual machineVirtualBox - 5.0.14 . And does not create an automatically IDE controller for the VMDK file.

Note: To download VirtualBox from a USB flash drive, the Virtual Machine USB Boot 1.5 program specifically creates a VMDK file, it is this file that connects the virtual machine with a USB flash drive. This file vMDK is created in the personal program folder:C: \\ Users \\ Username \\ VirtualBox VMS \\ Windows 10 (Virtual Machine Name).

So that there is no error "Fatal: No Bootable Medium Found! System Halted "when loading a virtual machine from a flash drive, we need to create IDE controller for VMDK file.

Click on the button Carriers.

Click on the button in the form of rhombic and choose AddIDE controller.

IDE controller added.

Z. appearance programVirtual Machine USB Boot 1.5 re-

Click Start.

And the virtual machine is loaded from the flash drive.

If you use a little outdated version Virtual machine VirtualBox 4.3.34then with her similar problems will not be. Virtual Machine USB Boot 1.5 will automatically create an IDE controller for the VMDK file.

All popular hypervisors for Windows - Hyper-V. , VirtualBox. , Vmware. - Provide the launch of virtual machines (VM) With loading ISO. - Drains and flash drives. Running Vm Since the latter, not in each case will be a process without problems: without dancing with a tambourine with flash drives UEFI Run only Vm on the base BY EFI in programs VirtualBox. and Vmware.. How to simplify the launch of VM from flash drives in other cases?


To do this, you can create the so-called virtual flash drive - all the contents of the real USB transfers to transfer to a virtual hard disk and, accordingly, run Vm from him. But the contents must be transferred along with the structure of the physical flash drive - to virtual disk Inherited all sections if there are several (for example, in the case of Mac OS or Chrome OS) , as well as the attributes of the boot device (If this is not a UEFI carrier) . You can do this at least two ways described below.

All actions in our case will be held with. In other virtualization programs, it is necessary to act by analogy.

1. R-DRIVE Image program

The first way to create a virtual flash drive is to transfer the structure and content of the real USB -Conitor to a virtual disk using the program bacpee. Open the parameters of existing Vm and click.

Add another disk.

The controller type is left by default.

Create new Disc. We indicate its size: let it be about the same as the size of the flash drive, but let few even be different. It is necessary to not confuse the device when cloning. Save in the form of one file.

Indicate the placement path. Click

Run Vm, We connect a real flash drive to it. In the guest OS install trial.-Eversion program . In its window choose "Copy disk disc".

In graf "A source" Choose a real flash drive. In graf "Receiver" - just created virtual disk.

And - "To begin".

Upon completion of cloning, we leave the program.

Now in the guest's guide OS. We have two identical devices.

We can turn off the real flash drive from Vm. As well as we can disable the virtual disk from the current Vm and use it to launch others Vm.

2. RUFUS program

The second way to create a virtual flash drive is to use the program features RUFUS 3.1.. In the updated version 3.x. This program, in the appendage to the existing functions of creating boot USB -dunches, learned to clone real flash drives to files VHD. . BUT VHD. Compatible and S. Hyper-V., and S. VirtualBox., I. Vmware.. Run RUFUS 3.1. in the host system. We choose the desired USB -Oneer if they are somewhat connected, in the column "Device". Next, click the button in the form of a diskette.

Specify the file storage path VHD. .

We are waiting for the completion of the operation and close Rufus..

3. Connecting a virtual flash drive and starting with it

So, the virtual flash drive is created, how to connect it to VM and, accordingly, run?

In parameters Vm Click hDD.

Choose an existing one.

In the conductor window, specify the path to the file storage folder VHD. . In the file display column set. And click our virtual VHD. -The cover.

On the EFI - Machines enter B. Bios. - either use the button on the hypervisor toolbar or when starting Vm Click F2.

In the bootloader window, choose Hard Drive. with the number under which he is listed in the overall list of connected virtual disksbut in calculating from scratch. In our case, the virtual flash drive is the second disk Vmbecause B. EFI -Scheck it is as well as Hard Drive 1.0..

On ordinary Vmcreated on the basis of emulation Bios. Legacy to boot from the virtual flash drive, you need in parameters Vm Specify it with the first hard disk. You need to remove all existing drives of the machine and add them again by specifying the virtual USB flash drive.

Engaged in system administration, I often have to use virtual machines Type Oracle WM VirtualBox. and WMWare Workstation. VirtualBox \\ "Ohm I use it more often due to the fact that it is easier for single launches and easier. There was a need to load a virtual machine with a real USB flash drive, in this case, to check the freshly plane loading flash drive. But there is one trouble - through the primary interface of the VirtualBox program You can not load a virtual machine with physical USB diskHowever, there is a way to solve such a task. Here about this way and will be discussed in the article.

To download virtual virtualBox machine from external USB disk, you need to create uSB clone disk as * .vmdk fileThrough which the VirtualBox host will be communicated with the physical external USB disk. Such a file will occupy a few kilobytes, because It contains only data for communication with a USB disk.

1. Create a file that serves as a bridge between VirtualBox and USB disk.

To create a * .vmdk file, there is a VBoxManage.exe utility, which is included in the standard VirtualBox composition, so it is not necessary to download it separately.

So, to create such a file, you must execute the following command in the command line window, applying the path to the VirtualBox directory to your:

"C: \\\\ Program Files \\\\ Oracle \\\\ VirtualBox \\\\ vboxManage.exe" INTERNALCOMMANDS CREATERAWVMDK -FILENAME C: \\\\ TEMP \\\\ USB.VMDK -REWDisk \\\\\\\\. \\\\ PhysicalDrive2 -Register

Here you should pay attention to two parameters:

To find out the number of the external USB disk with which you should connect the file (usually external USB HDD under the number 1 if only one is installed hDD), can be brought to it in "Control Panel → Administration → Computer Management → Disks Management".

Now it remains to configure the VirtualBox host to download from the newly created virtual disk.

2. Installation in VirtualBox * .vmdk file as a boot disk.

First you need to add the created USB.VMDK to the list hard disks In the virtual media manager VirtualBox.

Next, go to the "Properties" of the virtual machine (which must be downloaded from USB external disk) and in the "Media" section to install the added virtual hard disk USB.VMDK B. Slot "Primary master IDE", as in the screenshot.

Ready, you can now download a virtual machine from an external USB disk.

19 May 2015 at 12:33

Installing airslax on a virtual machine. Working with WiFi.

  • System administration

Somehow I started backtrack R5 on VirtualBox, but I could not do anything, as it is necessary for it a Wi-Fi adapter, and the adapter built into my laptop it saw as an Ethernet, accordingly it is impossible to work through it. Do not turn on the monitoring mode.

Toping a bunch of sites on the Internet, I did not find anything. I decided to start digging myself. And I did it. I'll say right away, I installed the airslax I am not to hack out wiFi networks. I needed to know who was connected to my network, but now it's not about that.

I will describe the whole process, namely:
1. Installing Airslax on VirtualBox
2. Preparation of flash drive
3. Setting up a virtual machine
4 work with USB WiFi adapter

Knowing how to install Airslax on VirtualBox can skip it and start reading about usb Setup WiFi adapter.

Let's start.

Step 1: Prepare a virtual machine in VirtualBox

Yes, by the way, why exactly VirtualBox, not VMware?
There are several reasons:

1. With VMware I did not fully understand, but I have experience with VirtualBox.
2. I could not run Airslax on VMware

Let's proceed.

1.1 Enter the name for the virtual machine
1.2 Type Linux (Necessarily linux)
1.3 version, at your discretion, but I chose Linux 2.6 / 3.x 64bit (if you have a 32-bit operating system, then select 32 Bit)

Now specify the number of memory allocated for the virtual machine

Specify such a number so that you have a pair of GB in the reserve to the main operating system, optimally like this:
- at 4 GB of RAM ~ 2 GB per virtual machine;
- at 8 GB of RAM ~ 4 GB per virtual machine;
- at 16 GB of RAM ~ 8 GB per virtual machine;
- at 32 GB or more, it is possible to 8. She is enough.

Since the PORTEUS BOOTLOADER is present in the Airslax, the installation on the real hard disk is not desirable. This bootloader will break you Windows bootloader.

Now, if you have not yet created a flash drive with Airslax, I described it here, and if the flash drive is already created, then proceed to 3 points

2. Preparation of flash drive

2.1 Downloading the original image

You can download the image from here. The link leads to Yandex drive.
If you do not believe, go to the site www.airslax.ru and download from there yourself.

2.2 Copying the downloaded image on the USB flash drive

Copy the Boot and Porteus folders on the USB flash drive. After copying files, go to the BOOT folder and open the Porteus-Installer-Windows file:

When this window appears, click on any key to install Porteus Bootloader onto the media. Make sure you do not install the bootloader to your hard drive:

Now again, press any key to exit the installer. That's all, the flash drive is ready and Airslax is already present on the flash drive.

Now I will explain why you need a flash drive, as mentioned above, the porteus bootloader can handle your system bootloader, according to all the files in ISO, you do not start the airslax without installing the porteus bootloader.

Yes, by the way, at the expense hard disk For a virtual machine, select "Do not connect a virtual hard drive". This we will do a little later.

Somewhere on the Internet, I found an article, how to boot from a flash drive in VirtualBox, maybe even read on this site, I don't remember exactly.

3. Setting up a virtual machine and setting up loading from a flash drive for VirtualBox

To allow VirtualBox to work with a flash drive, you need to record the path to the device, all the information in the VMDK file, how to do it.

To create we need:

1. VBoxManager (vboxmanage.exe - is located in the VirtualBox folder)
2. DiskPart (System utility for working with disks, disc partitions)

Create a regular BAT file in a folder with VirtualBox I did it, but did not have enough rights to create a VMDK file, the program required administrator rights, I had to do through command line (CMD).

I will describe how to do through the command line, but if you want to make a BAT file, then simply copy the lines and edit them a little on your own.

3.1 Setting up the download VirtualBox from a flash drive

Open CMD (on behalf of the administrator).

Enter the following: CD path to VirtualBox (I have it: "C: \\ Program Files \\ Oracle \\ VirtualBox"). Later
Vboxmanage.exe InternalCommands CreateRawvmdk -FileName C: \\ Vbox \\ USB.VMDK -REWDisk \\\\. \\ PhysicalDrive1

Sick teams:
VboxManage.exe InternalCommands CreateRawvmdk (this is necessary to rewrite);
- FileName (path to save the VMDK file);
- Rawdisk (physical disk, flash drive) - how to find out what a number, for this we will need diskpart.

Getting to work with diskpart.
Open another CMD, you do not need administrator rights for this utility.

Enter diskpart if you entered correctly, you will see this window:

Enter List Disk and find the flash drive in the list. Note, since I have a 0 drive - this is a hard drive, and the disk 1 is a flash drive. Since the disk 1 is a flash drive, the team in VboxManager will be like this:

Switch back to CMD with command you entered.

Vboxmanage.exe InternalCommands CreateRawvmdk -FileName Path for VMDK -ReWDisk \\\\. \\ PhysicalDrive1 (In my case 1 - USB flash drive).

Do not forget to create a folder to which you save the VMDK file. If everything goes fine, you will see the inscription
Raw Host Disk Access Vmdk File File .Vmdk Created SuccessFully.

Now let's go directly to the configuration of the virtual machine itself.

3.2 Connecting an external flash drive with a virtual machine

Right-click on the Virtual Machine -\u003e Settings

Select "Media" in the list on the left. Then click on the button highlighted in red in the picture.

Click on the "Select Existing Disc" button and select your VMDK file created.

Now go to K. uSB connection WiFi to Airslax in VirtualBox:

Go to the USB menu and click on the button with a green plus and select your adapter, after clicking "OK" and run.

If everything is configured correctly, you will see a blue menu, select Graphic Mode and wait.

How the desktop appears, you can work.

Here is a screenshot of the Airslax in VirtualBox:

I hope I did not kill so much time. Good luck!

This article was created for informational purposes. The author of the article is not responsible for the damage to this program.

In this article, I would like to affect the installation of the Windows OS installation on the VirtualBox virtual machine with the storage flash drive. If you work with virtualBox programYou will have a reason to install the operating system from the flash drive, in principle if you have discovered this article, then you have already appeared.

For this operation, we will need additional software entitled Virtual Machine USB Boot, You can download the program from the official site by clicking on the reference http://reboot.pro/files/download/339-virtual-machine-usb-boot/. From the developer's website you can download both the usual installation version of the program and portable (Portable) that does not require installation. I downloaded portable.

The program downloaded, unpack and launch.

In the program window that opens, click Add (add).

In point VM Name, We need to choose the virtual machine with which our flash drive should be loaded.

In my VirtualBox contains 5 virtual machines, it can be seen in the picture below.

I choose Windows 7, i.e. when starting, this virtual machine will be loaded from the flash drive.

In point Drive to add and bootchoose the flash drive that we want to connect to a virtual machine.

In the information window that appears, click OK.

Select the tab that appears in the list and click Start. Only before pressing the button start.make sure the VIRUALBOX program is not running.

In the information window that appears, click again OK. After that, the virtual machine starts from the flash drive as we wanted.

The problem occurs when starting.

In VirtualBox versions, starting with 5.0, when starting from the program Virtual Machine USB Boot, an error is observed Fatal: No Bootable Medium Found! System Halted, this error occurs because the Virtual Machine USB Boot program does not automatically create an IDE controller in VitualBox 5 versions, without it cannot be connected to the VMDK file created by the program, which in turn is responsible for the connection with our flash drive.

To eliminate the error, we need to manually create an IDE - the controller in VirtualBox. We go into the program, choose the virtual machine with which we want to load (in my case it is Windows 7), then go to settings -\u003e Media, in point information carriers, At the bottom, press the button with a green cross (as shown in the picture below) and select item Add an IDE controller.

Run the Virtual Machine USB Boot program again, click Start..

Now the program starts with a flash drive without any errors.

And as we see, the VMDK extension file has been successfully connected to the IDE controller.

ABOUTput your opinion about this article, well, of course, ask your questions if something suddenly went wrong.

Thanks for attention!



Did you like the article? Share it