yum install epel-release
yum install dkms kernel-headers kernel-devel
vi /etc/yum.repos.d/virtualbox.repo
[virtualbox] name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch enabled=1 gpgcheck=1 gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
# export KERN_DIR=/usr/src/kernels/2.6.32-504.3.3.el6.x86_64
yum install VirtualBox-4.3
usermod -a -G vboxusers username
To handle "Can’t create temporary cache file /etc/ld.so.cache~: Permission denied" :
setenforce Permissive
service vboxdrv setup
setenforce Enforcing
thank :
http://tecadmin.net/install-oracle-virtualbox-on-centos-redhat-and-fedora/
http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-virtualbox-4-3-on-centos-7-rhel-7.html
[root@esc-mirantis-153 cisco]# service vboxdrv setup
ReplyDeleteStopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 3.10.0-229.el7.x86_64 cannot be found at
/lib/modules/3.10.0-229.el7.x86_64/build or /lib/modules/3.10.0-229.el7.x86_64/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
[root@esc-mirantis-153 cisco]# setenf
What is the issue ?
ReplyDelete