How to download virtualbox linux

How to Install VirtualBox on Ubuntu [Beginner’s Tutorial]

Last updated October 29, 2020 By Abhishek Prakash 50 Comments

This beginner’s tutorial explains various ways to install VirtualBox on Ubuntu and other Debian-based Linux distributions.

Oracle’s free and open-source offering VirtualBox is an excellent virtualization tool, especially for desktop operating systems. I prefer using it over VMWare Workstation in Linux, another virtualization tool.

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. Actually, this is what I use it for. If I hear about a nice Linux distribution, instead of installing it on a real system, I test it on a virtual machine. It’s more convenient when you just want to try out a distribution before making a decision about installing it on your actual computer.

In this beginner’s tutorial, I’ll show you various ways of installing Oracle VirtualBox on Ubuntu and other Debian-based distributions.

Installing VirtualBox on Ubuntu and Debian-based Linux distributions

The installation methods mentioned here should also work for other Debian- and Ubuntu-based Linux distributions such as Linux Mint, elementary OS, etc.

Method 1: Install VirtualBox from Ubuntu Repository

Pros: Easy installation

Cons: Installs older version

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

VirtualBox is available in the Ubuntu Software Center

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

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 6.0, but the one in Software Center is 5.2. This means you won’t get the newer features introduced in the latest version of VirtualBox.

Method 2: Install VirtualBox using deb file from Oracle’s website

Pros: Easily install the latest version

Cons: Can’t upgrade to newer version

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. That’s not very convenient, is it?

Method 3: Install VirtualBox using Oracle’s repository

Pros: Automatically updates with system updates

Cons: Slightly complicated installation

This is the command line method, and it may seem complicated to you, but it has advantages over the previous two methods. You’ll get the latest version of VirtualBox, which will be automatically updated with future releases. That’s what you’re looking for, I presume.

To install VirtualBox using the command line, you add Oracle VirtualBox’s repository to your list of repositories. You then add its GPG key so that your system trusts this repository. Now when you install VirtualBox, it will be installed from Oracle’s repository instead of Ubuntu’s repository. If a new version is released, the VirtualBox install will be updated along with the system updates. Let’s see how to do that.

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

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:

Читайте также:  Игровое оформление windows 10

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:

If you’ve read my article on checking your Ubuntu version, you probably know that ‘lsb_release -cs’ will print the codename of your Ubuntu system.

Note: 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.

Tip: A good idea would be to type sudo apt install virtualbox – and hit tab to see the various VirtualBox versions available for installation – then select one of them by typing it completely.

How to remove VirtualBox from Ubuntu

Now that you’ve learned to install VirtualBox, I should also mention the steps for removing it.

If you installed it from the Software Center, the easiest way to remove the application is from the Software Center itself. You just have to find it in the list of installed applications and click the Remove button.

Another ways is to use the command line.

Note that this will not remove the virtual machines and the files associated with the operating systems you installed using VirtualBox. That’s not an entirely bad thing, because you may want to keep them safe and use them later or in some other system.

Finally …

I hope you were able to use one of these methods to install VirtualBox. I’d also advise installing VirtualBox Guest Additions on Ubuntu or whatever guest system you’re using in your VM to get a better and smoother experience.

I’ll also write about using it effectively in another article. For the moment, if you have any tips, suggestions or questions, feel free to leave a comment below.

Like what you read? Please share it with others.

Источник

Download VirtualBox

Here you will find links to VirtualBox binaries and its source code.

VirtualBox binaries

By downloading, you agree to the terms and conditions of the respective license.

If you’re looking for the latest VirtualBox 6.0 packages, see VirtualBox 6.0 builds. Please also use version 6.0 if you need to run VMs with software virtualization, as this has been discontinued in 6.1. Version 6.0 will remain supported until July 2020.

If you’re looking for the latest VirtualBox 5.2 packages, see VirtualBox 5.2 builds. Please also use version 5.2 if you still need support for 32-bit hosts, as this has been discontinued in 6.0. Version 5.2 will remain supported until July 2020.

VirtualBox 6.1.26 platform packages

  • Windows hosts
  • OS X hosts
  • Linux distributions
  • Solaris hosts
  • Solaris 11 IPS hosts

The binaries are released under the terms of the GPL version 2.

