https://github.com/ifooth/vagrant
Vagrant config
https://github.com/ifooth/vagrant
Last synced: 12 months ago
JSON representation
Vagrant config
- Host: GitHub
- URL: https://github.com/ifooth/vagrant
- Owner: ifooth
- Created: 2016-10-12T15:06:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-15T01:00:12.000Z (over 9 years ago)
- Last Synced: 2025-02-23T23:12:31.590Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Download Files
==================
VirtualBox https://www.virtualbox.org/wiki/Downloads
Vagrant https://www.vagrantup.com/downloads.html
SSH https://github.com/PowerShell/Win32-OpenSSH
CentOS Vagrant Image http://cloud.centos.org/centos/7/vagrant/x86_64/images/
Install VBoxGuestAdditions And Provision Vagrant
===========================
1. copy VBoxGuestAdditions.iso to vagrant folder
2. download Vagrantfile to vagrant folder
3. vagrant up
4. vagrant provision
bootstrap.sh
=================
```bash
#!/bin/bash
echo 'start install yum repo'
rm -rf /etc/yum.repos.d/*
curl https://raw.githubusercontent.com/ifooth/vagrant/master/centos7/Centos-7.repo > /etc/yum.repos.d/Centos-7.repo
curl https://raw.githubusercontent.com/ifooth/vagrant/master/centos7/epel.repo > /etc/yum.repos.d/epel.repo
yum clean all
yum makecache
echo 'start install pkg'
yum install -y gcc make kernel-devel vim psmisc net-tools wget
echo 'start install VBoxGuestAdditions'
mount -t iso9660 -o loop,user /vagrant/VBoxGuestAdditions.iso /mnt
cd /mnt
bash VBoxLinuxAdditions.run install
echo 'bootstrap finish'
```