Skip to content

Instantly share code, notes, and snippets.

@knmkr
Last active September 13, 2015 07:08
Show Gist options
  • Select an option

  • Save knmkr/0b2016671bcff26e27e2 to your computer and use it in GitHub Desktop.

Select an option

Save knmkr/0b2016671bcff26e27e2 to your computer and use it in GitHub Desktop.
Install VirtualBox and Vagrant on CentOS 6.7

参考

VirtualBox

DKMS (Dynamic Kernel Module Support) をインストール

$ sudo yum install dkms

VirtualBox のレポジトリを追加

$ cd /etc/yum.repos.d
$ sudo wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
$ yum list | grep VirtualBox
VirtualBox-3.2.x86_64                       3.2.28_100435_el6-1          virtualbox
VirtualBox-4.0.x86_64                       4.0.32_101617_el6-1          virtualbox
VirtualBox-4.1.x86_64                       4.1.40_101594_el6-1          virtualbox
VirtualBox-4.2.x86_64                       4.2.32_101581_el6-1          virtualbox
VirtualBox-4.3.x86_64                       4.3.30_101610_el6-1          virtualbox
VirtualBox-5.0.x86_64                       5.0.4_102546_el6-1           virtualbox

VirtualBox をインストール

$ sudo yum install VirtualBox-4.3

...
Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules [  OK  ]
Trying to register the VirtualBox kernel modules using DKMS [  OK  ]
Starting VirtualBox kernel modules [  OK  ]
...

TODO: GUI なしでインストール可能?

VirtualBox のユーザグループに作業ユーザを追加

$ sudo usermod -a -G vboxusers username

Vagrant

Vagrant のレポジトリを追加して、インストール

$ sudo rpm -Uvh https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.4_x86_64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment