cloudmesh_vagrant - A real simple interface to virtualbox via vagrant
Project description
Cloudmesh Virtualbox/Vagrant Interface
================================================================
Virtualbox provides a vonvenient way to manage virtual machines on a
local computer. Graphical user interfaces, a commandline client, but
also vagrant exist to access them. However we noticed that we often
only need a very small subset to start a vm and to tear it
down. Remembering the interfaces is difficult. Previously we developed
a cloudmesh_client that has an easy to remember interface. We leverage
from this experience and introduce a very easy to remember commandline
client. At the same time we also allow a simpl python API to manage
virtual machines on virtualbox. We use vagrant internally. However
vagrants focus on directories and Vagrantfiles in a bit inconvenient
also fo us, so we provided wrappers and utelize the design of vagrant
to our advantage while only exposing the needed functionality.
Manual Page
------------
::
Usage:
cm-vbox version
cm-vbox image list [--format=FORMAT]
cm-vbox vm list [--format=FORMAT]
cm-vbox vm delete NAME
cm-vbox create NAME ([--memory=MEMORY]
[--image=IMAGE]
[--script=SCRIPT] | list)
cm-vbox vm boot NAME ([--memory=MEMORY]
[--image=IMAGE]
[--script=SCRIPT] | list)
Source Code
-----------
* https://github.com/cloudmesh/vagrant
Install
--------
mkdir cloudmesh
cd cloudmesh
git clone https://github.com/cloudmesh/vagrant
cd vagrant
python setup.py install
Examples
-------
Listing vms
^^^^^^^^^^^
python v.py vbox vm list
+------+---------+---------+------------+----------------------+
| name | state | id | provider | directory |
+------+---------+---------+------------+----------------------+
| w12 | running | 47347b4 | virtualbox | ~/w12 |
| w1 | running | db913dd | virtualbox | ~/w1 |
+------+---------+---------+------------+----------------------+
Listing images
^^^^^^^^^^^^^^
python v.py vbox image list
+-----------------+------------+--------------+
| name | provider | date |
+-----------------+------------+--------------+
| ubuntu/trusty64 | virtualbox | 20160406.0.0 |
+-----------------+------------+--------------+
Booting vms
^^^^^^^^^^^
python v.py vbox vm boot w12
which takes an ubuntu image as default
Destroy a vm
^^^^^^^^^^^^^
python v.py vbox vm delete w12
which deletes the specified vm
Create a Vagrantfile
^^^^^^^^^^^^^^^^^^^^
python v.py vbox create w12
creates a Vagrantfile in ./w12/Vagrantfile
================================================================
Virtualbox provides a vonvenient way to manage virtual machines on a
local computer. Graphical user interfaces, a commandline client, but
also vagrant exist to access them. However we noticed that we often
only need a very small subset to start a vm and to tear it
down. Remembering the interfaces is difficult. Previously we developed
a cloudmesh_client that has an easy to remember interface. We leverage
from this experience and introduce a very easy to remember commandline
client. At the same time we also allow a simpl python API to manage
virtual machines on virtualbox. We use vagrant internally. However
vagrants focus on directories and Vagrantfiles in a bit inconvenient
also fo us, so we provided wrappers and utelize the design of vagrant
to our advantage while only exposing the needed functionality.
Manual Page
------------
::
Usage:
cm-vbox version
cm-vbox image list [--format=FORMAT]
cm-vbox vm list [--format=FORMAT]
cm-vbox vm delete NAME
cm-vbox create NAME ([--memory=MEMORY]
[--image=IMAGE]
[--script=SCRIPT] | list)
cm-vbox vm boot NAME ([--memory=MEMORY]
[--image=IMAGE]
[--script=SCRIPT] | list)
Source Code
-----------
* https://github.com/cloudmesh/vagrant
Install
--------
mkdir cloudmesh
cd cloudmesh
git clone https://github.com/cloudmesh/vagrant
cd vagrant
python setup.py install
Examples
-------
Listing vms
^^^^^^^^^^^
python v.py vbox vm list
+------+---------+---------+------------+----------------------+
| name | state | id | provider | directory |
+------+---------+---------+------------+----------------------+
| w12 | running | 47347b4 | virtualbox | ~/w12 |
| w1 | running | db913dd | virtualbox | ~/w1 |
+------+---------+---------+------------+----------------------+
Listing images
^^^^^^^^^^^^^^
python v.py vbox image list
+-----------------+------------+--------------+
| name | provider | date |
+-----------------+------------+--------------+
| ubuntu/trusty64 | virtualbox | 20160406.0.0 |
+-----------------+------------+--------------+
Booting vms
^^^^^^^^^^^
python v.py vbox vm boot w12
which takes an ubuntu image as default
Destroy a vm
^^^^^^^^^^^^^
python v.py vbox vm delete w12
which deletes the specified vm
Create a Vagrantfile
^^^^^^^^^^^^^^^^^^^^
python v.py vbox create w12
creates a Vagrantfile in ./w12/Vagrantfile
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for cloudmesh_vagrant-1.1.6.macosx-10.6-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2530855ae5de8bd5eb29babfd6a31d9637822c8f90c7011e1db3d66a3982139 |
|
MD5 | 34e80db21721b44ca460586e751be841 |
|
BLAKE2b-256 | a97131b096eb8ff8e436238e337311f9644ca2e2ed9f65f9e07d4f9762275263 |
Close
Hashes for cloudmesh_vagrant-1.1.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3b057134e05251a922a3c2cd30577ab967d1f684d9c2a7f36e6cfc7bae4a189 |
|
MD5 | 9dccbf47f933cce5906747dbe09c88f9 |
|
BLAKE2b-256 | 676205b2b0afe882d1f9493d2b6672a34cada254b94f5bb196a701732e180666 |