1 http://crankstations.com/vagrant
3 [pdurbin@tabby ~]$ /opt/vagrant/bin/vagrant box add base http://files.vagrantup.com/precise64.box
4 [vagrant] Downloading with Vagrant::Downloaders::HTTP...
5 [vagrant] Downloading box: http://files.vagrantup.com/precise64.box
6 [vagrant] Extracting box...
7 [vagrant] Verifying box...
8 [vagrant] Cleaning up downloaded box...
10 [pdurbin@tabby ~]$ /opt/vagrant/bin/vagrant init
11 A `Vagrantfile` has been placed in this directory. You are now
12 ready to `vagrant up` your first virtual environment! Please read
13 the comments in the Vagrantfile as well as documentation on
14 `vagrantup.com` for more information on using Vagrant.
16 [pdurbin@tabby ~]$ cat Vagrantfile
20 Vagrant::Config.run do |config|
21 # All Vagrant configuration is done here. The most common configuration
22 # options are documented and commented below. For a complete reference,
23 # please see the online documentation at vagrantup.com.
25 # Every Vagrant virtual environment requires a box to build off of.
26 config.vm.box = "base"
28 # The url from where the 'config.vm.box' box will be fetched if it
29 # doesn't already exist on the user's system.
30 # config.vm.box_url = "http://domain.com/path/to/above.box"
32 # Boot with a GUI so you can see the screen. (Default is headless)
33 # config.vm.boot_mode = :gui
35 # Assign this VM to a host-only network IP, allowing you to access it
36 # via the IP. Host-only networks can talk to the host machine as well as
37 # any other machines on the same network, but cannot be accessed (through this
38 # network interface) by any external networks.
39 # config.vm.network :hostonly, "192.168.33.10"
41 # Assign this VM to a bridged network, allowing you to connect directly to a
42 # network using the host's network device. This makes the VM appear as another
43 # physical device on your network.
44 # config.vm.network :bridged
46 # Forward a port from the guest to the host, which allows for outside
47 # computers to access the VM, whereas host only networking does not.
48 # config.vm.forward_port 80, 8080
50 # Share an additional folder to the guest VM. The first argument is
51 # an identifier, the second is the path on the guest to mount the
52 # folder, and the third is the path on the host to the actual folder.
53 # config.vm.share_folder "v-data", "/vagrant_data", "../data"
55 # Enable provisioning with Puppet stand alone. Puppet manifests
56 # are contained in a directory path relative to this Vagrantfile.
57 # You will need to create the manifests directory and a manifest in
58 # the file base.pp in the manifests_path directory.
60 # An example Puppet manifest to provision the message of the day:
63 # # ensure => "present",
66 # # File { owner => 0, group => 0, mode => 0644 }
68 # # file { '/etc/motd':
69 # # content => "Welcome to your Vagrant-built virtual machine!
70 # # Managed by Puppet.\n"
73 # config.vm.provision :puppet do |puppet|
74 # puppet.manifests_path = "manifests"
75 # puppet.manifest_file = "base.pp"
78 # Enable provisioning with chef solo, specifying a cookbooks path, roles
79 # path, and data_bags path (all relative to this Vagrantfile), and adding
80 # some recipes and/or roles.
82 # config.vm.provision :chef_solo do |chef|
83 # chef.cookbooks_path = "../my-recipes/cookbooks"
84 # chef.roles_path = "../my-recipes/roles"
85 # chef.data_bags_path = "../my-recipes/data_bags"
86 # chef.add_recipe "mysql"
89 # # You may also specify custom JSON attributes:
90 # chef.json = { :mysql_password => "foo" }
93 # Enable provisioning with chef server, specifying the chef server URL,
94 # and the path to the validation key (relative to this Vagrantfile).
96 # The Opscode Platform uses HTTPS. Substitute your organization for
97 # ORGNAME in the URL and validation key.
99 # If you have your own Chef Server, use the appropriate URL, which may be
100 # HTTP instead of HTTPS depending on your configuration. Also change the
101 # validation key to validation.pem.
103 # config.vm.provision :chef_client do |chef|
104 # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
105 # chef.validation_key_path = "ORGNAME-validator.pem"
108 # If you're using the Opscode platform, your validator client is
109 # ORGNAME-validator, replacing ORGNAME with your organization name.
111 # IF you have your own Chef Server, the default validation client name is
112 # chef-validator, unless you changed the configuration.
114 # chef.validation_client_name = "ORGNAME-validator"
117 [pdurbin@tabby ~]$ /opt/vagrant/bin/vagrant up
118 [default] Importing base box 'base'...
119 [default] The guest additions on this VM do not match the install version of
120 VirtualBox! This may cause things such as forwarded ports, shared
121 folders, and more to not work properly. If any of those things fail on
122 this machine, please update the guest additions and repackage the
125 Guest Additions Version: 4.1.14
126 VirtualBox Version: 4.1.16
127 [default] Matching MAC address for NAT networking...
128 [default] Clearing any previously set forwarded ports...
129 [default] Forwarding ports...
130 [default] -- 22 => 2222 (adapter 1)
131 [default] Creating shared folders metadata...
132 [default] Clearing any previously set network interfaces...
133 [default] Booting VM...
134 [default] Waiting for VM to boot. This can take a few minutes.
135 [default] VM booted and ready for use!
136 [default] Mounting shared folders...
137 [default] -- v-root: /vagrant
139 [pdurbin@tabby ~]$ /opt/vagrant/bin/vagrant ssh
140 Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
142 * Documentation: https://help.ubuntu.com/
143 Welcome to your Vagrant-built virtual machine.
144 Last login: Mon May 7 19:16:13 2012 from 10.0.2.2
147 http://blog.vandenbrand.org/2012/02/21/creating-a-centos-6-2-base-box-for-vagrant/
149 pdurbin gets religion about vagrant: http://irclog.perlgeek.de/crimsonfu/2012-10-29#i_6108381