...
Virtual Machine (deployment)
Deploy virtual machinemachines from content library, clone, template, shell, file specification and more.
Type | Description | Command |
---|
Content Library | Deploy a virtual machine from an OVA image with pre-installed operating system from our Content Library. | Code Block |
---|
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. | Code Block |
---|
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. | Code Block |
---|
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 |
|
Clone Virtual machine from snapshot | Clone virtual machine from another VM snapshot id. | Code Block |
---|
vss-cli compute vm mk from-clone \
--snapshot {snapId} \
--description={description} \
--source {sourceVM} \
--custom-spec vm-clone-spec.yaml \
--power-on |
|
CLI Spec (existing) | Deploy a virtual machine from existing vss-cli specification. | Code Block |
---|
vss-cli compute vm mk from-file {cli-spec}.{json|yaml} |
|
CLI Spec (new) | Deploy a virtual machine from new vss-cli specification. | Code Block |
---|
vss-cli compute vm mk from-file \
--edit --save --spec-template {shell|clib|template|clone} |
|
From Image | | Note: Upload OVF and VMDK or OVA to VSKEY-STOR and run vss-cli compute image personal sync ahead of the following command: Code Block |
---|
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 |
|
...