Soluții

How to Install VirtualBox on Ubuntu

Oracle’s free and open-source offering VirtualBox is an excellent virtualization tool, especially for desktop operating systems. You can use virtualization software like VirtualBox for installing and using another operating system within a virtual machine. You can also use VirtualBox for installing another Linux distribution within your current Linux system.

The easiest way to install VirtualBox on Ubuntu is to search for it in the Software Center and install it from there.

VirtualBox in Ubuntu Software Center

You can also install it from the command line using this command:

sudo apt install virtualbox

However, if you check the package version before installing it, you’ll see that the VirtualBox provided by Ubuntu’s repository is quite old.

For example, the current VirtualBox version at the time of writing is 7.0, but the one in Software Center is 6.2. This means you won’t get the newer features introduced in the latest version of VirtualBox.

Install VirtualBox using deb file from Oracle’s website

If you want to use the latest version of VirtualBox on Ubuntu, the easiest way would be to use the deb file. Oracle provides ready-to-use binary files for VirtualBox releases. If you look at its download page, you’ll see the option to download the deb installer files for Ubuntu and other distributions.

You just have to download this deb file and double-click on it to install it. It’s as simple as that. However, the problem with this method is that you won’t get automatically updated to newer VirtualBox releases. The only way is to remove the existing version, download the newer version and install it again.

Install VirtualBox using Oracle’s repository

First, add the key for the repository. You can download and add the key using this single command.

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

Important for Mint users

The next step will work for Ubuntu only. If you’re using Linux Mint or some other distribution based on Ubuntu, replace $(lsb_release -cs) in the command with the Ubuntu version your current version is based on. For example, Linux Mint 19 series users should use bionic and Mint 18 series users should use xenial. Something like this:

sudo add-apt-repository “deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian bionic contrib“

Now add the Oracle VirtualBox repository to the list of repositories using this command:

sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"

If you see an add-apt-repository command not found error, you’ll have to install the software-properties-common package.

Now that you have the correct repository added, refresh the list of packages available through these repositories and install VirtualBox.

sudo apt update && sudo apt install virtualbox-7.0
[mai mult...]

How to Install Windows 10 in VirtualBox in Linux

VirtualBox is open-source virtualization software from Oracle for creating virtual machines. With a virtual machine, you can run an operating system like an application inside your current operating system. It’s like a computer inside a computer.

These are called virtual machines because they’re basically emulating other operating systems, but they’re not really interacting with the computer system like a true operating system would.

Before installing Windows 10 in VirtualBox, let’s see what you need first:

  • An internet connection with good speed, or a Windows 10 ISO that you’ve already downloaded.
  • At least 4 GB of RAM. The more RAM you’ve got, the better.
  • Around 20 GB of free storage for installing Windows 10.
Step 1: Download Windows 10 ISO

First and foremost, you need to download a Windows 10 ISO. You can download Windows 10 32-bit or 64-bit, depending on your system.

Step 2: Install VirtualBox on Ubuntu and Linux Mint

It’s very easy to install VirtualBox on Ubuntu. All you need to do is to use the command below:

sudo apt install virtualbox
Step 3: Install Windows 10 in VirtualBox

Start VirtualBox. You should see a screen like the one below.

Installing Windows in VirtualBox

Name the VM anything you like. Also select the operating system and version. In this case I’ve chosen Windows 10 and 64-bit.

Screenshot_from_2016-02-15_23:20:11

Choose the RAM size. The recommended RAM size for 64-bit Windows 10 is 2 GB, while for 32-bit Windows 10 it’s 1 GB. But I suggest you have a little more than that for a smoother experience.

Choose RAm size for Windows virtualbox
Allocate 2-3 GB of RAM
Next is the size for the virtual machine. If you’re crunched on space choose the recommended size, otherwise make it a little more than the recommended size.

Vitualbox-Windows-Linux-3

For the format, go ahead with the VDI format.

VDI Windows Virtual Box

If you choose dynamic, the installed VM will grow beyond its allocated size later. If you’re not going to use Windows extensively, I suggest that you go with fixed size.

Vitualbox-Windows-Linux-6

Now it’s time to finalize the installation size. You can choose where to create the virtual disk. The default location (Home directory) works fine.

Vitualbox-Windows-Linux-7

Now’s the time to actually use the ISO. Click on Settings.

Setting Windows Virtual Machine

In here, go to Storage and add a new optical drive. I added this screenshot later because a few readers had difficulties finding it.

Add Windows 10 ISO as optical storage

Click Choose disk and point to the Windows 10 ISO.

Add Windows 10 in virtual box

Now you should see the Windows 10 ISO listed under Storage. Press OK.

Vitualbox-Windows-Linux-11

You should now be back at the main screen of Oracle VirtualBox. Now everything is ready. The next step is to install Windows 10. Click on Start from the main screen:

Install Windows 10 in VirtualBox in Linux

And finally the widnwos boot screeen.

Vitualbox-Windows-Linux-12

[mai mult...]