cloudmesh_vagrant - A real simple interface to virtualbox via vagrant
Project description
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
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 w1 |
running running |
47347b4 db913dd |
virtualbox virtualbox |
~/w12 ~/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
Hashes for cloudmesh_vagrant-1.1.7.macosx-10.6-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 058fbd0419ee18886b1551d77b4083a120d0e12dbb1d4b14a27c0d9002377122 |
|
MD5 | 8ddad46017a414cf87a38c44fd073d84 |
|
BLAKE2b-256 | 1105759d379e48738133f8e8b69400ef53f7d189da5c3d6a80caa2f3053d2d53 |
Hashes for cloudmesh_vagrant-1.1.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fb198544fe0ea5b3f5140c7aecc3c3c7e4feb47e5f0bc63a0d6c3f7cacfd4e1 |
|
MD5 | 01adfaf3993ab8fa6259a3f3bd4ca72b |
|
BLAKE2b-256 | e1112c4577553a8a3491427d0276038101a4f055c7833b2b7b7cb6a103b74982 |