VirtualBox 5.1.28 the most recent release, is a cross-platform virtualization application that installs on your Intel or AMD-based computers, and runs on Windows, Mac, Linux or Solaris operat191ing systems. VirtualBox extends the capabilities of your computer so that it can run multiple operating systems (inside multiple virtual machines) all at same time. In this tutorial, we will look at how to install VirtualBox on Ubuntu & CentOS 7.
Oracle VirtualBox Features
- You can run more than one operating system at a time. This way, you can run software written for one operating system on another (for example, Windows software on Linux or a Mac) without having to reboot to use it.
- Also software vendors can use virtual machines to ship entire software configurations. For example, installing a complete mail server solution on a real machine can be a tedious task. With virtualization, such a complex setup (then often called an “appliance”) can be packed into a virtual machine.
- Also it can be used for testing and disaster recovery. Once installed, a virtual machine and its virtual hard disks can be considered a “container” that can be arbitrarily frozen, woken up, copied, backed up, and transported between hosts. It also comes with a “snapshots” feature, which allows you to save a particular state of a virtual machine and revert back to that state, if necessary.
- Virtualization can significantly reduce hardware and electricity costs. Most of the time, computers today only use a fraction of their potential power and run with low average system loads. A lot of hardware resources as well as electricity is thereby wasted
VirualBox 5.1.28 Changelog
- GUI: mouse events did not reach host windows behind the transparent VM window (Mac OS X hosts only)
- fixed accidental crashes when using the AC’97 sound emulation
- fixed crash when default input or output devices have changed
- resolved the recording issue when using the ALSA backend
- fixed handle leak when using the OSS backend
- E1000: fixed a crash related to VLAN traffic over internal network
- NAT: apply –natbindip1 to TCP connections
- OVF: when importing an appliance with XHCI controller, don’t add an OHCI controller.
- Mac OS X hosts: fixed a GUI crash if Spotlight is used from file dialogs
- Linux hosts: fixed creating fixed sized VDI images
- Linux hosts / guests: fixes for Linux 4.4 of openSUSE Leap 42.3
- Bridged networking: align outgoing packet at word boundary, preventing Windows host crash in MsLbfoProvider.
- Linux Additions: kernel drm driver support for custom EL7 Linux 3.10 kernel
- Solaris Additions: hide an informational message on the bootup console
How to install VirtualBox on Ubuntu 17.04, Ubuntu 16.10, Ubuntu 16.04, Ubuntu 15.10, Ubuntu 14.04, Ubuntu 12.04
- For each distribution, you need to replace ‘yakkety’ with ‘xenial’, or ‘wily’, or ‘trusty’, or ‘precise’
sudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian zesty contrib non-free' > /etc/apt/sources.list.d/virtualbox.list" wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - sudo apt-get update && sudo apt-get install virtualbox-5.1
How to remove Virtualbox from Ubuntu
sudo apt-get remove virtualbox
How to install VirtualBox on CentOS 7
- First add the required repository as well as epel
cd /etc/yum.repos.d/ wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo rpm -Uvh http://epel.mirror.net.in/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
- Next install the required packages
yum install gcc make patch dkms qt libgomp yum install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel
- Setup Environment Variable
#check version of kernel ls /usr/src/kernels/ #configure the environment variable export KERN_DIR=/usr/src/kernels/<your kernel version here>
- Now install Oracle VirtualBox as well as rebuild the kernel modules
yum install VirtualBox-5.1 service vboxdrv start
- Start VirtualBox