home - Mobile devices
Installing OS on virtualbox. VirtualBox virtual machine for beginners

Virtual machine or VM - software allowing you to create one or more virtual computers on a real computer that emulate the operation of real devices (disk, monitor, network adapter). You can install an operating system on a VM that is different from the one running on a real computer. Today we will talk about how to install Windows 7 on a virtual machine. But first, let's look at its capabilities.

What can you do with a VM?

  1. There are a large number of old necessary programs not wanting to work with the new advanced operating system. After installing the “old” operating system on a virtual computer, you will be able to use them perfectly.
  2. Those wishing to get acquainted with the possibilities of the new operating system can install it on a virtual computer and test it, without the risk of ruining anything on the working computer.
  3. Software whose operation you doubt can be first tested on a virtual computer, and only then installed on a real one.
  4. System administrators can emulate work computer network using virtual servers.

Most popular VMs

Among the large number of programs for working with virtual computers, we would like to draw your attention to the three most popular ones, which you can easily download and install yourself.

  1. VirtualBox is free software from Oracle. The VM works with most operating systems: Windows and Linux, FreeBSD and Mac OS, and supports 32- and 64-bit versions.
  2. VMware is a popular VM supplied in two versions: Player (free) and Workstation (paid). Player is a stripped down version of Workstation. VMware also works with various operating systems (32- and 64-bit versions); the paid version of this program is used by many large corporations.
  3. Microsoft Virtual PC is free, functional software with a great interface. Unfortunately, Virtual PC only works with Microsoft operating systems.

We believe that the VirtualBox program is best suited for use on a home computer, which we will install.

VM installation

  • Download from the official website latest version VirtualBox and start the installation.
  • After the “Welcome to Oracle VM” welcome window, we go to the window for selecting installation components. In this window, you can disable unnecessary components and change the VirtualBox installation folder.
  • We decide on the placement of program shortcuts and continue working (Next button).
  • Please note the warning that in the process VirtualBox installations Our computer will be temporarily disconnected from the network. If at this moment you are downloading information from the Internet, wait until the download is complete and only then press the Yes button.

  • Once the installation process is complete, VirtualBox will automatically launch.

Creating a VM

Let's start creating a VirtualBox virtual machine.


  • We allocate RAM to our machine. Under Windows 7, it is advisable to allocate at least 1 GB (this is system requirement), but not more than half of the computer's OP.
  • Press the button Create new virtual hard disk and we get a disk for our VM.
  • When choosing a hard disk type, you can accept the default value if you do not have specific requirements for the virtual device format.
  • Now we must decide on the format for storing data on our disk (fixed or dynamic). A fixed format immediately “eats” everything allocated to it disk space, and the disk space in a dynamic format (initially very small) will increase only as data is added. We recommend choosing a dynamic format.
  • And we complete the process of creating a VirtualBox machine by specifying the name and size of the virtual hard disk.

Setting up a VM and preparing for Windows installation

We have completed creating the Windows 7 VM virtual machine and can proceed to the settings window ( Configure button), in which all necessary settings our machine - setting video card parameters and enabling 2D/3D acceleration, setting network and remote display parameters, etc.

We will focus on the settings that need to be made to install Windows 7.

