How to Install Ubuntu in VirtualBox (with Pictures)

Table of contents:

How to Install Ubuntu in VirtualBox (with Pictures)
How to Install Ubuntu in VirtualBox (with Pictures)

Video: How to Install Ubuntu in VirtualBox (with Pictures)

Video: How to Install Ubuntu in VirtualBox (with Pictures)
Video: Top 7 at home dribbling drills 2024, November
Anonim

Have you ever wanted to try Ubuntu, but didn't have another computer to run it on? The following guide will show you how virtual machines like VirtualBox run other operating systems without changing anything on the computer you're using. This guide will cover how to install VirtualBox and set up the first virtual machine, how to get Ubuntu and prepare for installation, and also help you with the Ubuntu installation process.

Step

Part 1 of 6: Getting Ubuntu

Install Ubuntu on VirtualBox Step 1
Install Ubuntu on VirtualBox Step 1

Step 1. Visit the home page of the Ubuntu website, then go to the Downloads section

Install Ubuntu on VirtualBox Step 2
Install Ubuntu on VirtualBox Step 2

Step 2. Select the operating system architecture you want from the drop-down box

Install Ubuntu on VirtualBox Step 3
Install Ubuntu on VirtualBox Step 3

Step 3. Click the "Begin Download" button to start downloading Ubuntu (gnome)

Part 2 of 6: Installing VirtualBox

Install Ubuntu on VirtualBox Step 4
Install Ubuntu on VirtualBox Step 4

Step 1. Download the latest version of VirtualBox

Visit the VirtualBox website, then go to the Downloads section. VirtualBox is available in versions for Windows, Mac, and Linux. If you don't know anything about the operating system you're using, download the Windows version of VirtualBox by clicking “x86/amd64”.

Install Ubuntu on VirtualBox Step 5
Install Ubuntu on VirtualBox Step 5

Step 2. Start the installation

Read and agree to the license terms. Some versions of the program installer, for example for version 4.3.16 which was released on "September 9, 2014", the option to read the license terms is not shown in the middle of the installation process.

Install Ubuntu on VirtualBox Step 6
Install Ubuntu on VirtualBox Step 6

Step 3. Select the "I accept" option, then click "Next" to continue

Install Ubuntu on VirtualBox Step 7
Install Ubuntu on VirtualBox Step 7

Step 4. Choose not to install USB, networking, and Python support. Do so by clicking on the gray icon near each icon and selecting the red X or "Entire feature will be unavailable"

Click "Next" to continue. If this is your first time using a virtual machine, this process eliminates the need to install a special driver, making installation and removal of VirtualBox easier. If you have used a virtual machine before, you can enter those options.

Install Ubuntu on VirtualBox Step 8
Install Ubuntu on VirtualBox Step 8

Step 5. Deselect the Quick Launch Bar box, then click "Next" to continue

Install Ubuntu on VirtualBox Step 9
Install Ubuntu on VirtualBox Step 9

Step 6. Click “Install” to install VirtualBox

Install Ubuntu on VirtualBox Step 10
Install Ubuntu on VirtualBox Step 10

Step 7. Click “Finish” to open VirtualBox

Part 3 of 6: Creating a New Virtual Machine

Install Ubuntu on VirtualBox Step 11
Install Ubuntu on VirtualBox Step 11

Step 1. In VirtualBox, click the "New" button to start the new virtual machine wizard

Install Ubuntu on VirtualBox Step 12
Install Ubuntu on VirtualBox Step 12

Step 2. Provide a name for the virtual machine, then select the operating system you want to run

Click "Next". In the following example, you will install Ubuntu.

Type any name into the Name field (eg Ubuntu or Linux). For "Operating System", select "Linux". The default version chosen is "Ubuntu". Click "Next" when finished

Install Ubuntu on VirtualBox Step 13
Install Ubuntu on VirtualBox Step 13

Step 3. Select the amount of memory to be allocated to the virtual machine, then click "Next"

When you selected the operating system in the previous step, VirtualBox will immediately suggest the appropriate amount of memory to use. If you don't think the number is correct, you can change the memory amount by changing the position of the slider or typing a new memory amount into the box. Click "Next" when finished.

Install Ubuntu on VirtualBox Step 14
Install Ubuntu on VirtualBox Step 14

Step 4. Click "Next" to create a virtual hard disk, then click "Next" again

A second wizard will appear, which will create a virtual hard disk.

Install Ubuntu on VirtualBox Step 15
Install Ubuntu on VirtualBox Step 15

Step 5. Choose between "Fixed-Size Storage" or "Dynamically Expanding Storage" depending on your needs

