DPDK Architecture  ->  Guide (stable)

Vagrant

Vagrant is a layer of perl scripts written to automate the process of setting up virtual machines.
Vagrant can work with a lot of Hypervisors but internally we only use VirtualBox.
After Vagrant is done setting up the virtual machine Ansible takes over to provision the machine with all the tools a project needs.

Basic commands

  • vagrant up Starts up a vagrant box
  • vagrant provision Re-provisions the box. This allows you to restart the initial installation process
  • vagrant halt Stops the box. You can start it again using vagrant up
  • vagrant destroy Removes the box including all it's files from your machine

Passwords

  • MySQL | Username: root, Password: root
  • MongoDB | Username: root, Password: root
  • Ubuntu | Username: vagrant, Password: vagrant

Basic Shell Commands

| Command | Description | |:---------------------- |:------------------------------------ | | service nginx restart | Restarts the Nginx Webserver | | service mongod restart | Restarts the MongoDB NoSQL server | | service mysql restart | Restarts the MySQL database server | | mc | Midnight commmander (Filesystem GUI) | | htop | Graphical top (Service Manager) | | dos2unix "file" | Converts windows line endings | | sudo su | Elevates to root level | | drush | CLI for Drupal |

Basic Ubuntu Paths

| Path | Description | |:---------------- |:-------------------------------------------- | | /etc/mongod.conf | MongoDB configuration file | | /etc/mysql | MySQL configuration files | | /etc/php | PHP configuration files | | /var/lib/mysql | MySQL data files | | /var/lib/mongo | MongoDB data files | | /var/log/nginx | Nginx log files | | /var/log/mysql | MySQL log files | | /var/log/mongo | MongoDB log files | | /vagrant | Vagrant home folder | | /var/source | Linked to project folder on your own machine | | /var/www | Symlinked to /var/source |

Miscellaneous

Customize

Checkout the _scripts/vagrant/ansible folder to customize you setup. The main.yml defines roles that are being used during the vagrant provision.

Last modifiedTuesday, February 2, 2021, 3:09:34 PM UTC
Last authorGlenn de Haan
Commit IDb908c1b