| 1 | = How to Install geni-lib on a VM using Virtual Box and Vagrant = |
| 2 | |
| 3 | '''These instructions are incomplete.''' |
| 4 | |
| 5 | It is not possible to run `ansible` on Windows. Instead boot up a VM on your local machine and install `ansible` there. |
| 6 | |
| 7 | We find the combination of [https://www.virtualbox.org/wiki/Downloads VirtualBox] and [http://www.vagrantup.com/downloads vagrant] is really easy to use: |
| 8 | 1. Install [https://www.virtualbox.org/wiki/Downloads VirtualBox] |
| 9 | 1. Install [http://www.vagrantup.com/downloads vagrant] |
| 10 | 1. Download a file describing the VM |
| 11 | {{{ |
| 12 | mac> mkdir ansible # make a directory for ansible |
| 13 | mac> cd ansible |
| 14 | mac> wget http://www.gpolab.bbn.com/exp/vagrant/ansible/Vagrantfile # an Ubuntu 12.04 LR 32-bit image |
| 15 | }}} |
| 16 | 1. Create the ansible inventory file in the same directory as your Vagrantfile. |
| 17 | {{{ |
| 18 | mac> readyToLogin.py MYSLICE --useSliceAggregates --ansible-inventory -o |
| 19 | }}} |
| 20 | 1. Bring up the VM and login: |
| 21 | {{{ |
| 22 | mac> vagrant up # create an 12.04 LR 32-bit Ubuntu virtual machine with ansible installed |
| 23 | mac> vagrant ssh # login to your VM |
| 24 | }}} |
| 25 | 1. Run `ansible` with your inventory file: |
| 26 | {{{ |
| 27 | ubuntu> ansible -i /vagrant/inventory all -m ping |
| 28 | }}} |
| 29 | 1. When you are done |
| 30 | {{{ |
| 31 | ubuntu> exit |
| 32 | mac> vagrant halt # to shutdown your VM (vagrant destroy will completely delete the VM causing you to lose all your work) |
| 33 | }}} |