ITS Private Cloud CLI (vss-cli) Cheat Sheet - Virtual Machine Deployment
Deploy virtual machines from content library, clone, template, shell, file specification and more.
Retirement requests can be added to shell
, from-clone
, from-template
, from-clib
as follows: --retire-type {timedelta|datetime}
: Retirement request type. --retire-warning {n}
: Days before retirement date to notify. --retire-value {hours},{days},{months}
: Value for given retirement type.
Content Library
Deploy a virtual machine from an OVA image with pre-installed operating system from our Content Library.
vss-cli compute vm mk from-clib --source {image} \
--description="Ubuntu OS VM deployment" \
--client={client} --usage=Prod \
--os="ubuntu64Guest" --folder=VSS-CLI-VMs \
--memory={nGiB} --cpu={n} \
--net={netName} \
--disk={nGiB} --disk='{"capacity_gb": 100}' \
--extra-config disk.EnableUUID=TRUE \
--power-on \
--user-data {cloud-init.yaml} --network-config {network-config.yaml} \
ubuntu-2004-vm
Note. --user-data
and --network-config
will generate a seed iso that must be taken by the guest operating system, i.e. Ubuntu.
Shell VM
Deploy an empty virtual machine to be manually installed by the mounted iso.
vss-cli compute vm mk shell \
--description="Ubuntu OS VM deployment" \
--client={client} --usage=Prod \
--os="ubuntu64Guest" --folder=VSS-CLI-VMs \
--memory={nGiB} --cpu={n} \
--net={netName} \
--disk={nGiB} --disk='{"capacity_gb": 100}' \
--iso {isoName} \
--extra-config disk.EnableUUID=TRUE \
--power-on \
--firmware efi \
ubuntu-2004-vm
Clone Virtual Machine or Deploy from Template
Clone virtual machine from another VM, template.
vss-cli compute vm mk {from-clone|from-template} \
--description={description} \
--source {sourceVM} \
--custom-spec '{"hostname": "ubuntu-clone", "domain": "local", "interfaces": [{"dhcp": true}]}' \
--power-on
Deploy multiple Virtual Machine in batch
Deploy multiple virtual machines in a single command.
vss-cli compute vm mk from-template \
--description={description} \
--source {sourceVM} \
--power-on \
--instances {numberOfInstances}
Clone Virtual machine from snapshot
Clone virtual machine from another VM snapshot id.
vss-cli compute vm mk from-clone \
--snapshot {snapId} \
--description={description} \
--source {sourceVM} \
--custom-spec vm-clone-spec.yaml \
--power-on
Command Line Specification (new)
Deploy a virtual machine from new vss-cli
specification.
vss-cli compute vm mk from-file \
--edit --save --spec-template {shell|clib|template|clone}
Command will launch the default text editor with an empty vss-cli
specification based on the spec-template
.
Command Line Specification (existing)
Deploy a virtual machine from existing vss-cli
specification.
vss-cli compute vm mk from-file {cli-spec}.{json|yaml}
OVA/OVF Image
Note: Upload OVF
and VMDK
or OVA to VSKEY-STOR and run vss-cli compute image personal sync
ahead of the following command:
vss-cli compute vm mk from-image \
--source {image-name} --client={client} --usage=Prod \
--os="ubuntu64Guest" --folder=VSS-CLI-VMs \
--memory={nGiB} --cpu={n} \
--net={netName} \
--disk={nGiB} \
ubuntu-2004-vm
Related content
University of Toronto - Since 1827