Windows can be installed from a CD/DVD distribution or from an ISO image. It is important to note that installing Windows 7 from an ISO image is much faster. Let's move on to the section Media, which so far only contains the virtual hard disk we created, and let's start with the settings (we'll consider all the options).

Exit the settings window and click the Run button to install Windows 7. Installing the OS on real and virtual computers happens exactly the same.

It’s been a while since I wrote articles related to a virtual machine, I’d like to fix that. This article will be of interest to everyone who has ever worked with the Virtualbox program because a very interesting topic is being discussed, on transferring the Windows 7 operating system installed on a computer to a virtual machine, with everyone installed programs and files.

Let's get started. I’ll say right away that I have two operating systems installed on my computer, Windows 7 with which we will work and Windows 10 on which the virtualbox program is installed, into which we will transfer our virtual image.

To create a virtual disk image, we need a small utility called Disk2vhd, you can download it from the link https://technet.microsoft.com/ru-ru/sysinternals/ee656415. After launching, uncheck the box next to use vhdx in the volume to include window select the disk on which the operating system is installed, then click on the browse button.

In the explorer that opens, select local disk, where our virtual image will be saved. It is advisable that the disk have at least 100 GB of free space, but it can be less depending on the size of your local disk. And so we decided where we would save created image, all you have to do is enter the name and click save.

As you can see the path is registered, click create.


We wait about 30 minutes for our virtual image to be created.


After finishing, we will see a success message, now we can close the program.



Now I switch to another system, which is also located on my computer. You can, of course, switch to another computer, you just need a portable hard drive to transfer the created image. If virtualbox is not yet installed on your computer, then follow the link https://www.virtualbox.org/wiki/Downloads and download this software product.


Open the program and click create.


In the window that opens, write the name of the system, select the version, in my case it is 64-bit. Next we indicate the volume random access memory, which our virtual machine will use. And in the hard drive section we select use an existing virtual hard disk , where we click on the review button.


Find the created virtual image in Explorer and click open.


And create.


Now you can try to launch it, select the created item and launch it.


An error appeared: fatal: int18: boot failure, which indicates that the bootloader responsible for starting the system was not detected.


To fix this problem, go to settings.


Select the system item, where in the boot order window, set optical disk to first place.


Next we go to the media tab, where we need iso windows image 7, to restore the bootloader. In the storage media window, click on the empty tab and click on the disk icon in the attributes window, click on the item select the optical disk image.


We find it on the computer this image and click open.


As we see everything is in place, Ok.


Let's run it on our machine.


We booted from the image and in the initial window press the key combination shift+f10 to call the command line, with which we need to work a little.


So we need to enter some commands.

To get started, enter the command diskpart

We see that we are missing s a covered System Reserved section, which is directly responsible for the successful boot of the system. So let's create it.

We enter the command select vol 1, thereby selecting the main volume on which our system is located.

shrink desired=100 - shrink the disk volume to 100 mb

create par prim - create a section

format fs=ntfs - format in file system NTFS

activ - mark as active

assign letter V - assign drive letter V

exit - shut down diskpart


Enter the command bcdboot c:\windows, thereby creating boot files on the hidden partition. And you can restart the virtual machine.

If the so-called blue screen death, with error 0x0000007B, then read the article further.


To eliminate it, again go to settings -> media -> right-click on the SATA controller and delete it.


Now click on the green plus sign and add an IDE controller.


We attach our virtual image to it.




Let's launch and rejoice


ABOUTGive your opinion about this article, and of course, ask your questions if something suddenly goes wrong for you.

Thank you for your attention!

Good afternoon.

Why might you need a virtual machine (a program for running virtual operating systems)? Well, for example, if you want to try out some program so that if something happens, you don’t harm your main operating system; or planning to install some other OS that you don't have on your actual hard drive.

In this article I would like to focus on key points, when installing Windows 7 on a VM Virtual Box virtual machine.

1. What will be needed for installation?

1) A program that will allow you to create a virtual machine on your computer. In my example, I will show work in VM Virtual Box (more about it). In short, the program: free, Russian, can work in both 32 and 64 bit OS, many settings, etc.

2) Image from the operating room Windows system 7. Here you choose for yourself: download, find in your bins required disk(when you buy new computer, often the OS is included on a disk).

3) 20-30 minutes of free time...

2. Setting up a virtual machine (VM Virtual Box)

After launching the Virtual Box program, you can immediately click the “create” button; the settings of the program itself are of little interest.

If you already had a virtual hard disk, you can select it; if not, create a new one.

A dynamic hard drive is preferable. Because its occupied space on a real hard drive will increase in direct proportion to its fullness (i.e. if you copy a 100 MB file onto it, it will take up 100 MB; copy another 100 MB file, it will take up 200 MB).

In this step, the program asks you to specify the final size of the hard drive. Here you indicate how much you need. It is not recommended to specify less than 15 GB for Windows 7 OS.

This completes the setup of the virtual machine. Now you can launch it and begin the installation process...

3. Installing Windows 7. What to do if an error occurs?

Everything is as usual, if not one thing...

Installing an OS on a virtual machine is, in principle, not much different from installing it on a real computer. First, select the desired machine for installation, in our case it is called “Win7”. You launch it.

If we have not yet specified the boot device in the program, then it will ask us to indicate what to boot from. I recommend that you immediately specify the bootloader ISO image, which we prepared in the first section of this article. Installation from an image will be much faster than from a real disk or flash drive.

Usually, after starting the virtual machine, a few seconds pass and the OS installation window appears in front of you. Next, proceed as if installing the OS on a regular real computer, for more details about this, for example,.

If during installation an error came out with a blue (blue) screen, there are two important points who could have caused her.

1) Go to the virtual machine RAM settings and move the slider from 512 MB to 1-2 GB. It is possible that the OS does not have enough RAM during installation.

