-
Create a new VirtualBox image using an iso file using user:
vagrant
/ pwd:vagrant
(I use ubuntu-server) -
Set
/etc/apt/apt.conf.d/20auto-upgrades
vars to 0. -
Run
1.sh
(installs: linux-headers, build-essential, dkms, VBoxGuestAdditions). The VM will reboot. -
Run
2.sh
(installs: vagrant insecure ssh_key. Changes root pwd tovagrant
(user input required)) -
Run
apt-get update
&apt-get upgrade
manually to make sure everythong is up to date. -
Poweoff the vm
-
On your Windows host, create a new folder like so: C:\Users\roger\VirtualBox VMs\vagrant
-
Run
cd C:\Users\roger\VirtualBox VMs\vagrant
-
Run
vagrant box add --name ansible file://ansible
to add the box to vagrant available boxes -
Run
vagrant box list
to check the box is present -
Make sure
Vagrantfile ansible.cfg hosts playbook.yml requirements.yml
are inC:\Users\roger\VirtualBox VMs\vagrant
-
Run
vagrant up --provision