Close

VirtualBox

Vagrant – Single/Multi box environments, i.e. “config.vm.box” verses “config.vm.define”

So far we have come across: # -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = “2” Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box =”puppetlabs/ubuntu-14.04-32-nocm” end Using “config.vm.box” means that your vagrantfile is limited to be able to only spin up a single box. However instead of “config.vm.box” we could use […]

Read More

Vagrant – Naming your VMs

You can assign a name to your VM, both in what’s displayed by the vagrant output, and also on the Oracle Virtualbox gui. config.vm.define :puppetmaster-abc do |puppetmaster_config| # this names it for vagrant puppetmaster_config.vm.hostname = “puppetmaster.codingbee.dyndns.org” puppetmaster_config.vm.provider “virtualbox” do |v, override| v.name = “puppetmaster-def” # this names it for oracle […]

Read More

Vagrant – Plugins

vagrant plugin install vagrant-hosts vagrant plugin install vagrant-proxyconf Behind the scenes these plugins get installed in: C:\Users\{username}\.vagrant.d Or: C:\.vagrant.d (that I think is if you are running git bash as admin user) http://priyaaank.com/post/50707609769/snapshotting-vagrant

Read More

Vagrant – Configuring your VM

So far we succesfully started up our machine, but we encountered a few problems. The vagrantfile holds all the configurations of our vm. It holds this data in the form of an object that’s been instantiated from the config.vm class. This section has number attributes that you can set, this […]

Read More

Vagrant – Provisioning your first VM

1. Open up git-bash terminal and create a folder that will contain all your personal vagrant files, in my case I have created a top level folder called “vagrant”: mkdir c:\vagrant\centos Note: I also create the centos directory in order to keep all my vagrant vms organised. 2. cd into […]

Read More