2) When installing the OS on a virtual machine, for some reason various assemblies behave unstable. Try to take the original OS image, it usually installs without any questions or problems...

4. How to open a VHD disk of a virtual machine?

A little higher in the article I promised to show how to do this... By the way, the ability to open virtual hard disks appeared in Windows 7 (Windows 8 also has this feature).

To get started, go to the OS control panel and go to the section administration(you can use the search).

In the right column there is the option to connect a virtual hard disk. We only need to indicate it location. By default, VHD disks in Virtual Box are located at the following address: C:\Users\alex\VirtualBox VMs\(where alex is your account name).

More similar about all this - .

That's all, successful installations! 😛

VirtualBox is a virtual machine with the ability to run operating systems other than the one installed on the computer. This is usually required to test the OS, obtain information about systems and their features. By installing any OS on VirtualBox, you can perform tasks that are not possible on the main operating system. It is possible to install Windows XP or another on VirtualBox OS: Linux, Ubuntu, Mac OS X and even Android.

VirtualBox is not very good complex program. If you follow the instructions strictly, you will succeed

A guest system installed using VirtualBox within the existing one will help perform, for example, the following tasks:

  • run software products, incompatible with the main OS;
  • use old applications;
  • launch old games that do not function in new versions of the operating system;
  • test applications that are potentially dangerous.

To create a virtual machine, download VirtualBox from the official website. Installing the program is no different from installing any other. If the system suddenly issues a warning that the software has not been tested with this version of the operating system, ignore it. This warning appears several times, continue with the installation.

The VirtualBox interface has slight differences when installing different operating systems, but they are not so significant. The principle of creating a guest OS remains the same for both Windows versions, and, for example, for Ubuntu.

Having installed the program, we create the machine. To do this, follow the algorithm:

  1. Activate the "Create" button.
  2. In the window that opens, select the OS, its type and version, and give your virtual machine a name. This name does not affect anything, it is simply reflected in the window title.
  3. Next you will be asked to select for the guest system HDD: use an existing one or create a new one. Let's create a new one.
  4. The next parameter you will be asked to enter concerns the file type, which determines the format of the new disk to be used. Leave VDI.
  5. In additional attributes, you can select a dynamic or fixed disk. Fixed works faster, but immediately takes up all the allocated space on the hard drive. Dynamic will take up the space on the hard drive required for the guest system, applications, and will automatically expand with additions and installation of programs. It is recommended to select the fixed option for performance reasons.
  6. Set the name of the new hard drive virtual disk, indicate the location of the folder with files, set its size - the size of the files saved on this disk. For example, for Windiws XP, according to manufacturers, 10 GB is enough; for Linux, you can leave the allocated volume by default.
  7. Complete the process by clicking on the “Create” button.

The creation process will take about 7 minutes. Do not disturb the computer this time, it is active CPU. After creating the machine, adjust the settings by clicking the "Customize" tab. However, the default settings are sufficient to launch the OS and operate the guest system.

Operating system installation

Here we will tell you how to install Windows XP on VirtualBox.

Place in the drive installation disk with Windows XP or check for a disk image with .iso format in one of the folders.

In VirtualBox top panel tabs, click “Run”.

In the window that opens you will be asked to select a boot Windows disk XP. If you are using a disk drive, then click “Continue”; if it is an image, click on the folder icon, find the image, click on it, then also click “Continue”.

Will start Windows installation XP, similar to that downloaded on a real computer. Do not press any buttons while formatting the virtual hard drive, copying files, rebooting.

If VirtualBox has captured the mouse cursor, you cannot perform other actions during installation; to return the cursor, press Right Ctrl while clicking LMB. Control will return to you.

When the system is installed, you will see Desktop, install add-ons for the guest system so that the screen resolution becomes better and the operating system works fully. The file will need to be downloaded, then, as the machine will suggest, connected to the virtual drive.

Reboot after installation.

Creating shared folders

Often you need to create shared folders between the main OS and the guest OS. It works like this.

Go to the “Devices” tab in the top panel of VirtualBox, select the “Shared Folders” - “Configure” link.

In the window that opens on the right, click the button to add shared folder. You will be prompted to specify the path to the desired folder. Click on the selected folder and save.

In the guest system, open command line, enter net use drive letter: \\vboxsvr\folder name; confirm by pressing Enter.

If executed correctly, “My Computer” will display network drive, which has access to files located in the folder of your choice located in the guest system.

Thus, having installed Windows XP, you can use it in parallel with the main operating system, using XP for programs that do not work on versions 8-10.

