Last active
April 16, 2018 16:21
-
-
Save grenade/6378280 to your computer and use it in GitHub Desktop.
Install Vagrant and its dependencies on Fedora / RedHat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo wget -O /etc/yum.repos.d/virtualbox.repo http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo | |
sudo yum -y update | |
sudo yum -y install binutils qt gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms VirtualBox-4.2 vagrant | |
sudo yum -y clean all | |
wget http://download.virtualbox.org/virtualbox/4.2.16/Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992.vbox-extpack | |
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992.vbox-extpack | |
rm -f Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992.vbox-extpack | |
sudo useradd vagrant | |
sudo usermod -a -G vboxusers vagrant | |
sudo mkdir /data | |
sudo chown -R vagrant.vagrant /data | |
export VAGRANT_HOME=/home/vagrant | |
export VAGRANT_INSTANCE=$VAGRANT_HOME/instance | |
export VAGRANT_BOX=fcdlmyml | |
export USER_FULL_NAME=Vagrant | |
export USERDNSDOMAIN=$(hostname -d) | |
export COMPUTERNAME=$(hostname -s) | |
mkdir -p $VAGRANT_HOME/{vbox,instance/$VAGRANT_BOX} | |
cd $VAGRANT_INSTANCE/$VAGRANT_BOX | |
vagrant init $VAGRANT_BOX http://anvil.xleap.apmoller.net/vagrant/fc18-64g.box | |
vagrant up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment