This repo contains bunch of my person testing vagrant boxes, separated by folders. I use the repo to house all the Vagrantfiles for system i have built to test.
To use this repo, usually on your laptop
- Install Choco - https://chocolatey.org/install
- Optional
chovo install cygwinchovo install cyg-getcyg-get vimcyg-get opensshcyg-get sshdcyg-get vim
choco install vagrantchoco install virtualboxgit clone git@github.com:XDanny322/vagrantboxes.gitvagrant up
brew cask install virtualboxbrew cask install vagrantbrew cask upgrade virtualbox
Vagrant Commands
vagrant -v
vagrant suspend
vagrant resume
vagrant init hashicorp/precise32
vagrant init centos/7
vagrant ssh-config
vagrant up
vagrant ssh
vagrant halt
vagrant destory
vagrant snapshot save centos7clean01 centos7clean01
VBoxManage.exe -v
VBoxManage.exe list vms
Sometimes vagrant ssh (2.0.1) doesn't work in Window's Cygwin. Do the below to get around.
- This has been fixed in vagrant v2.0.2
- To Fix:
export VAGRANT_PREFER_SYSTEM_BIN=1 - To use TCP Networking:
chmod 700 ./.vagrant/machines/default/virtualbox/private_keyssh -i .vagrant/machines/default/virtualbox/private_key -p 2222 vagrant@localhost
In order to active rsync on a box, to sync you file system, you need to do the below. See https://github.com/fusioneng/reactor/issues/21
vagrant rsync-auto &