How to create a virtual machine on Marvlbyte using marvl cli (Recommended way)
(Method 2)
In this method, you should be able to create a virtual machine on Marvl cloud from your local computer. To do so, make sure you have Python version>= 3.7 and pip installed.
Step 1: Create a virtual environment named 'marv' (say).
On Ubuntu, you should be able to create a Python virtual environment using
sudo apt-get install -y python-venv (or sudo apt-get install -y python3-venv)
python -m venv ~/marv (or python3 -m venv ~/marv)
Step 2: Activate the Virtual environment
Each time, you open up a new terminal, make sure you are in the right virtual environment. To activate the virtual environment created in the earlier step, use
source ~/marv/bin/activate
Step 3: Install the cli (for the latest version check here)
pip install --upgrade pip setuptools
pip install --upgrade wheel
pip install ws4py
pip install marvlcli==0.0.27
Step 4: Once installed, initialize the cli using (To get help, use marvl --help )
marvl init
a) It will ask for a user ID and token. Please head over to the Marvbyte dashboard https://marvlbyte.com/profile-subscription and get the required information by clicking the Get Token Button
Once inserted, the cli is permanently initialized (This persists even computer restarts).
Step 5: To create a virtual machine (always use marvl --help to get help)
marvl create vm {vm_name}
Please replace {vm_name} with a preferred virtual machine name such as "Jenkins" or "WordPress". The command will ask for a few information most of which are optional. Optional prompts can be ignored by pressing enter and it will just use a default value. For everything else, one should be able to choose from the given options
In case, one needs to reinitialize the Cli application, the following command will suffice
marvl logout