See the changelog for what has changed.

You might want to compare the checksums to verify the integrity of downloaded packages. The SHA256 checksums should be favored as the MD5 algorithm must be treated as insecure!

  • SHA256 checksums, MD5 checksums

Note: After upgrading VirtualBox it is recommended to upgrade the guest additions as well.

VirtualBox 6.1.26 Oracle VM VirtualBox Extension Pack

  • All supported platforms

Support for USB 2.0 and USB 3.0 devices, VirtualBox RDP, disk encryption, NVMe and PXE boot for Intel cards. See this chapter from the User Manual for an introduction to this Extension Pack. The Extension Pack binaries are released under the VirtualBox Personal Use and Evaluation License (PUEL). Please install the same version extension pack as your installed version of VirtualBox.

VirtualBox 6.1.26 Software Developer Kit (SDK)

User Manual

The VirtualBox User Manual is included in the VirtualBox packages above. If, however, you would like to take a look at it without having to install the whole thing, you also access it here:

You may also like to take a look at our frequently asked questions list.

VirtualBox older builds

The binaries in this section for VirtualBox before version 4.0 are all released under the VirtualBox Personal Use and Evaluation License (PUEL). As of VirtualBox 4.0, the Extension Pack is released under the VirtualBox Personal Use and Evaluation License and the other packages are released under the terms of the GPL version 2. By downloading, you agree to the terms and conditions of the respective license.

Читайте также:  Как исправить иконки windows 10

VirtualBox Sources

The VirtualBox sources are available free of charge under the terms and conditions of the GNU General Public License, Version 2. By downloading from the below links, you agree to these terms and conditions.

  • Browse the source code repository
    This is the current development code, which is not necessarily stable.
  • View the latest source code changes
  • Download the VirtualBox OSE about logo in higher resolutions: 1024×768, 1600×1200.
  • Checking out from our Subversion server. This is the current development code, which is not necessarily stable.

After getting the sources in one of the ways listed above, you should have a look at the build instructions.

Please also take a look at our licensing FAQ, in particular regarding the use of the name VirtualBox.

Pre-built VirtualBox VMs

There are some pre-built VMs designed for developers and the curious over on the Oracle Tech Network site.

Источник

Install Linux Inside Windows Using VirtualBox [Step by Step Guide]

Last updated April 29, 2021 By Abhishek Prakash 220 Comments

Brief: Using Linux in a virtual machine gives you the option to try Linux within Windows. This step-by-step guide shows you how to install Linux inside Windows using VirtualBox.

There are several ways to install Linux. You can clean everything from your system and install Linux. You can dual boot Linux with Windows and choose one of the operating systems at the boot time. You can even install Linux within Windows from Microsoft Store (though this only provides you with the command line version of Linux).

But if you want to use Linux without making any changes to your Windows system, you can go the virtual machine route. Basically, you install and use Linux like any regular Windows application. When you just want to try Linux for limited use, virtual machines provide the most comfortable option.

In this tutorial, I’ll show you how to install Linux inside Windows using VirtualBox.

Installing Linux inside Windows using VirtualBox

VirtualBox is free and open source virtualization software from Oracle. It enables you to install other operating systems in virtual machines. It is recommended that your system should have at least 4GB of RAM to get decent performance from the virtual operating system.

Requirements

  • Good internet connection to download software and Linux ISO. (You can also use some other computer with an internet connection to download these files.)
  • Windows system with at least 12 GB of free space.
  • Windows system with 4GB of rRAM. (It can work with less RAM as well, but your system will start to lag while using Linux in the virtual machine.)
  • Make sure to enable virtualization in the BIOS

I am installing Ubuntu 17.10 in this tutorial, but the same steps apply to any other Linux distribution. If you prefer videos, you can watch the one below from our YouTube channel:

Step 1: Download and install VirtualBox

Go to the website of Oracle VirtualBox and get the latest stable version from here:

Installing VirtualBox is not rocket science. Just double-click on the downloaded .exe file and follow the instructions on the screen. It is like installing any regular software on Windows.

Step 2: Download the Linux ISO

Next, you need to download the ISO file of the Linux distribution. You can get this image from the official website of the Linux distribution you are trying to use.

