These are some useful vagrant related notes from me.


Performance


We all know that vagrant boot up is a bit slow, especially provisioning so you should do your best to increase the performance inside and outside. You can play with RAM and CPU configs in Vagrantfile. On top of that you can use vagrant-cachier tool.


Most used commands


To read what commands below do in more detail, visit CLI page.



Some notes



phpMyAdmin settings


Where phpMyAdmin GUI settings are.


/etc/phpmyadmin/config-db.php

Where phpMyAdmin GUI settings above are originated from.


/etc/dbconfig-common/phpmyadmin.conf

Cannot find a question


If you get errors like below when running any vagrant commands, run $ sudo /usr/share/debconf/fix_db.pl command in vagrant box.


==> default: error: Cannot find a question for phpmyadmin/dbconfig-install
==> default: error: Cannot find a question for phpmyadmin/app-password-confirm
==> default: error: Cannot find a question for phpmyadmin/mysql/admin-pass
==> default: error: Cannot find a question for phpmyadmin/mysql/app-pass

$ sudo /usr/share/debconf/fix_db.pl
debconf: template "phpmyadmin/app-password-confirm" claims to be used by nonexistant question "phpmyadmin/app-password-confirm"; removing that.
debconf: template "phpmyadmin/mysql/admin-user" claims to be used by nonexistant question "phpmyadmin/mysql/admin-user"; removing that.
debconf: template "phpmyadmin/mysql/app-pass" claims to be used by nonexistant question "phpmyadmin/mysql/app-pass"; removing that.
debconf: template "phpmyadmin/dbconfig-install" claims to be used by nonexistant question "phpmyadmin/dbconfig-install"; removing that.
debconf: template "phpmyadmin/mysql/admin-pass" claims to be used by nonexistant question "phpmyadmin/mysql/admin-pass"; removing that.