Fixed Size Storage means the size of the hard disk used for the operating system on the virtual machine (example: an 8 GB virtual disk will become an 8 GB virtual machine hard disk). A hard disk with the Dynamically Expanding Storage method will initially be sized according to the amount of space used by Ubuntu on the hard disk, but can grow larger as the files on it grow to the limit (example: if the virtual disk has files as large as 1 MB when it was created, it was exactly 1 MB. Then, if a 1 MB file was added to it, it would be 2 MB. The size will continue to grow until it reaches the specified size.

Install Ubuntu on VirtualBox Step 16
Install Ubuntu on VirtualBox Step 16

Step 6. Click "Next" to agree on the default virtual hard disk name and size

Also, VirtualBox suggests a roughly appropriate size for your virtual hard drive. If you feel that the number is not quite right, you can change the position of the slider or type a new size number into the box. Click "Next" when finished.

Install Ubuntu on VirtualBox Step 17
Install Ubuntu on VirtualBox Step 17

Step 7. Click "Finish", then wait for VirtualBox to finish creating the virtual hard disk

The virtual machine will appear in the list.

Part 4 of 6: Setting Up the CD for Before Installing Ubuntu

Install Ubuntu on VirtualBox Step 18
Install Ubuntu on VirtualBox Step 18

Step 1. Select your new virtual machine

After that, click the "Settings" button.

Install Ubuntu on VirtualBox Step 19
Install Ubuntu on VirtualBox Step 19

Step 2. Click the “Storage” tab

Install Ubuntu on VirtualBox Step 20
Install Ubuntu on VirtualBox Step 20

Step 3. Click the "CD/DVD" icon which has a "+" sign, then select the ISO you want to load into it

Install Ubuntu on VirtualBox Step 21
Install Ubuntu on VirtualBox Step 21

Step 4. The Ubuntu ISO file will be loaded into the virtual optical disc controller

Install Ubuntu on VirtualBox Step 22
Install Ubuntu on VirtualBox Step 22

Step 5. Click the System tab on the left

Choose the order of reading discs, then place the CD/DVD as the top priority.

Install Ubuntu on VirtualBox Step 23
Install Ubuntu on VirtualBox Step 23

Step 6. You can close the Settings window and return to the main window

The Ubuntu machine is ready to run now.

Part 5 of 6: Installing Ubuntu

Install Ubuntu on VirtualBox Step 24
Install Ubuntu on VirtualBox Step 24

Step 1. Select your virtual machine

Then, click the "Start" button.

Install Ubuntu on VirtualBox Step 25
Install Ubuntu on VirtualBox Step 25

Step 2. The Ubuntu virtual machine will start in another window

Install Ubuntu on VirtualBox Step 26
Install Ubuntu on VirtualBox Step 26

Step 3. The machine will run with the ISO of your choice, and the language selection will appear

Select the language you want to use, then press Enter.

Install Ubuntu on VirtualBox Step 27
Install Ubuntu on VirtualBox Step 27

Step 4. In the next window, you will see "Install Options"

You can choose to try Ubuntu without installing it, install Ubuntu, or check for disk and memory problems. In addition, you can also choose to run the computer through the installed hard disk. Select the Install Ubuntu option.

Install Ubuntu on VirtualBox Step 28
Install Ubuntu on VirtualBox Step 28

Step 5. Once Ubuntu is loaded, select the language you want to use, then click "Continue"

Install Ubuntu on VirtualBox Step 29
Install Ubuntu on VirtualBox Step 29

Step 6. On the next screen, Ubuntu will provide a list of options that can be included in the installation, then you will be asked if you want to update the operating system in the installation

Select the options you want, then click "Continue".

Install Ubuntu on VirtualBox Step 30
Install Ubuntu on VirtualBox Step 30

Step 7. In the next option, you will be asked if you want to erase all the data on the disk and install Ubuntu, or you can also choose to create your own partition by selecting the "Something Else" option

Install Ubuntu on VirtualBox Step 31
Install Ubuntu on VirtualBox Step 31

Step 8. Select your time zone from the map, then click "Continue"

Install Ubuntu on VirtualBox Step 32
Install Ubuntu on VirtualBox Step 32

Step 9. Click "Continue" to continue using the default keyboard layout, or choose the one you want to use

Install Ubuntu on VirtualBox Step 33
Install Ubuntu on VirtualBox Step 33

Step 10. Type the username into the first text box

This way, the login name and computer name will be filled in immediately. Type in the password, and enter the same password into the confirm password field, then click "Continue".

Install Ubuntu on VirtualBox Step 34
Install Ubuntu on VirtualBox Step 34

Step 11. The Ubuntu installation will begin

Install Ubuntu on VirtualBox Step 35
Install Ubuntu on VirtualBox Step 35

Step 12. Once installed, click "Restart Now" to complete the installation

Install Ubuntu on VirtualBox Step 36
Install Ubuntu on VirtualBox Step 36

Step 13. The machine will restart, and the installed Ubuntu will be loaded from the hard disk, and enter the username and password to enter into the main Ubuntu window

Part 6 of 6: Adding a Guest Account

Install Ubuntu on VirtualBox Step 37
Install Ubuntu on VirtualBox Step 37

Step 1. After logging into Ubuntu, click the "Devices" tab in VirtualBox

Select "Insert Guest Additions CD Image…".

Install Ubuntu on VirtualBox Step 38
Install Ubuntu on VirtualBox Step 38

Step 2. When Ubuntu asks for program installation permission and requires a password, type in your user password

Click "Install Now".

Install Ubuntu on VirtualBox Step 39
Install Ubuntu on VirtualBox Step 39

Step 3. Let the terminal program run, and when it's done, press Enter

Install Ubuntu on VirtualBox Step 40
Install Ubuntu on VirtualBox Step 40

Step 4. Restart the Virtual machine, and after restarting, click the "View" menu, then click "Auto-resize Guest Display", and now you have an Ubuntu virtual machine inside the computer at full resolution

Tips

  • You may have to enable virtualization technology from your original machine's BIOS menu for the virtual machine to run smoothly. Otherwise, the error message: "This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot – please use a kernel appropriate for your CPU" will be displayed when the virtual machine starts up. As another option, try to install a 32 bit version of Ubuntu.
  • If you do not mount the USB drive, you will get a warning that VirtualBox cannot successfully access the USB subsystem every time you open the virtual machine settings. This is normal and will not affect your virtual machine. Click "OK" to continue.
  • When you click inside a virtual machine, VirtualBox will immediately connect a mouse to the virtual machine. To eject the mouse from inside the virtual machine, press the right Ctrl key.
  • When the screen focuses on the virtual machine, VirtualBox will directly connect the keyboard to the virtual machine. To remove keyboard controls from within the virtual machine, press the right Ctrl key.

Recommended: