VagrantTool - henk52/knowledgesharing GitHub Wiki
https://code.google.com/p/charm-development-scripts/wiki/VagranTool
If this is a desktop thing, then set-up the vagrant file to allow graphical display. config.vm.boot_mode http://docs-v1.vagrantup.com/v1/docs/config/vm/boot_mode.html
- Using the windows shell
- start a windows command shell.
- cd C:\Profiles\helplife\VirtualBox VMs\uvagrant\
- del package.box
- vagrant package --base uvagrant --output srv-ubuntu-precise64.box
- Using cygwin shell
- cd ~/vagrant-tools/vagrant_boxes
- vagrant package --base u-dsk-vagrant --output dsk-ubuntu-precise64.box
- The name given after --base name the machine has in virtual box.
- Or
- bin/create_vagrant_base_box.pl --dstname rt-fedora-heisenbug64
- http://superuser.com/questions/747699/vagrant-box-url-for-json-metadata-file
- https://github.com/vube/vagrant-boxer
- https://vagrantcloud.com/
- https://docs.vagrantup.com/v2/vagrantfile/machine_settings.html
- rm srv-fedora-heisenbug64.box
- vagrant package --base FedoraBase20 --output srv-fedora-heisenbug64.box
- scp srv-fedora-heisenbug64.box [email protected]:/var/webstorage/vagrant
- create the .json file
{
"description": "Fedora 20 x86_64 server, with puppet.",
"short_description": "Fedora 20 x86_64 server.",
"name": "company/srv-fedora-heisenbug64",
"versions": [{
"version": "0.2.0",
"status": "active",
"description_html": "<p>Dev Environment</p>",
"description_markdown": "Dev Environment",
"providers": [{
"name": "virtualbox",
"url": "http:\/\/10.1.2.3/storage/vagrant/srv-fedora-heisenbug64.box"
}]
}]
}
- mkdir MyBox
- cd MyBox
- vagrant box add http://10.1.2.3/storage/vagrant/srv-fedora-heisenbug64.json
- add the box to vagrant using the definition from srv-fedora-heisenbug64.json
- (the box is actually downloaded here, so it can take a minute...or 10)
- vagrant init company/srv-fedora-heisenbug64
- init the box (this creates a .vagrant folder and a Vagrantfile in the cwd with the appropriate box name)
- vagrant up
- boot the box
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "company/srv-fedora-heisenbug64"
config.vm.box_url = "http://10.1.2.3/storage/vagrant/srv-fedora-heisenbug64.json"
end