Steps to install VirtualBox on CentOS

Procedure when VirtualBox5.0.24 is installed on CentOS 7

Confirmation of target Linux architecture

# arch
x86_64

Download arch on the following site The result of arch is x86_64, so select AMD64 https://www.virtualbox.org/wiki/Download_Old_Builds_5_0

Installation

# yum -y install VirtualBox-5.0-5.0.24_108355_el7-1.x86_64.rpm
Loaded plugin:fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
VirtualBox-5.0-5.0.24_108355_el7-1.x86_64.Checking rpm: VirtualBox-5.0-5.0.24_108355_el7-1.x86_64
VirtualBox-5.0-5.0.24_108355_el7-1.x86_64.I have rpm set as installed
Resolving dependencies
-->Performing transaction confirmation.
--->Package VirtualBox-5.0.x86_64 0:5.0.24_108355_el7-Install 1
-->I'm dealing with dependencies: libQtCore.so.4()(64bit)Package: VirtualBox-5.0-5.0.24_108355_el7-1.x86_64
base                                                                                                                                                                  | 3.6 kB  00:00:00
epel/x86_64/metalink                                                                                                                                                  | 3.7 kB  00:00:00
epel                                                                                                                                                                  | 4.7 kB  00:00:00
extras                                                                                                                                                                | 2.9 kB  00:00:00
mariadb                                                                                                                                                               | 2.9 kB  00:00:00
percona-release-noarch                                                                                                                                                | 2.9 kB  00:00:00
percona-release-x86_64                                                                                                                                                | 2.9 kB  00:00:00
pgdg10                                                                                                                                                                | 3.6 kB  00:00:00
pgdg11                                                                                                                                                                | 3.6 kB  00:00:00
pgdg12                                                                                                                                                                | 3.6 kB  00:00:00
pgdg94                                                                                                                                                                | 3.6 kB  00:00:00
pgdg95                                                                                                                                                                | 3.6 kB  00:00:00
pgdg96                                                                                                                                                                | 3.6 kB  00:00:00
updates                                                                                                                                                               | 2.9 kB  00:00:00
(1/14): extras/7/x86_64/primary_db                                                                                                                                    | 165 kB  00:00:00
(2/14): epel/x86_64/group_gz                                                                                                                                          |  95 kB  00:00:00
(3/14): epel/x86_64/updateinfo                                                                                                                                        | 1.0 MB  00:00:00
(4/14): percona-release-noarch/7/primary_db                                                                                                                           |  22 kB  00:00:00
(5/14): mariadb/primary_db                                                                                                                                            |  53 kB  00:00:00
(6/14): pgdg10/7/x86_64/primary_db                                                                                                                                    | 204 kB  00:00:01
(7/14): pgdg11/7/x86_64/primary_db                                                                                                                                    | 198 kB  00:00:01
(8/14): pgdg94/7/x86_64/primary_db                                                                                                                                    | 399 kB  00:00:00
(9/14): pgdg95/7/x86_64/primary_db                                                                                                                                    | 187 kB  00:00:00
(10/14): pgdg12/7/x86_64/primary_db                                                                                                                                   | 110 kB  00:00:02
(11/14): pgdg96/7/x86_64/primary_db                                                                                                                                   | 198 kB  00:00:00
(12/14): updates/7/x86_64/primary_db                                                                                                                                  | 7.6 MB  00:00:00
(13/14): percona-release-x86_64/7/x86_64/primary_db                                                                                                                   | 1.0 MB  00:00:03
(14/14): epel/x86_64/primary_db                                                                                                                                       | 6.8 MB  00:01:32
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: nrt.edge.kernel.org
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
-->I'm dealing with dependencies: libQtGui.so.4()(64bit)Package: VirtualBox-5.0-5.0.24_108355_el7-1.x86_64
-->I'm dealing with dependencies: libQtOpenGL.so.4()(64bit)Package: VirtualBox-5.0-5.0.24_108355_el7-1.x86_64
-->I'm dealing with dependencies: libSDL-1.2.so.0()(64bit)Package: VirtualBox-5.0-5.0.24_108355_el7-1.x86_64
-->I'm dealing with dependencies: libvpx.so.1()(64bit)Package: VirtualBox-5.0-5.0.24_108355_el7-1.x86_64
-->Performing transaction confirmation.
--->Package SDL.x86_64 0:1.2.15-15.el7_Install 7
--->Package libvpx.x86_64 0:1.3.0-5.el7_Install 0
--->Package qt.x86_64 1:4.8.7-3.el7_Install 6
-->I'm dealing with dependencies: qt-settings package: 1:qt-4.8.7-3.el7_6.x86_64
-->I'm dealing with dependencies: libdbus-1.so.3(LIBDBUS_1_3)(64bit)Package: 1:qt-4.8.7-3.el7_6.x86_64
--->Package qt-x11.x86_64 1:4.8.7-3.el7_Install 6
-->I'm dealing with dependencies: libmng.so.1()(64bit)Package: 1:qt-x11-4.8.7-3.el7_6.x86_64
-->Performing transaction confirmation.
--->Package dbus-libs.x86_64 1:1.6.12-17.update el7
-->I'm dealing with dependencies: dbus-libs(x86-64) = 1:1.6.12-17.el7 package: 1:dbus-1.6.12-17.el7.x86_64
--->Package dbus-libs.x86_64 1:1.10.24-13.el7_Update 6
--->Package libmng.x86_64 0:1.0.10-14.install el7
--->Package qt-settings.noarch 0:19-23.10.el7.Install centos
-->Performing transaction confirmation.
--->Package dbus.x86_64 1:1.6.12-17.update el7
-->I'm dealing with dependencies: dbus = 1:1.6.12-17.el7 package: 1:dbus-x11-1.6.12-17.el7.x86_64
--->Package dbus.x86_64 1:1.10.24-13.el7_Update 6
-->Performing transaction confirmation.
--->Package dbus-x11.x86_64 1:1.6.12-17.update el7
--->Package dbus-x11.x86_64 1:1.10.24-13.el7_Update 6
-->Dependency resolution finished.

