Replacement MR for defunct MR13
Compare changes
Files
3- Noe Nieto authored
Rename vm to box on message strings and comments; update and rework docs with new names. Related to !13 and
+ 52
− 50
The `box` command is a small wrapper around Vagrant that allows you to manage virtual machines easily. Currently the supported providers are libvirt and Digital Ocean. For most commands you only need to provide the hostname.
Every folder inside the `box` folder represents a box, so for a box with hostname `floyd` the `$VAGRANT_HOME` directory is `~/.config/lds_developer/box/floyd`:
@@ -14,9 +14,9 @@ total 8
@@ -14,9 +14,9 @@ total 8
The `floyd` folder contains two files (`Vagrantfile` and `shim.yml`) and the vagrant hidden folder(`.vagrant`).
Once `box` creates a box, you can manage it with the libvirt, digital ocean and vagrant tools of your choice. Recommended tools are:
@@ -25,38 +25,38 @@ Once `box` creates a box, you can manage it with the libvirt, digital ocean and
@@ -25,38 +25,38 @@ Once `box` creates a box, you can manage it with the libvirt, digital ocean and
- `open`: opens the configuration directory of a VM with the current file manager (nautilus, dolphin, etc.)
This command creates a new VM. You only need to provide the hostname. But you can specify the ram size and the number of cpus.
The following example creates a VM with the hostname `usoland`. The default values for ram size is 512 MB, and 1 CPU.
@@ -66,10 +66,11 @@ Bringing machine 'usoland' up with 'libvirt' provider...
@@ -66,10 +66,11 @@ Bringing machine 'usoland' up with 'libvirt' provider...
@@ -83,12 +84,12 @@ Bringing machine 'usoland' up with 'libvirt' provider...
@@ -83,12 +84,12 @@ Bringing machine 'usoland' up with 'libvirt' provider...
**Note**: Vagrant/libvirt needs root access to create and modify networks on the machine. Vagrant will try to use sudo and will request your passowrd.
@@ -105,42 +106,43 @@ Bringing machine 'starblade' up with 'digital_ocean' provider...
@@ -105,42 +106,43 @@ Bringing machine 'starblade' up with 'digital_ocean' provider...
**Known issue**: The create command freezes on this message: `==> starblade: Assigned IP address: ...` for some minutes before continuing to destroy the droplet. If you hit Ctrl-C shortly after the `.. Assigned IP adress [..]` messages, the droplet stays alive.
**default provider**: The default provider is `libvirt`, you need to specify `--provider digital_ocean` and `--token` on the command line to spin the machine in Digital Ocean. If you don't have a token yet, you ca generate one on _Manage_ / _API_ section in your DO's control panel.
Use these commands to start, shutdown, or restart a box. As an example, the previous section we created one. If we check the status we find that it's running.
@@ -155,13 +157,13 @@ Bringing machine 'usoland' up with 'libvirt' provider...
@@ -155,13 +157,13 @@ Bringing machine 'usoland' up with 'libvirt' provider...
@@ -188,7 +190,7 @@ $
@@ -188,7 +190,7 @@ $
@@ -209,7 +211,7 @@ $
@@ -209,7 +211,7 @@ $
@@ -220,24 +222,24 @@ $
@@ -220,24 +222,24 @@ $
This command allows you to run an ansible playbook against one of the VMs. For example: I have two VM's managed by `box`:
@@ -255,7 +257,7 @@ Let's install rust on`going-merry`. The playbook looks like this:
@@ -255,7 +257,7 @@ Let's install rust on`going-merry`. The playbook looks like this:
PLAY [Rust Playbook] *************************************************************************************
@@ -270,10 +272,10 @@ going-merry : ok=2 changed=1 unreachable=0 failed=
@@ -270,10 +272,10 @@ going-merry : ok=2 changed=1 unreachable=0 failed=