The objective of this tutorial is to install Linux (specifically the distribution Ubuntu ) in a virtual machine using VirtualBox.
We are going to perform this tutorial assuming that our operating system is Windows .
VirtualBox is a virtualization application from the Oracle company.
You can download it here .
Once downloaded, we install the program as we usually do in Windows .
You also have to download the Extension Pack from the same page (the one that says "All supported platforms").
For practical purposes, and within the scope of this tutorial, the 32-bit version will suffice.
Anyway, if your PC has enough RAM and you have a powerful current processor with 64-bit Windows, you can download the 64-bit version.
It is not possible, in other words, to install a 64-bit virtual machine on a 32-bit computer.
Once you are on the Ubuntu download page you will see that you download an .iso file, this is a CD-DVD image that we will use in VirtualBox to start the virtual machine.
When we have downloaded the Ubuntu iso we are going to open VirtualBox and we are going to create our virtual machine.
These are the steps to follow to create it :
We click on " New ", we give it a name (for example, ubuntu), we select Type " Linux " and version " Ubuntu (32-bit) ".
Then we allocate a memory size of 2048 MB. If you have enough RAM you can assign up to 4096 MB in the 32-bit version of Ubuntu.
Later we specify the creation of a hard disk. We select " Create a virtual hard disk now " and select a file type " VDI (VirtualBox Disk Image) ".
Then we select if we want that disk of fixed size or dynamically reserved. In this case I prefer to select " Fixed size " since I have spare disk space and I will not copy it to other discs later.
We assign a name to the virtual disk, and assign it a size of 8.00 GB.
Later we click on the " Create " button.
Okay, we already have the virtual machine created. Now we are going to adjust some configuration options before starting it for the first time.
In the left menu we select our newly created virtual machine and click on " Configuration ".
In the " General " left menu option, click on " Advanced " and select " Share clipboard " in " Bidirectional ".
In the same way we proceed with " Drag and drop ".
In the " Screen " option in the left menu, click on " Screen " and then assign 128 MB of Video memory.
Now we go to the option " Storage " and select " Empty " in the option just below " IDE Controller " and in " Attributes " on the right click on the CD icon.
A file explorer will open. We look for the .iso of Ubuntu that we have downloaded before and click " Accept ".
We continue with the " Network " option and select " Connected to Bridge Adapter ". In this way, our virtual machine will take an IP address from the private network and we can access this virtual machine from our other network devices.
Perfect, now let's start our virtual machine by clicking on " Start " (green arrow icon).
When loading the operating system, a language selection screen will appear, offering two options:
" Try Ubuntu " and " Install Ubuntu ".
The option of " Try Ubuntu " is to try Ubuntu without installing anything and it is advisable to choose this option if you have never used a Linux.
In our case we will select the language " Spanish " and click on " Install Ubuntu ".
In the next screen we will see a series of requirements for its installation, hard disk space, Internet connection, download of updates and installation of third-party plugins. We can select it if we want and click on " Continue ".
Then we will see how we want to partition the hard drive.
We leave the option selected " Delete disk and install Ubuntu " and click on " Install now ". We will get an alert with the information of the partitions, then click on " Continue ".
In the next screen we select the time zone, we will be directly "Madrid".
Click on " Continue ".
On the next screen we select the keyboard language. We select " Spanish " and to the right " Spanish " and click on "Continue".
On the next screen, it asks us for information about the user that we are going to create and the name of the team.
We are going to create a user with the name " carlos ", a name of the PC with name " tutorial ", and a password that is " carlos ".
Obviously it is advisable to use more secure passwords, but for this tutorial it is sufficient.
We select " Log in automatically " so that you do not ask for the password when you enter and click " Continue ."
Then the installation of Linux will start and in about 10 minutes or so it will be finished.
We will get an alert that will tell us that the installation has finished and click on " Restart now " to restart the virtual machine.
When you boot, the letters of "Ubuntu" will appear on the screen and later the desktop will appear, which in broad strokes, consists of a menu bar at the top, and an application bar on the left (by default). Something similar to Mac OS X.
Next we are going to install the Extension Pack (the file that we downloaded before to the beginning) and later we will install the " Guest Additions " that are in the " Devices " menu:
" Insert CD image of the -Guest Additions -..."
We will get an alert to install this software, click on " Run " and ask for our user password.
When finished, press " Return " and the window will close.
Next we are going to restart the virtual machine. Click on the " configuration " icon in the upper right corner and select " Shut down " and then the " Restart " icon.
Once installed these tools and we can eject the CD of the " Guest Additions ". Click on its icon (DVD) in the side menu and select " Eject ".
We already have the system ready to continue with the following tutorials.