Here's a step by step guide to convert a Virtualbox .ova to a Vagrant box.
- List your VMs to find the VM id you want to convert:
$ VBoxManage list vms
"testing" {a3f59eed-b9c5-4a5f-9977-187f8eb8c4d4}
- You can now package the .ova VM as Vagrant box:
| Puppet Master /etc/puppet.conf | |
| [main] | |
| # The Puppet log directory. | |
| # The default value is '$vardir/log'. | |
| logdir = /var/log/puppet | |
| # Where Puppet PID files are kept. | |
| # The default value is '$vardir/run'. | |
| rundir = /var/run/puppet |
Here's a step by step guide to convert a Virtualbox .ova to a Vagrant box.
$ VBoxManage list vms
"testing" {a3f59eed-b9c5-4a5f-9977-187f8eb8c4d4}
| --- | |
| # This playbook will check a wide range of code paths of the Ansible lvol module. | |
| # | |
| # Make sure you adjust `test_vg` and `test_pvs` variables according to the test volume group. | |
| # | |
| # Invoke with: ansible-playbook [-K][-v] check-lvol.yml | |
| # | |
| - hosts: localhost | |
| become: True |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
| # Data instances should already be there... but this is how they were made: | |
| docker run -v /var/lib/mysql --name=gnl-db-data busybox true | |
| docker run -v /srv/www -v /etc/nginx/sites-enabled --name=gnl-www-data busybox true | |
| # DB instance uses gnl-db-data volume. | |
| docker run -d --volumes-from=gnl-db-data --name=gnl-db bnchdrff/mariadb | |
| # Backend PHP/nginx links to db instance & also offers ssh access for dirty admin tasks. gnl-www-data has files. | |
| docker run -d -p 2222:22 --link=gnl-db:db --volumes-from=gnl-www-data --name=gnl-backend bnchdrff/nginx-php5-drupal |