Installing VirtualBox 5.1 on CentOS 7.3
NickName:Jubz Ask DateTime:2016-12-18T06:42:23

Installing VirtualBox 5.1 on CentOS 7.3

Has anyone been able to install VirtualBox 5.1 successfully on a CentOS 7.3 x64 box? Installing it via YUM succeeds, but calling "vagrant -v" shows the following:

This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:
  yum install kernel-devel-3.10.0-327.36.3.el7.x86_64
(The last command may fail if your system is not fully updated.)
  yum install kernel-devel

kernel-devel is installed already as part of dependencies. So it seems VirtualBox expects the 7.2 kernel modules. Has anyone been able to install VirtualBox 5.1 on kernel 3.10.0-514.2.2.el7.x86_64?

Copyright Notice:Content Author:「Jubz」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/41203773/installing-virtualbox-5-1-on-centos-7-3

Answers
Jubz 2016-12-18T11:18:29

I found a solution to this, in case it might be useful for someone else.\n\n(1) Visit https://www.rpmfind.net/linux/RPM/centos/updates/7.2.1511/x86_64/Packages/kernel-devel-3.10.0-327.36.3.el7.x86_64.html\n\n(2) Download the RPM (kernel-devel-3.10.0-327.36.3.el7.x86_64.rpm)\n\n(3) Run yum localinstall -y /path/to/kernel-devel-3.10.0-327.36.3.el7.x86_64.rpm to install \"kernel-devel\".\n\n(4) Run /sbin/vboxconfig to further configure VirtualBox.\n\nIf you are using Ansible, you need something like the below before installing it via YUM (only if you have a system that does not have the correct kernel sources).\n\n# Required kernel module\n- name: Copy required kernel modules\n copy:\n src: \"{{ role_path }}/files/{{ vbox_kernel_devel_rpm }}\"\n dest: \"/tmp/{{ vbox_kernel_devel_rpm }}\"\n- name: Install kernel-devel module\n shell: \"yum localinstall -y /tmp/{{ vbox_kernel_devel_rpm }}\"\n args:\n warn: false\n- name: Delete uploaded RPM\n file: path=\"/tmp/{{ vbox_kernel_devel_rpm }}\", state=absent\n",


More about “Installing VirtualBox 5.1 on CentOS 7.3” related questions

Installing VirtualBox 5.1 on CentOS 7.3

Has anyone been able to install VirtualBox 5.1 successfully on a CentOS 7.3 x64 box? Installing it via YUM succeeds, but calling "vagrant -v" shows the following: This system is not currently set ...

Show Detail

centos 7 on virtualbox has no directories

as shown here: after installing centos iso on VirtualBox, I use ls to see directory there is None I tried to install many iso but they all ended up with no directory like shown in the screenshot. ...

Show Detail

Users and user groups are not automatically created when installing packages

CentOS Linux release 7.5.1804 (Core) When installed on other packages, users and groups were always created as needed, for example: [root@cloud ~]# yum install VirtualBox-5.1 Running transac...

Show Detail

Centos7 Kickstart on VirtualBox/VMware Workstation

I am trying to create a kickstart for Centos 7.3. I have a windows desktop with VMware Workstation Player installed. I started with a dvd that has Centos 7.3 on it. I then created a vm in VMware

Show Detail

Install Marklogic centos virtualbox vm

I recently set up a CentOS 6.4 basic LAMP server (no GUI) in a pre-built Virtualbox image, and then followed the installation guide/steps for MarkLogic. When I attempt install with rpm -i /tmp/Mar...

Show Detail

Installing SQL Server on Centos 7.3

I'm having some trouble installing SQL server in a fresh centos 7.3 in a virtual server in Soyoustart. After installing sql server using yum sollowing microsoft tutorial I run the the setup comman...

Show Detail

CentOS on Virtualbox, have to use ifdown/ifup after startup

I installed CentOS 7 on a virtual machine, using Virtualbox. I added a host-only interface to the machine before installing the OS, so I can access it from my host environment. In installed net-t...

Show Detail

Installing puppet on CentOS 7

At the moment I have a little issue with installing/downloading puppet on CentOS 7. The command that have been used is: 'sudo rpm -ivh https://yum.puppetlabs.com/puppetlab...l-7.noarch.rpm' Then I'm

Show Detail

Error installing openstack on centos

In order to setup openstack using centos 7 with virtualbox, i got the following error while running packstack --allinone Pre installing Puppet and discovering hosts' details[ ERROR ] ERROR : Fai...

Show Detail

Installing OpenNebula on CentOS 6.5

I am installing OpenNebula on my CentOS 6.9 server, which I have running inside a VirtualBox Machine. While going through the installation process, I got stuck at this point: # cat << EOT...

Show Detail