Install Virtual Box and Vagrant in Centos 6.7
VirtualBox
Check
$ cd /etc/yum.repos.d/
$ wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
$ cat virtualbox.repo
[virtualbox]
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
enabled=1
gpgcheck=0
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
$ yum list | grep VirtualBox
VirtualBox-3.2.x86_64 3.2.28_100435_el6-1 virtualbox
VirtualBox-4.0.x86_64 4.0.36_104075_el6-1 virtualbox
VirtualBox-4.1.x86_64 4.1.44_104071_el6-1 virtualbox
VirtualBox-4.2.x86_64 4.2.36_104064_el6-1 virtualbox
VirtualBox-4.3.x86_64 4.3.38_106717_el6-1 virtualbox
VirtualBox-5.0.x86_64 5.0.26_108824_el6-1 virtualbox
VirtualBox-5.1.x86_64 5.1.2_108956_el6-1 virtualbox
Install DKMS
$ yum --enablerepo=epel install dkms
Install virtualbox5.1
$ yum install VirtualBox-5.1.x86_64
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* epel: epel.mirror.net.in
* ius: archive.linux.duke.edu
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-5.1.x86_64 0:5.1.2_108956_el6-1 will be installed
--> Processing Dependency: libXmu.so.6()(64bit) for package: VirtualBox-5.1-5.1.2_108956_el6-1.x86_64
--> Running transaction check
---> Package libXmu.x86_64 0:1.1.1-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================
Installing:
VirtualBox-5.1 x86_64 5.1.2_108956_el6-1 virtualbox 74 M
Installing for dependencies:
libXmu x86_64 1.1.1-2.el6 core-0 66 k
Transaction Summary
==============================================================================================================================================================================
Install 2 Package(s)
Total download size: 75 M
Installed size: 163 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): VirtualBox-5.1-5.1.2_108956_el6-1.x86_64.rpm | 74 MB 00:51
(2/2): libXmu-1.1.1-2.el6.x86_64.rpm | 66 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.4 MB/s | 75 MB 00:51
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libXmu-1.1.1-2.el6.x86_64 1/2
Installing : VirtualBox-5.1-5.1.2_108956_el6-1.x86_64 2/2
Creating group 'vboxusers'. VM users must be member of that group!
Verifying : libXmu-1.1.1-2.el6.x86_64 1/2
Verifying : VirtualBox-5.1-5.1.2_108956_el6-1.x86_64 2/2
Installed:
VirtualBox-5.1.x86_64 0:5.1.2_108956_el6-1
Dependency Installed:
libXmu.x86_64 0:1.1.1-2.el6
Complete!
参照元
https://wiki.centos.org/HowTos/Virtualization/VirtualBoxVagrant
download ページから対応バジョンのリンクをコピー$ wget https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.rpm
--2016-07-26 11:27:33-- https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.rpm
Connecting to 10.80.0.232:9999... connected.
Proxy request sent, awaiting response... 200 OK
Length: 75955433 (72M) []
Saving to: `vagrant_1.8.5_x86_64.rpm'
100%[====================================================================================================================================>] 75,955,433 1.61M/s in 46s
2016-07-26 11:28:19 (1.57 MB/s) - `vagrant_1.8.5_x86_64.rpm' saved [75955433/75955433]
$ sudo rpm -ivh vagrant_1.8.5_x86_64.rpm
Preparing... ########################################### [100%]
1:vagrant ########################################### [100%]
完了
この記事がお役にたちましたらシェアをお願いします:)
0 件のコメント:
コメントを投稿