This tutorial details how to deploy a development environment in the ITS Private Cloud using the VSS CLI. It assumes you already have set up a VSS account with access to the REST API.
Anchor |
---|
| Launch-Instance |
---|
| Launch-Instance |
---|
|
Anchor |
---|
| DeployingaDevelopmentEnvironment-Launch-Instance |
---|
| DeployingaDevelopmentEnvironment-Launch-Instance |
---|
|
Launch InstanceBefore launching the virtual machine instance we need the following items:
...
Then, all is ready to deploy a brand new virtual machine.
Anchor |
---|
| Operating-system |
---|
| Operating-system |
---|
|
Anchor |
---|
| DeployingaDevelopmentEnvironment-Operating-system |
---|
| DeployingaDevelopmentEnvironment-Operating-system |
---|
|
Operating systemRun vss-cli compute os ls
to display the list of supported operating systems in the ITS Private Cloud. In order to narrow down the list to only CentOS operating systems, use the --filter-by/-f
option which is structured <field_name>=<operator>,<value>
and available operators are eq, ne, lt, le, gt, ge, like, in. So, to limit results to just CentOS, use the following filter:
...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
export OS=centos64Guest |
Anchor |
---|
| DeployingaDevelopmentEnvironment-Network |
---|
| DeployingaDevelopmentEnvironment-Network |
---|
|
NetworkRun vss-cli compute net ls
to list available network segments to your account. You must have at least VL-1584-VSS-PUBLIC
which is our public network.
...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
export NET=dvportgroup-11052=e1000e |
Anchor |
---|
| DeployingaDevelopmentEnvironment-Folder |
---|
| DeployingaDevelopmentEnvironment-Folder |
---|
|
FolderLogical folders can be listed by running vss-cli compute folder ls
. Select the target moref
folder to store the virtual machine on:
...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
export FOLDER=group-v6736group-v6736 |
Anchor |
---|
| DeployingaDevelopmentEnvironment-ISO-Image |
---|
| DeployingaDevelopmentEnvironment-ISO-Image |
---|
|
ISO ImageSince this tutorial creates a virtual machine from scratch, an ISO image is required to install the operating system. Run vss-cli compute iso public ls
to display available ISO images in both the VSS central store and your personal VSKEY-STOR space.
...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
export ISO='[vss-ISOs] Linux/CentOS/CentOS-7.0-1406-x86_64-DVD.iso' |
Anchor |
---|
| DeployingaDevelopmentEnvironment-Deployment |
---|
| DeployingaDevelopmentEnvironment-Deployment |
---|
|
DeploymentRun vss-cli compute vm mk shell
to deploy a virtual machine without an operating system installed. Before deploying the virtual machine, display what options and arguments the shell
command takes:
...
In matter of seconds, a confirmation email will be sent with the allocated IP address, if VL-1584-VSS-PUBLIC
was selected.
Anchor |
---|
| Manage-Request |
---|
| Manage-Request |
---|
|
Anchor |
---|
| DeployingaDevelopmentEnvironment-Manage-Request |
---|
| DeployingaDevelopmentEnvironment-Manage-Request |
---|
|
Manage RequestIf you prefer to validate the status of the request with VSS CLI, run vss-cli request new ls
to display a list of your request history.
...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
vss-cli request new ls -s created_on=desc -c 1
id created_on updated_on status vm_moref vm_name approval.approved built_from
---- --------------------------- --------------------------- --------- ---------- --------------- ------------------- ------------
78 2020-04-24 Fri 17:06:49 EDT 2020-04-24 Fri 17:06:51 EDT PROCESSED vm-2185 2004T-Frontend3 True os_install |
Anchor |
---|
| Access-Instance |
---|
| Access-Instance |
---|
|
Anchor |
---|
| DeployingaDevelopmentEnvironment-Access-Instance |
---|
| DeployingaDevelopmentEnvironment-Access-Instance |
---|
|
Access InstanceSince we added the --power-on
option, the virtual machine should have been powered on right after the Guest Operating System Customization task completed.
...