Deploying a virtual machine interacting directly with thee EIS Virtual Cloud RESTful API could somehow be overwhelming due to its multiple resources to check such as networks, folders, disks, etc. In order to simplify the interaction with the API we created a Python Client named pyvss with many self-descriptive methods and available in the Python Package Index.
This tutorial uses pyvss pyvss to create a virtual machine with no operating system and which will be installed manually by mounting an ISO image from the VSS Catalog. The full specification is listed below:
- name: VMfromPyVss
- built process: os install
- billing department: VSS
- description: virtual machine created from vss
- usage: QA
- cpu and memory: 2
- disks: 1GB, 2GB and 3GB
- networks: any available network in your account
- folders: any folder available in your account
- iso: ubuntu 12.04 i386
- os: ubuntuGuesubuntuGuest
Pre-requirements
- python Python 2.7.10+
- access Ptpython
- Access to the EIS Virtual Cloud RESTful API
Python client for the EIS Virtual Cloud RESTful API: pyvss
Code Block pip install pyvss
ptpython (optional) - usual python console can be used
Code Block pip install ptpython
httpie (optional) - curl or wget can be used as well
Code Block pip install httpie
...