VMware Cloud
Federal Law Cloud FZ-152

Configuring and Using vcd-cli (CLI Interface)

Manage your cloud infrastructure from a command line interface using vcd-cli

To easily deploy vcd-cli, you can use the pre-built vcd-cli template. For instructions on deploying virtual machines from templates, please refer to our Knowledge Base https://client.cloud4u.com/index.php/knowledgebase/2/%D0%9E%D0%B1%D0%BB%D0%B0%D0%BA%D0%BE-VMWare.

After creating a virtual machine, you can start using vcd-cli immediately, but it is recommended that you upgrade vcd-cli to the latest version with the command:

sudo pip3 install vcd-cli --upgrade

Once the version has been updated, you need to connect to the organization using the command:

vcd login url org_name user

URL to connect vcd.cloud4y.ru

For example, I will connect to a test organization:

vcd login vcd.cloud4y.ru demo-pesin administrator

You can manage your organization's cloud infrastructure from the command line.

For example, let's run a new virtual machine:

vcd vapp create -d "test_created_with_vcd-cli" -c Public -t centos7 -m 2048 -u 2 -k 32000 -v TMCwVCD-CLI -a -o tmc -n demo-pesin_LAN tmc

Here we go! The new VM is created. Further decryption of the used arguments:

 -d, --description text - vApp description

  -c, --catalog name - template directory

  -t, --template name -name of the template

  -n, -network name - organization network name

  -i, --ip-allocation-mode mode - IP selection method

  -m, --memory - RAM size (in Mb)

  -u, --cpu - number of processors

  -k, --disk-size - disk size (in Mb)

  -v, --vm-name name is the name of the virtual machine.

  -o, --hostname hostname is the network name of the machine.

  -a, --accept-all-eulas -- accept all user agreements.

To learn more about other commands and features of vcd-cli, please read http://vmware.github.io/vcd-cli/commands.html

Have you tried Cloud4U cloud services? Not yet?

Go to the Main Website

Try for free

Scroll up!