Installing Mac OS

Question, how to install Mac OS X on VirtualBox, the solution is simple. The process is similar to that described above. You will need an installation file. A regular image will not work here; you can use a hacked OS.

  1. Download HackBoot 1 - installer, HackBoot 2, which runs Mountain Lion, you will also need MultiBeast 4 when working with audio.
  2. Having opened VirtualBox, in the Type tab, click on the already created virtual machine (how to create it was described above), in the system section, specify Mac OS X 64 bit.
  3. For RAM on Mac OS, 2 GB is enough.
  4. Create new disk VDI.
  5. After creating the disk, in the main menu, right-click on the virtual machine and select “Configure”. In the “System” tab, uncheck the “Enable EFI” function.
  6. In the “Media” section, go to the CD icon labeled “Empty”, then go to the disk icon on the right side, go to “Select disk image”. Here select HackBoot 1.
  7. Click OK. If you have the Mountain Lion image, we begin to boot Mac OS.
  8. In VirtualBox, select the downloaded Mac OS X and click “Run”.
  9. On the HackBoot screen that appears, find the CD icon at the bottom and select the downloaded Lion image.
  10. Return to the download screen, update, select the OS X Install DVD item that appears.
  11. Choose a language and agree to the terms of use. Your operating system starts looking for your hard drive. Go to "Utilities" - "Disk Utility".

Format the disk and exit the utility, continue installing the system.

Further installation proceeds as usual Mac installation OS, takes about 25 minutes. When completed, a window will appear informing you that the installation was successful.

Installing Linux and Ubuntu

If you have already worked with virtual machines, then the problem of how to install Linux on VirtualBox will not be difficult for you.

When creating a virtual machine, when selecting the operating system in the menu, click “Linux”. In the “Version” line we put the version you have chosen, for example, Linux 2.6. Click “Next”, and then follow the steps we described above in the sections dedicated to installing other operating systems.

We proceed in the same way if you are deciding how to install Ubuntu on VirtualBox, in the “Version” section we find “Ubuntu”, select it and install it.

Installing Android on VirtualBox

Why and how to install Android on VirtualBox - we answer your questions in this section.

For what? To test programs. You should not clutter your phone or tablet with unnecessary software if you are not sure of its operation and functionality. You can first check everything on your PC by creating a virtual machine. Installing/uninstalling programs on a PC will not affect performance, unlike smartphones with small memory.

To install Android, download the required package from the VirtualBox website. When creating a virtual machine, it will be enough to allocate 512 MB of RAM. Mount the image from Android and start the installation. It is recommended to choose installation on a hard drive, then you can fully install programs and save them after a reboot. Here you will need to do this:

  1. When prompted to create/modify a disk, press OK - Enter.
  2. Select Primary and press Enter several times until a new disk is created.
  3. Make it bootable by clicking
  4. Then click Write and after creating the disk, exit the Quit utility.
  5. The installation window opens, select the disk, file system - be sure to FAT 32 (otherwise applications will not be installed).
  6. After the procedure, you will receive Android on a virtual machine. Please note that the "Back" button is replaced by RMB. In the settings, set the Russian language and your account in com.

Please note that when Android installation the Internet is connected to the virtual machine automatically, but Android versions 4 no connection.

VirtualBox helps you test different operating systems, and installing them won't take much of your time. Carefully follow the instructions, follow the algorithms step by step, and you will be able to run any OS: Windows XP, Linux, Ubuntu, Mac OS X and Android in a virtual machine.



 


Read:



How to choose a flash drive file system for Mac

How to choose a flash drive file system for Mac

“Rifat, I bought a new disk and I need to make it work on both Mac and Windows.” “Hi, I have a disc, but I can’t write to it...

How to remove scratches from a phone camera?

How to remove scratches from a phone camera?

Hello everybody! It all started when I bought an iPhone 4, no, not for 14,000 rubles in 2011 :). I bought it in 2016 for 3700, the average price on Avito...

How to Uninstall Programs on Mac OS - Complete Guide

How to Uninstall Programs on Mac OS - Complete Guide

Typically, the process of deleting files on Mac OS is simple. Unlike Windows, it does not have a special uninstall program to get rid of unnecessary...

Useful keyboard shortcuts for Mac OS X mac os keyboard shortcuts

Useful keyboard shortcuts for Mac OS X mac os keyboard shortcuts

Surely not everyone knows that when working with a MacBook Pro, you can use a huge number of hotkeys. Knowledge of button combinations is an order of magnitude...

feed-image RSS