How to uninstall virtualbox fedora?
by Ravi Saive | Published: December 21, 2018 | Last Updated: July 19, 2019
VirtualBox is 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 Windows XP operating system under it as a Guest OS or run Linux OS on 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.
Recently Oracle has released latest stable version of Virtualbox 6.0.0, the newest version of Virtual box comes with so many major changes and new features added to it.
Whats new in Virtualbox 6.0
- Added support for exporting a virtual machine to Oracle Cloud Infrastructure.
- A much improved HiDPI and scaling support, along with superior detection and per-machine configuration.
- A Major rework of user interface with smooth and easy setup of virtual machines.
- A new file manager allows user to manage the guest file system and copy files between host and guest.
- A major update of 3D graphics device emulation on Linux guests.
- vboximg-mount utility for hosts enables users to access the content of guest disks on the host.
- Added support for using Hyper-V on Windows host.
You can see the complete new change log details about VirtualBox 6.0 on their Official Changelog Page.
This guide explains how to install VirtualBox 6.0 on RHEL, CentOS and Fedora systems using VirtualBox’s own repository with YUM and DNF (for Fedora 22+ releases) tool.
This guide also explains how to install VirtualBox 6.0 on Debian, Ubuntu and Linux Mint systems using VirtualBox’s own repository with APT-GET or APT command.
Installing VirtualBox 6.0 in RHEL/CentOS and Fedora
If you’ve any earlier version of Virtualbox installed, remove that before installing latest version.
Adding VirtualBox Repository
Next add the VirtualBox own repository to install latest VirtualBox 6.0 on following systems.
For RHEL/CentOS 7/6/
For RHEL/CentOS 5
For Fedora 24-29
Install Dependency Packages for VirtualBox
VirtualBox uses vboxdrv kernel module to control and allocate physical memory for execution of guest operating systems. Without this module, you can still use the VirtualBox to create and configure virtual machines, but they will not work.
So, to make VirtualBox fully functional you will need to update your system first, then install some additional modules like DKMS, kernel-headers and kernel-devel and some dependency packages.
Install VirtualBox 6.0
Once you’ve installed all the needed dependency packages, you can install latest version of VirtualBox using following command.
Rebuild Kernel Modules for VirtualBox 6.0
The below command will automatically create vboxusers group and user and also search and automatically rebuild required kernel modules.
If the above build process fails, you will get a warning messages similar to below.
Then you need to first check your installed kernel and then install needed kernel-devel using following commands.
Note: replace CURRENT_KERNEL with string you get from uname -r.
Now run the build setup again.
Next, replace user_name in the following command with your own user name.
If you get any error message like KERN_DIR or 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.
Installing VirtualBox 6.0 in Debian, Ubuntu and Linux Mint
First, uninstall any earlier version of Virtualbox if any.
Next, install latest VirtualBox 6.0 version using official Virtualbox repository. To add the repository, use the following command as shown.
Starting VirtualBox 6.0
Simply execute following command to start it from the terminal or use launcher from menu to start.
VirtualBox 6.0 Screenshots on CentOS 7
VirtualBox 6.0 Running on CentOS 7
Create Virtalbox New Guest Machine
Installing VirtualBox Extension Pack
If you need some additional functionality such as VirtualBox RDP, PXE, ROM with E1000 support and USB 2.0 Host Controller support, etc. You need to download and install the VirtualBox Extension Pack using following wget command.
To install the extension pack, you must have Virtualbox 6.0 installed, once you downloaded vbox-extpack open with Virtualbox as shown below.
If it doesn’t work out, then open Virtaulbox –> Preferences –> Extensions and browse for the vbox-extpack to install it.
Install Virtualbox Extension Pack
If you want to update the VirtualBox with latest version in the future, you can simply run the following command to update it.
On Ubuntu/Linux Mint
If in case you want to remove VirtualBox completely, just use the following command to remove it completely from your system.
On Ubuntu/Linux Mint
You can also Download VirtualBox 6.0 for other Linux, Windows and Mac OS X platforms.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+
Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.
- Next story How to Christmassify Your Linux Terminal and Shell
- Previous story How to Install CodeIgniter in CentOS 7
How to Install Java 9 in Debian and Ubuntu Systems
Which Career to Choose: Programmer Vs Administrator
Ethernet Channel Bonding aka NIC Teaming on Linux Systems
- Comments 10
- Pingbacks 0
Thank you so much. I got this setup on Centos7. So far no problems.
Thanks Ravi, got it installed, per your instructions. Now it’s off to installing a Windows 7 virtual machine. (I may be back – soon)
Installing VirtualBox 6.0 in Debian, Ubuntu and Linux Mint does not work in Linux Mint 19. Can anyone tell me how to get VirtualBox 6.0 installed?
Have you followed instructions provided in the article for Linux Mint? If not, follow below instructions.
Install VirtualBox 6.0 on Linux Mint 19 and Linux Mint 18.
It worked perfect. Thank you!
I am also stuck on installing this. I have a centos7 and tried to install virtualbox. I started by downloading the virtualbox.repo and added it into my repositories.
But as soon as I type `yum update` I get a massive error:
[[email protected] yum.repos.d]# yum install VirtualBox-5.1
Loaded plugins: fastestmirror, ovl
virtualbox/7/x86_64/signature | 181 B 00:00:00
Retrieving key from https://www.virtualbox.org/download/oracle_vbox.asc
virtualbox/7/x86_64/signature | 1.1 kB 00:00:00 .
Traceback (most recent call last):
File “/usr/bin/yum”, line 29, in
File “/usr/share/yum-cli/yummain.py”, line 370, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 179, in main
result, resultmsgs = base.doCommands()
File “/usr/share/yum-cli/cli.py”, line 583, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File “/usr/share/yum-cli/yumcommands.py”, line 445, in doCommand
return base.installPkgs(extcmds, basecmd=basecmd)
File “/usr/share/yum-cli/cli.py”, line 983, in installPkgs
txmbrs = self.install(pattern=arg)
File “/usr/lib/python2.7/site-packages/yum/__init__.py”, line 4825, in install
mypkgs = self.pkgSack.returnPackages(patterns=pats,
File “/usr/lib/python2.7/site-packages/yum/__init__.py”, line 1074, in
pkgSack = property(fget=lambda self: self._getSacks(),
File “/usr/lib/python2.7/site-packages/yum/__init__.py”, line 778, in _getSacks
File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 347, in populateSack
File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 157, in doSetup
File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 88, in retrieveAllMD
dl = repo._async and repo._commonLoadRepoXML(repo)
File “/usr/lib/python2.7/site-packages/yum/yumRepo.py”, line 1479, in _commonLoadRepoXML
result = self._getFileRepoXML(local, text)
File “/usr/lib/python2.7/site-packages/yum/yumRepo.py”, line 1256, in _getFileRepoXML
size=102400) # setting max size as 100K
File “/usr/lib/python2.7/site-packages/yum/yumRepo.py”, line 1031, in _getFile
File “/usr/lib/python2.7/site-packages/urlgrabber/mirror.py”, line 448, in urlgrab
return self._mirror_try(func, url, kw)
File “/usr/lib/python2.7/site-packages/urlgrabber/mirror.py”, line 425, in _mirror_try
return func_ref( *(fullurl,), opts=opts, **kw )
File “/usr/lib/python2.7/site-packages/urlgrabber/grabber.py”, line 1197, in urlgrab
return self._retry(opts, retryfunc, url, filename)
File “/usr/lib/python2.7/site-packages/urlgrabber/grabber.py”, line 1086, in _retry
r = apply(func, (opts,) + args, <>)
File “/usr/lib/python2.7/site-packages/urlgrabber/grabber.py”, line 1191, in retryfunc
File “/usr/lib/python2.7/site-packages/urlgrabber/grabber.py”, line 1054, in _run_callback
return cb(obj, *arg, **karg)
File “/usr/lib/python2.7/site-packages/yum/yumRepo.py”, line 1728, in _checkRepoXML
File “/usr/lib/python2.7/site-packages/yum/__init__.py”, line 6418, in getKeyForRepo
self._getAnyKeyForRepo(repo, repo.gpgdir, repo.gpgkey, is_cakey=False, callback=callback)
File “/usr/lib/python2.7/site-packages/yum/__init__.py”, line 6337, in _getAnyKeyForRepo
if hex(int(info[‘keyid’]))[2:-1].upper() in misc.return_keyids_from_pubring(destdir):
File “/usr/lib/python2.7/site-packages/yum/misc.py”, line 599, in return_keyids_from_pubring
for k in ctx.keylist():
gpgme.GpgmeError: (7, 32870, u’Inappropriate ioctl for device’)
Can you maybe help me?
To fix, open and edit the file /etc/yum/pluginconf.d/rhnplugin.conf and change enabled to 0 and then do.
Please have a look at /var/log/vbox-install.log to trace why the build process failed
Run the following commands to build the kernel modules correctly : ( I am using RHEL -7)