Vbox troubleshooting-installation in centos, vbox-centos
Because Oracle provides free Virtual Machine Software, Vbox has advantages over KVM, XEN, and Vbox:
1. When setting up the Oracle RAC system, it is very controllable (shared disk and Network Interface). Just a few clicks and you will be OK;
2. I have been using this software for more than three years;
3. supported technical documents are continuously updated;
4. Less resource occupation
In the past two days, virtual machines must be set up to meet the requirements of the test environment. It happens that all hosts are on the CentOS platform, so we can test how this tool is installed on the Linux platform!
Environment: CentOS 6.5 _ x86_64mini
Software: VirtualBox-4.3-4.3.20_96996_el6-1.x86_64.rpm
Installation steps:
1. Upload the VirtualBox-4.3-4.3.20_96996_el6-1.x86_64.rpm to the corresponding CentOS directory
2. Run the rpm-Uvh VirtualBox-4.3-4.3.20_96996_el6-1.x86_64.rpm and report the following error:
3. troubleshooting
[Root @ vstar183 tmp] # less/var/log/vbox-install.log
Makefile: 183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again. Stop.
After all, Oracle only tests software on its own system, so it is confirmed that the kernel version does not match!
View the kernel version number of the current system
# Uname-r
2.6.32-431. el6.x86 _ 64
# Upgrade the kernel
# Yum install kernel-devel
Restart the system and check the kernel version:
# Uname-r
2.6.32-504.1.3.el6.x86 _ 64
Recompile and set vbox:
#/Etc/init. d/vboxdrv setup
Reference: http://tecadmin.net/install-oracle-virtualbox-on-centos-redhat-and-fedora/
Question added:
1. The RHEL platform may not encounter such errors, which I tested in my previous company;
2. The latest CentOS kernel version usually requires upgrading or patching;