How to Install VirtualBox

This minHour teaches you how to install and use the VirtualBox application on your Windows, Mac, or Linux computer. VirtualBox is a program which emulates a second computer, allowing you to install and use operating systems (e.g., Windows 7) on VirtualBox without having to change your computer's actual operating system.

Windows

Open the VirtualBox website.

Go to https://www.virtualbox.org/ in your computer’s Internet browser. This is the website from which you’ll download the VirtualBox setup file.

Click Download VirtualBox.

It’s a blue button in the middle of the page. Doing so will open the downloads page.

Click Windows hosts.

You’ll see this link below the “VirtualBox 6.1.14 platform packages” heading. The VirtualBox EXE file will begin downloading onto your computer.

Open the VirtualBox EXE file.

Go to the location to which the EXE file downloaded and double-click the file. Doing so will open the VirtualBox installation window.

Navigate through the installation prompts.

Do the following:

  • Click Next on the first three pages.
  • Click Yes when prompted.
  • Click Install
  • Click Yes when prompted.

Click Install when prompted.

Doing so will allow VirtualBox to begin installing on your computer.

Click Finish when prompted.

It’s in the lower-right side of the window. Doing so will close the installation window and open VirtualBox. Now that you’ve installed and opened VirtualBox, you can create a virtual machine in order to run any operating system on your PC.

  • Make sure that you don’t uncheck the “Start” box before doing this.

Mac

Open the VirtualBox website.

Go to https://www.virtualbox.org/ in your Mac’s Internet browser. This is the website from which you’ll download the VirtualBox DMG file.

Click Download VirtualBox.

It’s a blue button in the middle of the page. Doing so will open the downloads page.

Click the OS X hosts link.

You’ll find this option in the middle of the downloads page. The VirtualBox DMG file will begin downloading onto your Mac.

Open the “VirtualBox” DMG file.

Once the VirtualBox DMG finishes downloading, double-click the file to open it.

Double-click the “VirtualBox.pkg” icon.

It’s a brown box-shaped icon in the upper-left corner of the window. Doing so will prompt VirtualBox’s installation window to open.

Navigate through the installation prompts.

Click when prompted, then do the following:

  • Click Continue in the bottom-right corner of the window.
  • Click Install in the bottom-right corner of the window.
  • Enter your Mac user password when prompted.
  • Click Install Software

Wait for the installation to complete.

Once you’re prompted to click in the bottom-right corner of the window, you’ve successfully installed VirtualBox on your Mac.

Open VirtualBox.

Click {“smallUrl”:”https://www.wikihow.com/images/e/ea/Macspotlight.png”,”bigUrl”:”/images/thumb/e/ea/Macspotlight.png/30px-Macspotlight.png”,”smallWidth”:460,”smallHeight”:460,”bigWidth”:30,”bigHeight”:30,”licensing”:”

I edited this screenshot of a Mac icon.n

License: Fair Use
n

“}, type in virtualbox, and double-click in the resulting drop-down menu. Now that you’ve installed and opened VirtualBox, you can create a virtual machine in order to run any operating system on your Mac.

Linux

Open Terminal.

This step will vary depending on your version of Linux, but you can usually open Terminal by selecting {“smallUrl”:”https://www.wikihow.com/images/1/14/Macterminal.png”,”bigUrl”:”/images/thumb/1/14/Macterminal.png/30px-Macterminal.png”,”smallWidth”:460,”smallHeight”:460,”bigWidth”:30,”bigHeight”:30,”licensing”:”

I edited this screenshot of a Mac icon.n

License: Fair Use
n

“} from the Menu. The Terminal window will pop up.

  • You can also press to open Terminal.

Enter the installation command.

Type in sudo apt-get install virtualbox-qt and press ↵ Enter.

Enter your password when prompted.

Type in the password that you use to log into your computer, then press ↵ Enter.

Confirm the installation.

Type y when prompted, then press ↵ Enter.

Wait for VirtualBox to finish installing.

This will take a few minutes. When you see your computer account’s username appear to the left of the command line, Terminal has successfully installed VirtualBox and is awaiting further commands.

Open VirtualBox.

Type in virtualbox and press ↵ Enter to do so. This will prompt the VirtualBox main window to open. Now that you’ve installed and opened VirtualBox, you can proceed with creating a virtual machine in order to run any operating system on your computer.

Creating a Virtual Machine

