|Version| |Downloads|
Infrasim package can be installed in any physical machine or virtual machines hosted by Virtualbox, ESXi, Parallel Desktop or cloud provider like AWS, Linode and etc.
The basic installation system requirements are:
Ubuntu Linux 64bit OS (14.04/15.04/16.04)
at least 4GB memory
at least 16GB disk size
Ensure sources.list integrity then install dependency:
::
sudo apt-get update sudo apt-get install python-pip libpython-dev libssl-dev libaio-dev
Upgrade pip and install setuptools:
::
sudo pip install --upgrade pip sudo pip install setuptools
Two ways to install infrasim:
install infrasim from source code:
::
git clone https://github.com/InfraSIM/infrasim-compute.git
cd infrasim-compute
sudo pip install -r requirements.txt
sudo python setup.py install
install infrasim from python library:
::
sudo pip install infrasim-compute
Initialization (you need do it once)
::
sudo infrasim init
Optional arguments:
-s, --skip-installation Ignore qemu/openipmi package installation
-f, --force Destroy existing Nodes
-c [CONFIG_FILE], --config-file [CONFIG_FILE] Use customized yaml file for the default node
-t [TYPE], --type [TYPE] Render specified node type for the default node
Infrasim Service Version:
::
sudo infrasim version
Infrasim Node Configuration Management:
::
sudo infrasim config add
::
sudo infrasim config delete
::
sudo infrasim config update
::
sudo infrasim config edit
::
sudo infrasim config list
Infrasim Service Node Commands
::
sudo infrasim node start [node name]
::
sudo infrasim node status [node name]
::
sudo infrasim node stop [node name]
::
sudo infrasim node restart [node name]
::
sudo infrasim node destroy [node name]
The default node configuration is already added to configuration mapping during infrasim init. In node commands, argument [node name] is optional. If it's not specified, it's treated as node "default".
Notice: You can use VNC to access the emulated legacy hardware, the default VNC port is 5901
.. |Version| image:: https://img.shields.io/pypi/v/infrasim-compute.svg :target: https://pypi.python.org/pypi/infrasim-compute .. |Downloads| image:: https://img.shields.io/pypi/dm/infrasim-compute.svg :target: https://pypi.python.org/pypi/infrasim-compute