2016-03-26

INSTALLATION VIRTUALBOX 5.0.16.r105871 ON CENTOS 7.2.15.11 x64

#OS:
root@dc1 /opt/VirtualBox-Storage# uname -a
Linux dc1 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


root@dc1 /opt/VirtualBox-Storage# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
root@dc1 /opt/VirtualBox-Storage#  








<br>


########################
echo "######################################"
echo "INSTALLATION VIRTUALBOX 5.0.16.r105871 for CENTOS 7.2.1511 x64"


#mkdir -p /opt/VirtualBox-Storage/
#useradd vbox
#passwd  vbox
#Enter new UNIX password: vbox
#Retype new UNIX password: vbox
#passwd: password updated successfully
#usermod -aG vboxusers vbox
#chown -R vbox.vboxusers /opt/VirtualBox-Storage/


mkdir -p /opt/VirtualBox-Storage
cd /opt/VirtualBox-Storage


#/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


wget http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh epel-release-7-5.noarch.rpm


yum -y install gcc make patch  dkms qt libgomp
yum -y install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel
yum -y install VirtualBox-5.0


#/etc/profile
echo "" >> /etc/profile
echo "KERN_DIR=/usr/src/kernels/3.10.0-327.10.1.el7.x86_64" >> /etc/profile
echo "export KERN_DIR" >> /etc/profile
source /etc/profile

cd VirtualBox-5.0-5.0.16_105871_el7-1.x86_64
wget http://download.virtualbox.org/virtualbox/5.0.16/Oracle_VM_VirtualBox_Extension_Pack-5.0.16-105871.vbox-extpack
VBoxManage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-5.0.16-105871.vbox-extpack 

No comments:

Post a Comment