Skip to main content

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

  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]
                       [--script=SCRIPT] | list)
  cm-vbox vm boot NAME ([--memory=MEMORY]
                        [--script=SCRIPT] | list)

Source Code



mkdir cloudmesh cd cloudmesh git clone cd vagrant python install


Listing vms

python vbox vm list

name state id provider directory
w12 w1 running running 47347b4 db913dd virtualbox virtualbox ~/w12 ~/w1

Listing images

python vbox image list +—————–+————+————–+ | name | provider | date | +—————–+————+————–+ | ubuntu/trusty64 | virtualbox | 20160406.0.0 | +—————–+————+————–+

Booting vms

python vbox vm boot w12

which takes an ubuntu image as default

Destroy a vm

python vbox vm delete w12

which deletes the specified vm

Create a Vagrantfile

python 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.

Filename, size & hash SHA256 hash help File type Python version Upload date
cloudmesh_vagrant-1.1.7.macosx-10.6-intel.tar.gz (8.6 kB) Copy SHA256 hash SHA256 Dumb Binary any
cloudmesh_vagrant-1.1.7-py2-none-any.whl (8.8 kB) Copy SHA256 hash SHA256 Wheel 2.7
cloudmesh_vagrant-1.1.7.tar.gz (5.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page