Gather your installation disc(s) or files.

When creating a virtual machine, you will need to install the operating system just like you would on a regular computer. This means that you will need the installation disc(s) for the operating system you want to install on the virtual machine.

  • You can also install an operating system by using its ISO file.

Click New.

This will open the wizard that will guide you through the process to create your first virtual machine.

Identify the operating system.

On the first screen of the wizard, you will be asked to give the new virtual machine a name as well as choose what operating system you will be installing. Choose the type of operating system from the “Type” menu, and then choose which version you are installing from the “Version” menu.

  • For example, if you are installing Windows 7, choose “Microsoft Windows” from the Type menu, and then “Windows 7” from the Version menu.
  • If you are installing the 64-bit version of the operating system, make sure to choose the 64-bit version from the Version menu.

Click Next.

It’s at the bottom of the window.

Set the amount of RAM.

You will need to designate how much of your computer’s RAM will be allocated to your virtual machine. VirtualBox will automatically choose the recommended minimum amount for the operating system you selected, but you can increase or decrease this if you’d like.

  • You can only go as high as the amount of RAM physically installed in your system.
  • It is not recommended that you set it to the max amount, as there won’t be any left for your regular operating system to use when the virtual machine is running.

Click Next.

Create a virtual hard drive.

Select a virtual hard drive option and click , then click through the prompts and click again. Your virtual machine will need a virtual hard drive in order to install the operating system and any programs.

  • Make sure that the virtual hard drive has at least enough space to install the operating system. Check the specifications for your operating system to see how much space you should allocate at minimum.
  • Remember that any programs you install will also take up space on your virtual hard drive, so plan accordingly.
  • The most common format for virtual hard drives is VDI (VirtualBox Disk Image).

Start the operating system installation.

Once the virtual machine has been configured, the wizard will close and you will be taken back to the VirtualBox main window. Double-click your new machine in the left menu, then do one of the following:

  • If you are installing from a disc, insert it into your computer, click the “Host drive” drop-down box and click the correct drive letter from the drop-down menu.
  • If you are installing from an image file, click the folder-shaped icon to browse through your computer for the installation image file.

Click Start.

It’s at the bottom of the window. This will prompt VirtualBox to begin reading your disk or file.

Install the operating system.

After selecting the installation media, the operating system installation will begin. Installation proceeds the same way it would as if you were installing the operating system on a regular computer. See the following guides for instructions on installing the operating system of your choice:

  • Windows 8
  • Windows 7
  • Windows Vista
  • Windows XP
  • Install OS X
  • Linux Mint
  • Ubuntu Linux

Boot up your virtual machine.

Once the operating system is installed, your virtual machine is ready to go. Simply double-click the name of your virtual machine in the left menu of the VirtualBox main page to start it up. The virtual computer will boot and load into the operating system that you installed.

  • Your virtual machine will run in a window. Whenever the virtual machine window has focus, any keystrokes or mouse clicks will affect the virtual machine and not your physical computer.

Shut down your virtual machine.

You have a couple of different options when closing your virtual machine, and each will affect the machine slightly differently. When you click the “X” in the upper-right corner of the window, you will be presented with several options:

  • Save the machine state – This will save the virtual machine in exactly the state that it’s in when you close it. Any programs you are running will be saved in their current state, and everything will be restored when you start the machine again.
  • Send the shutdown signal – This will send a power-down signal to the virtual machine, and it will shut down as if the power button was pressed on a physical computer.
  • Power off the machine – This will power down the machine as if power was cut to the computer. Nothing will be saved.

Take snapshots of your virtual machine.

VirtualBox allows you to copy your virtual machine’s exact state, allowing you to return to that state at any time. This is incredibly useful for testing software or other configurations.

  • You can take a snapshot by clicking the Machine menu and selecting Take snapshot. The snapshot will be added to the list of your virtual machines on the left side of the VirtualBox menu.
  • You can restore a snapshot by right-clicking the snapshot and selecting Restore. Any changes to your virtual hard drive since the time the snapshot was created will be lost when the snapshot is restored.

Tips

  • VirtualBox can be used to test software that won’t work on your computer’s built-in operating system. For example, if you have a Mac and you want to test a Windows program, VirtualBox provides a solution.

Warnings

  • Any operating system used in VirtualBox will run somewhat sluggishly due to the sheer processing power needed to run two operating systems at once on one computer.

Leave a Comment