Resolved the dependency

=============================================================================================================================================================================================
Package architecture version repository capacity
=============================================================================================================================================================================================
During installation:
 VirtualBox-5.0                         x86_64                         5.0.24_108355_el7-1                          /VirtualBox-5.0-5.0.24_108355_el7-1.x86_64                         150 M
Dependency related installation:
 SDL                                    x86_64                         1.2.15-15.el7_7                              updates                                                            205 k
 libmng                                 x86_64                         1.0.10-14.el7                                base                                                               171 k
 libvpx                                 x86_64                         1.3.0-5.el7_0                                base                                                               498 k
 qt                                     x86_64                         1:4.8.7-3.el7_6                              base                                                               4.6 M
 qt-settings                            noarch                         19-23.10.el7.centos                          updates                                                             18 k
 qt-x11                                 x86_64                         1:4.8.7-3.el7_6                              base                                                                13 M
Dependency related updates:
 dbus                                   x86_64                         1:1.10.24-13.el7_6                           base                                                               245 k
 dbus-libs                              x86_64                         1:1.10.24-13.el7_6                           base                                                               169 k
 dbus-x11                               x86_64                         1:1.10.24-13.el7_6                           base                                                                48 k

Transaction summary
=============================================================================================================================================================================================
Installation 1 package(+6 dependency packages)
update(Package of 3 dependencies)

Total capacity: 168 M
Total download capacity: 18 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/9): dbus-libs-1.10.24-13.el7_6.x86_64.rpm                                                                                                                          | 169 kB  00:00:00
(2/9): dbus-x11-1.10.24-13.el7_6.x86_64.rpm                                                                                                                           |  48 kB  00:00:00
(3/9): SDL-1.2.15-15.el7_7.x86_64.rpm                                                                                                                                 | 205 kB  00:00:00
(4/9): dbus-1.10.24-13.el7_6.x86_64.rpm                                                                                                                               | 245 kB  00:00:00
(5/9): libmng-1.0.10-14.el7.x86_64.rpm                                                                                                                                | 171 kB  00:00:00
(6/9): libvpx-1.3.0-5.el7_0.x86_64.rpm                                                                                                                                | 498 kB  00:00:00
(7/9): qt-settings-19-23.10.el7.centos.noarch.rpm                                                                                                                     |  18 kB  00:00:00
(8/9): qt-4.8.7-3.el7_6.x86_64.rpm                                                                                                                                    | 4.6 MB  00:00:00
(9/9): qt-x11-4.8.7-3.el7_6.x86_64.rpm                                                                                                                                |  13 MB  00:00:02
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 in total.2 MB/s |  18 MB  00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Update: 1:dbus-libs-1.10.24-13.el7_6.x86_64                                                                                                                         1/13
Update: 1:dbus-1.10.24-13.el7_6.x86_64                                                                                                                              2/13
During installation: SDL-1.2.15-15.el7_7.x86_64                                                                                                                                  3/13
During installation: qt-settings-19-23.10.el7.centos.noarch                                                                                                                      4/13
During installation: 1:qt-4.8.7-3.el7_6.x86_64                                                                                                                                   5/13
During installation: libvpx-1.3.0-5.el7_0.x86_64                                                                                                                                 6/13
During installation: libmng-1.0.10-14.el7.x86_64                                                                                                                                 7/13
During installation: 1:qt-x11-4.8.7-3.el7_6.x86_64                                                                                                                               8/13
During installation: VirtualBox-5.0-5.0.24_108355_el7-1.x86_64                                                                                                                   9/13

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [  OK  ]
Recompiling VirtualBox kernel modules [Failure]
  (Look at /var/log/vbox-install.log to find out what went wrong)
