atlas
Create an account onCreate a Vagrant Box with the Web UI
name: dubbs/example private: true
Create a new box version
version: 1 description: example.com
Create a new provider
provider: virtualbox URL: https://vagrantcloud.com/chef/boxes/centos-6.5/versions/1.0.0/providers/virtualbox.box
Release version
click Edit
beside v1, then Release version
Create Vagrantfile
Vagrant.configure(2) do |config|
config.vm.box = "dubbs/example"
end
Login to Vagrant Cloud, since box is private
vagrant login
Initialize box
vagrant up
Update box
vagrant ssh su - yum -y update
Export updated box
vagrant package --output example.box
Create new box version and provider on atlas
https://atlas.hashicorp.com/dubbs/boxes/example/versions/new version: 1.0.1 provider: virtualbox Upload: Continue to upload
Upload in browser or with curl
https://atlas.hashicorp.com/help/vagrant/boxes/create
curl
USERNAME=dubbs
BOX_NAME=example
VERSION=1.0.3
PROVIDER_NAME=virtualbox
ACCESS_TOKEN=9JJVBxMVhmhyqrNC5AMpojhAsoSyy8oJhYB7jkyYtyU20dh0fhMdi5mn7yxla2mvBOc
curl "https://atlas.hashicorp.com/api/v1/box/{$USERNAME}/{$BOX_NAME}/version/{$VERSION}/provider/{$PROVIDER_NAME}/upload?access_token={$ACCESS_TOKEN}"
curl new box
curl --version
, was using SecureTransport
ran into issue where PUT failed, brew install --with-openssl curl
, now using OpenSSL/1.0.2a
so tried install new curl via brew, /usr/local/Cellar/curl/7.41.0_1/bin/curl
just had to use new curl bin update, I kept getting curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 54, trying to upload to gdrive
https://drive.google.com/file/d/0B6ohN-ATa3DYQzE3UUVLQmtsVHM/view?usp=sharing
curl --keepalive-time 1 -o output -# -X PUT --upload-file example.box https://binstore.hashicorp.com/3f44063f-ab7a-4a11-84a1-8582d8450c28
Release version
click Edit
beside v1.0.1, then Release version
check outdated
vagrant box outdated
##Install Virtualbox
#4.3.18
sudo apt-get install virtualbox virtualbox-guest-additions-iso virtualbox-guest-x11
#newest version
#wget http://download.virtualbox.org/virtualbox/4.3.28/virtualbox-4.3_4.3.28-100309~Ubuntu~raring_amd64.deb
#sudo dpkg -i virtualbox-4.3_4.3.28-100309~Ubuntu~raring_amd64.deb
#virtualbox --help
##Install Vagrant
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb
sudo dpkg -i vagrant_1.7.2_x86_64.deb
vagrant version
##Install VM Box
vagrant box add chef/centos-6.5
vagrant init chef/centos-6.5
vagrant up
vagrant ssh
##Add host entry
192.168.33.10 example.com