Difference between revisions of "Managed Virtual Machine (MVM)"

From DAVE Developer's Wiki
Jump to: navigation, search
m (Installation and configuration)
Line 21: Line 21:
 
** tested with 5.0.14 (does NOT work with 5.0.0)
 
** tested with 5.0.14 (does NOT work with 5.0.0)
 
* download Vagrant from https://www.vagrantup.com/
 
* download Vagrant from https://www.vagrantup.com/
* install Vagrant
+
** install Vagrant
* clone the project/development kit repository (eg: git clone git@git.dave.eu:project/devenv.git)
+
* clone the project/development kit repository (eg: git clone git@git.dave.eu:''project-name''/mvm.git)
* customize VM settings
+
* enter repository cloned directory
 +
** copy or move ''vagrant.yml.sample'' to ''vagrant.yml''
 +
** customize VM settings (vagrant.yml): number of CPUs and RAM size
 +
** uncomment and set ip_adress to VM's ip address (vagrant.yml)
 +
** overwrite provision/modules/user/file/id_rsa with your private key (~/.ssh/''username@myhost.com'')
 
* create the VM with the following command:
 
* create the VM with the following command:
 
<pre>
 
<pre>
 
vagrant up
 
vagrant up
 
</pre>
 
</pre>

Revision as of 14:21, 16 March 2016

Introduction[edit | edit source]

Managed Virtual Machine (MVM) is a virtual machine that allows developers to start using DAVE's platform without wasting time in manually installing and configuring the development environment.

The MVM is created and managed using Vagrant (https://www.vagrantup.com/), which is a powerful tool that creates, configures and manages virtual development environments. Vagrant uses Providers to integrate with the hypervisor that provides the virtual machines, that for the MVM is Oracle VirtualBox (https://www.virtualbox.org/). The entire virtual environment configuration is stored in simple plain text files, including the instructions for the provisioning tool (Puppet, https://puppetlabs.com/), so that installation, management and update of the MVM is straightforward.

Mvm-vagrant-bd.png

The MVM comes with all the development tools and source code, pre-configured, and requires only a minimal setup by the end user.

Installation and configuration[edit | edit source]

To generate the image:

vagrant up