Update: 1:dbus-x11-1.10.24-13.el7_6.x86_64                                                                                                                         10/13
Under arrangement: 1:dbus-x11-1.6.12-17.el7.x86_64                                                                                                                            11/13
Under arrangement: 1:dbus-1.6.12-17.el7.x86_64                                                                                                                                12/13
Under arrangement: 1:dbus-libs-1.6.12-17.el7.x86_64                                                                                                                           13/13
During verification: 1:qt-4.8.7-3.el7_6.x86_64                                                                                                                                   1/13
During verification: libmng-1.0.10-14.el7.x86_64                                                                                                                                 2/13
During verification: 1:dbus-libs-1.10.24-13.el7_6.x86_64                                                                                                                         3/13
During verification: 1:qt-x11-4.8.7-3.el7_6.x86_64                                                                                                                               4/13
During verification: 1:dbus-x11-1.10.24-13.el7_6.x86_64                                                                                                                          5/13
During verification: 1:dbus-1.10.24-13.el7_6.x86_64                                                                                                                              6/13
During verification: libvpx-1.3.0-5.el7_0.x86_64                                                                                                                                 7/13
During verification: qt-settings-19-23.10.el7.centos.noarch                                                                                                                      8/13
During verification: SDL-1.2.15-15.el7_7.x86_64                                                                                                                                  9/13
During verification: VirtualBox-5.0-5.0.24_108355_el7-1.x86_64                                                                                                                  10/13
During verification: 1:dbus-x11-1.6.12-17.el7.x86_64                                                                                                                            11/13
During verification: 1:dbus-1.6.12-17.el7.x86_64                                                                                                                                12/13
During verification: 1:dbus-libs-1.6.12-17.el7.x86_64                                                                                                                           13/13

Installation:
  VirtualBox-5.0.x86_64 0:5.0.24_108355_el7-1

I have installed dependency related:
  SDL.x86_64 0:1.2.15-15.el7_7 libmng.x86_64 0:1.0.10-14.el7 libvpx.x86_64 0:1.3.0-5.el7_0 qt.x86_64 1:4.8.7-3.el7_6 qt-settings.noarch 0:19-23.10.el7.centos qt-x11.x86_64 1:4.8.7-3.el7_6

Updated dependencies:
  dbus.x86_64 1:1.10.24-13.el7_6                             dbus-libs.x86_64 1:1.10.24-13.el7_6                             dbus-x11.x86_64 1:1.10.24-13.el7_6

Has completed!

Make it possible to display X Window with Xming etc. Set / check DISPLAY environment variable

# env | grep DISPLAY
DISPLAY=localhost:0.0

Start VirtualBox

# virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.10.0-514.el7.x86_64) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/rcvboxdrv setup

         You will not be able to start VMs until this problem is fixed.

If the following screen is displayed and it starts up, there is no problem with the installation. image.png

Recommended Posts

Steps to install VirtualBox on CentOS
Steps to install MySQL 8.0 on CentOS 8.1
Steps to deploy EMLauncher on CentOS 8
Steps to install matplotlib on Mac
Steps to install Ubuntu in VirtualBox
How to install PyPy on CentOS
How to install TensorFlow on CentOS 7
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
How to install Maven on CentOS
Steps to install python3 on mac
Steps to install Python environment on Ubuntu
How to install Apache (httpd) on CentOS7
How to install Eclipse GlassFish 5.1.0 on CentOS 7
How to install Apache (httpd) on CentOS8
Steps to install CentOS 8.1 in Virtual Box
Install Faiss on CentOS 7
Install numba on CentOS 7.2
Install Python3.4 on CentOS 6.6
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Installation on CentOS8 VirtualBox
Install awscli on centos7
Install Chainer on CentOS 6.7
Install CentOS7 VirtualBox Guest Additons
Install ImageMagick-6.2.x series on CentOS7.7
Install Python 3.8 on CentOS 7 (SCL)
Install Chrome on CentOS 7 series
Install Python 3.8 on CentOS 8 (AppStream)
Steps to install the latest Python on your Mac
How to install Git GUI and Gitk on CentOS
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)
raspberry pi 4 centos7 install on docker
How to install graph-tool on macOS
How to install VMware-Tools on Linux
How to install pycrypto on Windows
Install java (Oracle JDK14) on CentOS7
[Linux] I installed CentOS on VirtualBox
How to install OpenCV on Mac
Install pip on CentOS7. Also iPython.
Connect to centos6 on virtualbox with ssh connection from Mac
Install Python on CentOS using Pyenv
Study Note 9_Install Jenkins on CentOS7
How to install Go on Ubuntu
Install Python on CentOS using pyenv
How to install music 21 on windows
How to install aws-session-manager-plugin on Manajro Linux
How to install drobertadams / toggl-cli on Mac
Enable sar command on CentOS (install sysstat)
[Kivy] How to install Kivy on Windows [Python]
Connecting from python to MySQL on CentOS 6.4
How to install packages on Alpine Linux
5 reasons to install Linux on your laptop.
How to install Anisble on Amazon Linux 2
How to switch mouse operations on CentOS
How to install richzhang / colorization on Windows 10
Install Mecab on Linux (CentOS) with brew
How to update security on CentOS Linux 8
Install python on xserver to use pip
How to install php7.4 on Linux (Ubuntu)
Personal Note Package to install on Anaconda
How to install NumPy on Raspberry Pi