{"id":12837,"date":"2019-03-28T23:28:19","date_gmt":"2019-03-28T23:28:19","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12837"},"modified":"2019-03-28T23:28:19","modified_gmt":"2019-03-28T23:28:19","slug":"how-to-install-latest-virtualbox-6-0-in-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/how-to-install-latest-virtualbox-6-0-in-linux\/","title":{"rendered":"How to Install Latest VirtualBox 6.0 in Linux"},"content":{"rendered":"<p><strong>VirtualBox<\/strong>\u00a0is an open source cross-platform virtualization software, it can be installed on any operating system and enable you to install and run multiple guest operating systems on same computer.<\/p>\n<p>For example, if you install it on your Linux system, you can run\u00a0<strong>Windows XP<\/strong>\u00a0operating system under it as a\u00a0<strong>Guest OS<\/strong>\u00a0or run\u00a0<strong>Linux OS<\/strong>\u00a0on your Windows system and so on. This way, you can install and run as many as guest operating systems as you like, the only limit is disk space and memory.<\/p>\n<p>Recently\u00a0<strong>Oracle<\/strong>\u00a0has released latest stable version of\u00a0<strong>Virtualbox 6.0.0<\/strong>, the newest version of Virtual box comes with so many major changes and new features added to it.<\/p>\n<h3>Whats new in Virtualbox 6.0<\/h3>\n<ul>\n<li>Added support for exporting a virtual machine to Oracle Cloud Infrastructure.<\/li>\n<li>A much improved HiDPI and scaling support, along with superior detection and per-machine configuration.<\/li>\n<li>A Major rework of user interface with smooth and easy setup of virtual machines.<\/li>\n<li>A new file manager allows user to manage the guest file system and copy files between host and guest.<\/li>\n<li>A major update of 3D graphics device emulation on Linux guests.<\/li>\n<li>vboximg-mount utility for hosts enables users to access the content of guest disks on the host.<\/li>\n<li>Added support for using Hyper-V on Windows host.<\/li>\n<\/ul>\n<p>You can see the complete new change log details about\u00a0<strong>VirtualBox 6.0<\/strong>\u00a0on their\u00a0<a href=\"https:\/\/www.virtualbox.org\/wiki\/Changelog-6.0\" target=\"_blank\" rel=\"nofollow noopener\">Official Changelog Page<\/a>.<\/p>\n<p>This guide explains how to install\u00a0<strong>VirtualBox 6.0<\/strong>\u00a0on\u00a0<strong>RHEL<\/strong>,\u00a0<strong>CentOS<\/strong>\u00a0and\u00a0<strong>Fedora<\/strong>\u00a0systems using\u00a0<strong>VirtualBox\u2019s<\/strong>\u00a0own repository with\u00a0<a href=\"https:\/\/www.tecmint.com\/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement\/\" target=\"_blank\" rel=\"noopener\">YUM<\/a>\u00a0and\u00a0<a href=\"https:\/\/www.tecmint.com\/dnf-commands-for-fedora-rpm-package-management\/\" target=\"_blank\" rel=\"noopener\">DNF<\/a>\u00a0(for\u00a0<strong>Fedora 22+<\/strong>\u00a0releases) tool.<\/p>\n<p>This guide also explains how to install\u00a0<strong>VirtualBox 6.0<\/strong>\u00a0on\u00a0<strong>Debian<\/strong>,\u00a0<strong>Ubuntu<\/strong>\u00a0and\u00a0<strong>Linux Mint<\/strong>\u00a0systems using\u00a0<strong>VirtualBox\u2019s<\/strong>\u00a0own repository with\u00a0<a href=\"https:\/\/www.tecmint.com\/useful-basic-commands-of-apt-get-and-apt-cache-for-package-management\/\" target=\"_blank\" rel=\"noopener\">APT-GET<\/a>\u00a0or\u00a0<a href=\"https:\/\/www.tecmint.com\/apt-advanced-package-command-examples-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">APT<\/a>\u00a0command.<\/p>\n<h3>Installing VirtualBox 6.0 in RHEL\/CentOS and Fedora<\/h3>\n<p>If you\u2019ve any earlier version of\u00a0<strong>Virtualbox<\/strong>\u00a0installed, remove that before installing latest version.<\/p>\n<pre># yum remove VirtualBox*\r\n# dnf remove VirtualBox*  [On Fedora 22+]\r\n<\/pre>\n<h4>Adding VirtualBox Repository<\/h4>\n<p>Next add the\u00a0<strong>VirtualBox<\/strong>\u00a0own repository to install latest\u00a0<strong>VirtualBox 6.0<\/strong>\u00a0on following systems.<\/p>\n<h5>For RHEL\/CentOS 7\/6\/<\/h5>\n<pre># cd \/etc\/yum.repos.d\/\r\n# wget http:\/\/download.virtualbox.org\/virtualbox\/rpm\/rhel\/virtualbox.repo<\/pre>\n<h5>For RHEL\/CentOS 5<\/h5>\n<pre># wget http:\/\/dl.fedoraproject.org\/pub\/epel\/5\/i386\/epel-release-5-4.noarch.rpm\r\n# rpm -Uvh epel-release-5-4.noarch.rpm<\/pre>\n<h5>For Fedora 24-29<\/h5>\n<pre># cd \/etc\/yum.repos.d\/\r\n# wget http:\/\/download.virtualbox.org\/virtualbox\/rpm\/fedora\/virtualbox.repo\r\n<\/pre>\n<h4>Install Dependency Packages for VirtualBox<\/h4>\n<p>VirtualBox uses\u00a0<strong>vboxdrv<\/strong>\u00a0kernel module to control and allocate physical memory for execution of guest operating systems. Without this module, you can still use the\u00a0<strong>VirtualBox<\/strong>\u00a0to create and configure virtual machines, but they will not work.<\/p>\n<p>So, to make\u00a0<strong>VirtualBox<\/strong>\u00a0fully functional you will need to update your system first, then install some additional modules like\u00a0<strong>DKMS<\/strong>,\u00a0<strong>kernel-headers<\/strong>\u00a0and\u00a0<strong>kernel-devel<\/strong>\u00a0and some dependency packages.<\/p>\n<pre># yum update\r\n# yum install binutils qt gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms<\/pre>\n<h4>Install VirtualBox 6.0<\/h4>\n<p>Once you\u2019ve installed all the needed dependency packages, you can install latest version of\u00a0<strong>VirtualBox<\/strong>\u00a0using following command.<\/p>\n<pre># yum install VirtualBox-6.0<\/pre>\n<h4>Rebuild Kernel Modules for VirtualBox 6.0<\/h4>\n<p>The below command will automatically create\u00a0<strong>vboxusers<\/strong>\u00a0<strong>group<\/strong>\u00a0and\u00a0<strong>user<\/strong>\u00a0and also search and automatically rebuild required kernel modules.<\/p>\n<pre>------------- <strong>Fedora 22+ and CentOS\/RHEL 7<\/strong> ------------- \r\n\/usr\/lib\/virtualbox\/vboxdrv.sh setup\r\n \r\n------------- <strong>Fedora 18-16 and CentOS\/RHEL 6\/5<\/strong> ------------- \r\n\/etc\/init.d\/vboxdrv setup\r\n## OR ##\r\nservice vboxdrv setup\r\n<\/pre>\n<p>If the above build process fails, you will get a warning messages similar to below.<\/p>\n<pre>vboxdrv.sh: Stopping VirtualBox services.\r\nvboxdrv.sh: Starting VirtualBox services.\r\nvboxdrv.sh: Building VirtualBox kernel modules.\r\nThis system is currently not set up to build kernel modules.\r\nPlease install the Linux kernel \"header\" files matching the current kernel\r\nfor adding new hardware support to the system.\r\nThe distribution packages containing the headers are probably:\r\n    kernel-devel kernel-devel-4.19.0-1.el7.elrepo.x86_64\r\n<\/pre>\n<p>Then you need to first check your installed kernel and then install needed kernel-devel using following commands.<\/p>\n<pre># uname -r\r\n# yum install kernel-devel-CURRENT_KERNEL\r\n<\/pre>\n<p><strong>Note<\/strong>: replace\u00a0<strong>CURRENT_KERNEL<\/strong>\u00a0with string you get from\u00a0<strong>uname -r<\/strong>.<\/p>\n<p>Now run the build setup again.<\/p>\n<pre># \/usr\/lib\/virtualbox\/vboxdrv.sh setup\r\n<\/pre>\n<p>Next, replace user_name in the following command with your own user name.<\/p>\n<pre># usermod -a -G vboxusers user_name\r\n<\/pre>\n<h4>Troubleshooting<\/h4>\n<p>If you get any error message like\u00a0<strong>KERN_DIR<\/strong>\u00a0or if your kernel source directory not detected automatically by build process, you can set it by using following command. Make sure you change kernel version according to your system as shown in red color.<\/p>\n<pre>## RHEL \/ CentOS \/ Fedora ##\r\nKERN_DIR=\/usr\/src\/kernels\/<strong>4.19.0-1.el7.elrepo.x86_64<\/strong>\r\n\r\n## Export KERN_DIR ##\r\nexport KERN_DIR<\/pre>\n<h3>Installing VirtualBox 6.0 in Debian, Ubuntu and Linux Mint<\/h3>\n<p>First, uninstall any earlier version of\u00a0<strong>Virtualbox<\/strong>\u00a0if any.<\/p>\n<pre>$ sudo apt-get remove virtualbox-*<\/pre>\n<p>Next, install latest\u00a0<strong>VirtualBox 6.0<\/strong>\u00a0version using official\u00a0<strong>Virtualbox<\/strong>\u00a0repository. To add the repository, use the following command as shown.<\/p>\n<pre>$ sudo sh -c 'echo \"deb http:\/\/download.virtualbox.org\/virtualbox\/debian $(lsb_release -cs) contrib\" &gt;&gt; \/etc\/apt\/sources.list.d\/virtualbox.list'\r\n$ wget -q https:\/\/www.virtualbox.org\/download\/oracle_vbox.asc -O- | sudo apt-key add -\r\n$ sudo apt-get update\r\n$ sudo apt-get install virtualbox-6.0\r\n<\/pre>\n<h3>Starting VirtualBox 6.0<\/h3>\n<p>Simply execute following command to start it from the terminal or use launcher from menu to start.<\/p>\n<pre># VirtualBox<\/pre>\n<h5>VirtualBox 6.0 Screenshots on CentOS 7<\/h5>\n<div id=\"attachment_31427\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/VirtualBox-on-CentOS.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31427\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/VirtualBox-on-CentOS.png\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/VirtualBox-on-CentOS.png 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/VirtualBox-on-CentOS-768x576.png 768w\" alt=\"VirtualBox 6.0 Running on CentOS 7\" width=\"1024\" height=\"768\" aria-describedby=\"caption-attachment-31427\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-31427\" class=\"wp-caption-text\">VirtualBox 6.0 Running on CentOS 7<\/p>\n<\/div>\n<div id=\"attachment_31426\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Create-Virtalbox-New-Guest-Machine.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31426\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Create-Virtalbox-New-Guest-Machine.png\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Create-Virtalbox-New-Guest-Machine.png 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Create-Virtalbox-New-Guest-Machine-768x576.png 768w\" alt=\"Create Virtalbox New Guest Machine\" width=\"1024\" height=\"768\" aria-describedby=\"caption-attachment-31426\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-31426\" class=\"wp-caption-text\">Create Virtalbox New Guest Machine<\/p>\n<\/div>\n<h3>Installing VirtualBox Extension Pack<\/h3>\n<p>If you need some additional functionality such as\u00a0<strong>VirtualBox RDP<\/strong>,\u00a0<strong>PXE<\/strong>,\u00a0<strong>ROM with E1000<\/strong>\u00a0support and\u00a0<strong>USB 2.0 Host Controller<\/strong>\u00a0support, etc. You need to download and install the\u00a0<a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\" target=\"_blank\" rel=\"nofollow noopener\">VirtualBox Extension Pack<\/a>\u00a0using following\u00a0<strong>wget<\/strong>\u00a0command.<\/p>\n<pre># # wget http:\/\/download.virtualbox.org\/virtualbox\/6.0.0\/Oracle_VM_VirtualBox_Extension_Pack-6.0.0.vbox-extpack<\/pre>\n<div class=\"google-auto-placed ap_container\">\n<p>To install the extension pack, you must have\u00a0<strong>Virtualbox 6.0<\/strong>\u00a0installed, once you downloaded\u00a0<strong>vbox-extpack<\/strong>\u00a0open with\u00a0<strong>Virtualbox<\/strong>\u00a0as shown below.<\/p>\n<p>If it doesn\u2019t work out, then open\u00a0<strong>Virtaulbox<\/strong>\u00a0\u2013&gt;\u00a0<strong>Preferences<\/strong>\u00a0\u2013&gt;\u00a0<strong>Extensions<\/strong>\u00a0and browse for the\u00a0<strong>vbox-extpack<\/strong>\u00a0to install it.<\/p>\n<div id=\"attachment_31428\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Install-Virtualbox-Extension-Pack.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31428\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Install-Virtualbox-Extension-Pack.png\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Install-Virtualbox-Extension-Pack.png 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Install-Virtualbox-Extension-Pack-768x576.png 768w\" alt=\"Install Virtualbox Extension Pack\" width=\"1024\" height=\"768\" aria-describedby=\"caption-attachment-31428\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-31428\" class=\"wp-caption-text\">Install Virtualbox Extension Pack<\/p>\n<\/div>\n<h3>Updating VirtualBox<\/h3>\n<p>If you want to update the\u00a0<strong>VirtualBox<\/strong>\u00a0with latest version in the future, you can simply run the following command to update it.<\/p>\n<h5>On RHEL\/CentOS\/Fedora<\/h5>\n<pre># yum update VirtualBox-6.0<\/pre>\n<h5>On Ubuntu\/Linux Mint<\/h5>\n<pre># apt-get install VirtualBox-6.0<\/pre>\n<h3>Remove VirtualBox<\/h3>\n<p>If in case you want to remove\u00a0<strong>VirtualBox<\/strong>\u00a0completely, just use the following command to remove it completely from your system.<\/p>\n<h5>On RHEL\/CentOS\/Fedora<\/h5>\n<pre># cd \/etc\/yum.repos.d\/\r\n# rm -rf virtualbox.repo\r\n# yum remove VirtualBox-6.0<\/pre>\n<h5>On Ubuntu\/Linux Mint<\/h5>\n<pre># apt-get remove VirtualBox-6.0<\/pre>\n<p>You can also\u00a0<a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\" target=\"_blank\" rel=\"noopener\">Download VirtualBox 6.0<\/a>\u00a0for other\u00a0<strong>Linux<\/strong>,\u00a0<strong>Windows<\/strong>\u00a0and\u00a0<strong>Mac OS X<\/strong>\u00a0platforms.<\/p>\n<p><a style=\"font-size: 1rem;\" href=\"https:\/\/www.tecmint.com\/install-virtualbox-on-redhat-centos-fedora\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>VirtualBox\u00a0is an open source cross-platform virtualization software, it can be installed on any operating system and enable you to install and run multiple guest operating systems on same computer. For example, if you install it on your Linux system, you can run\u00a0Windows XP\u00a0operating system under it as a\u00a0Guest OS\u00a0or run\u00a0Linux OS\u00a0on your Windows system and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/how-to-install-latest-virtualbox-6-0-in-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install Latest VirtualBox 6.0 in Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12837","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12837"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12837\/revisions"}],"predecessor-version":[{"id":12838,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12837\/revisions\/12838"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}