I would like to install a VirtualBox 4.3.20 to create a linux virtual machine on my CentOs 7/6.5 or RHEL 7 /6.5 linux system. How Do I install oracle virtualBox 4.3.20 under linux operating system? this guide will show how you to install oracle virtualBox 4.3.20 program .
VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL) version 2.
CentOS /RHEL install virtualbox yum repository
Step1# Downloading virtualbox yum repository file using the following command:
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
Outputs:
[root@osetc~]# wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo --2014-12-20 08:43:39-- http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo Resolving download.virtualbox.org (download.virtualbox.org)... 137.254.120.26 Connecting to download.virtualbox.org (download.virtualbox.org)|137.254.120.26|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 243 [text/plain] Saving to: ‘virtualbox.repo’ 100%[=========================>] 243 --.-K/s in 0s 2018-8-20 08:43:40 (18.8 MB/s) - ‘virtualbox.repo’ saved [243/243]
Step2# Move the virtualbox.repo file into “/etc/yum.repos.d” directory by running the below command:
mv virtualbox.repo /etc/yum.repos.d
CentOS /RHEL Install EPEL repository and dependency packages
Step1# Install EPEL repository to resolve package dependency, issue the following command:
#For CentOS 7 or RHEL 7
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
#For CentOS 6.5 or RHEL 6.5
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Outputs:
[root@osetc~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm Retrieving http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm warning: /var/tmp/rpm-tmp.OWLaj7: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:epel-release-7-5 ################################# [100%]
Step2# Install dependency packages using the following command:
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
outputs:
[root@osetc~]# yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms Loaded plugins: fastestmirror, langpacks adobe-linux-x86_64 | 951 B 00:00:00 base | 3.6 kB 00:00:00 epel/x86_64/metalink | 4.9 kB 00:00:00 epel | 4.4 kB 00:00:00 extras | 3.4 kB 00:00:00 mysql-connectors-community | 2.5 kB 00:00:00 mysql-tools-community | 2.5 kB 00:00:00 mysql56-community | 2.5 kB 00:00:00 nux-dextop | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): extras/7/x86_64/primary_db | 42 kB 00:00:00 (2/4): epel/x86_64/primary_db | 3.7 MB 00:00:02 (3/4): updates/7/x86_64/primary_db | 6.0 MB 00:01:49 (4/4): nux-dextop/x86_64/primary_db | 1.0 MB 00:03:11 (1/2): epel/x86_64/updateinfo | 211 kB 00:00:00 (2/2): epel/x86_64/pkgtags | 1.3 MB 00:00:11 Loading mirror speeds from cached hostfile ... Transaction Summary ============================================================================================= Install 2 Packages Upgrade 3 Packages (+3 Dependent packages) Total download size: 31 M Is this ok [y/d/N]: Installed: dkms.noarch 0:2.2.0.3-28.git.7c3e7c5.el7 kernel-devel.x86_64 0:3.10.0-123.13.2.el7 Updated: glibc-devel.x86_64 0:2.17-55.el7_0.3 glibc-headers.x86_64 0:2.17-55.el7_0.3 kernel-headers.x86_64 0:3.10.0-123.13.2.el7 Dependency Updated: glibc.i686 0:2.17-55.el7_0.3 glibc.x86_64 0:2.17-55.el7_0.3 glibc-common.x86_64 0:2.17-55.el7_0.3 Complete!
CentOS /RHEL Install VirtualBox 4.3.20 using Yum command
Step1# Install virtualBox 4.3.20 on your system by running the following yum command, type:
yum install VirtualBox-4.3
Outputs:
[root@osetc~]# yum install VirtualBox-4.3 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * epel: ftp.sjtu.edu.cn * extras: mirror.bit.edu.cn * nux-dextop: li.nux.ro * updates: mirror.bit.edu.cn Resolving Dependencies --> Running transaction check ---> Package VirtualBox-4.3.x86_64 0:4.3.20_96996_el7-1 will be installed --> Processing Dependency: libQtNetwork.so.4()(64bit) for package: VirtualBox-4.3-4.3.20_96996_el7-1.x86_64 --> Processing Dependency: libQtOpenGL.so.4()(64bit) for package: VirtualBox-4.3-4.3.20_96996_el7-1.x86_64 --> Processing Dependency: libQtGui.so.4()(64bit) for package: VirtualBox-4.3-4.3.20_96996_el7-1.x86_64 --> Processing Dependency: libQtCore.so.4()(64bit) for package: VirtualBox-4.3-4.3.20_96996_el7-1.x86_64 --> Running transaction check ---> Package qt.x86_64 1:4.8.5-8.el7 will be installed --> Processing Dependency: qt-settings for package: 1:qt-4.8.5-8.el7.x86_64 ---> Package qt-x11.x86_64 1:4.8.5-8.el7 will be installed --> Processing Dependency: libmng.so.1()(64bit) for package: 1:qt-x11-4.8.5-8.el7.x86_64 --> Running transaction check ---> Package libmng.x86_64 0:1.0.10-14.el7 will be installed ---> Package qt-settings.noarch 0:19-23.4.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================= Package Arch Version Repository Size ============================================================================================= Installing: VirtualBox-4.3 x86_64 4.3.20_96996_el7-1 virtualbox 69 M Installing for dependencies: libmng x86_64 1.0.10-14.el7 base 171 k qt x86_64 1:4.8.5-8.el7 base 4.5 M qt-settings noarch 19-23.4.el7 base 17 k qt-x11 x86_64 1:4.8.5-8.el7 base 13 M Transaction Summary ============================================================================================= Install 1 Package (+4 Dependent packages) Total download size: 86 M Installed size: 196 M Is this ok [y/d/N]: y
Step2# the above command will create vboxusers group and virtualbox user automatically, but you need to add your username into vboxuser group, type the following command:
usermode -a -G vboxusers devops #your user name
outputs:
Step3# rebuild the kernel modules by running the following command:
service xboxdrv setup
Step4# start oracle virtualbox, issue the following command:
virtualbox