I am using Ubuntu in this example, and you can download ISO images for Ubuntu from the link below:

Step 3: Install Linux using VirtualBox

You have installed VirtualBox and you have downloaded the ISO for Linux. You are now set to install Linux in VirtualBox.

Start VirtualBox, and click on the New symbol. Give the virtual OS a relevant name.

Allocate RAM to the virtual OS. My system has 8GB of RAM and I decided to allocate 2GB of it. You can use more RAM if your system has enough extra.

Create a virtual disk. This serves as the hard disk of the virtual Linux system. It is where the virtual system will store its files.

I recommend using the VDI file type here.

You can choose either the “Dynamically allocated” or the “Fixed size” option for creating the virtual hard disk.

The recommended size is 10 GB. However, I suggest giving it more space if possible. 15-20 GB is preferable.

Once everything is in place, it’s time to boot that ISO and install Linux as a virtual operating system.

If VirtualBox doesn’t detect the Linux ISO, browse to its location by clicking the folder icon as shown in the picture below:

Читайте также:  Windows 10 домашняя нет звука

Soon you’ll find yourself inside Linux. You should be presented with the option to install it.

Things from here are Ubuntu-specific. Other Linux distributions may have slightly different looking steps, but it won’t be complicated at all.

You can skip to Continue.

Select ‘Erase disk and install Ubuntu’. Don’t worry. It won’t delete anything on your Windows operating system. You are using the virtual disk space of 15-20GB that we created in previous steps. It won’t impact the real operating system.

Just click on Continue.

Things are pretty straightforward from here.

Try to choose a password that you can remember. You can also reset the password in Ubuntu if you forget it.

You are almost done. It may take 10-15 minutes to complete the installation.

Once the installation finishes, restart the virtual system.

If it gets stuck on the screen below, you may close the VirtualBox.

And that’s all. From now on, just click on the installed Linux virtual machine. You’ll be able to use it directly. The installation is a one time only process. You can even delete the Linux ISO that you downloaded earlier.

I strongly recommend using VirtualBox Guest Additions on Ubuntu for it provides better compatibility and you would be able to use copy-paste and drag-drop between Linux and Windows.

Troubleshooting: AMD-V is disabled in the BIOS

If you face this error while using the virtual machine:

Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).
AMD-V is disabled in the BIOS (or by the host OS) (VERR_SVM_DISABLED).
Result Code:
E_FAIL (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole

This means that virtualization is blocked on your system. You’ll have to activate it in your BIOS settings first.

Reboot your system and as soon as it powers up, press F2/F10/F12 to access BIOS settings. You have to look for the virtualization option in the BIOS and enable it.

Any questions?

That’s all you need to do to install Linux in VirtualBox on Windows. If you have any doubts, or if you encounter any issues, please feel free to ask your questions in the comment box below.

Like what you read? Please share it with others.

About Abhishek Prakash

Creator of It’s FOSS. An ardent Linux user & open source promoter. Huge fan of classic detective mysteries ranging from Agatha Christie and Sherlock Holmes to Detective Columbo & Ellery Queen. Also a movie buff with a soft corner for film noir.

Thanks for the article and for the troubleshoot step for the virtualization disabled by default 🙂

You are welcome.

I just followed your steps and it installed and ran Ubuntu just fine. Everything seems to work. I even installed Chrome easily. I’m running it on a laptop with a 1.2g Intel and 8g of RAM. Thank you for the article.

You are welcome 🙂

Just wanted to thank you for this amazing workflow.

Glad you liked it.

Thank You! I’m taking a Linux class right now at my local community college and I greatly appreciate you helping me with furthering my IT endeavors and career. Good luck with everyone else and thank you again!

Happy to be of help with your learning and career. Do subscribe to the weekly newsletter to get regular updates.

Thanks Abhishek that was very helpful and easy to follow. Post the installation of Ubuntu 20.04.3 LTS, I am having a peculiar problem. Basically the libc library and header files are not there though I have updated all the files during install. The specific error I get is :
gcc: fatal error: stdio.h: No such file or directory
on trying various fixes
e.g.
sudo apt-get install libc6-dev

I still get the following

>>>sudo apt-get install build-essential
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:9.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Any thought? I basically want to write my code in C / C++ (including system calls) and run them.

Источник

Оцените статью