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 <MB> - RAM size (in Mb)

  -u, --cpu <virtual-cpus> - number of processors

  -k, --disk-size <MB> - 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

  • vcd-cli, cli
  • 93 Users Found This Useful
Was this answer helpful?

Related Articles

Virtual Machine Performance Graphs

Performance charts of virtual machines can be viewed in the HTML5 interface. To access the HTML5...

How to set up 2-factor (password +sms code) authorization in vCD

1. SETTING vCD   1. open https://idp.cloud4y.ru/idp/shibboleth and save the content as an XML...

Installation and basic configuration of Terraform (CLI interface)

Terraform is a tool that provides the management of the vCloud Director cloud infrastructure from...

Take advantages of two data centers

Ensuring service availability for customers is an important IT challenge. It can be provided at...

Loading OVF through vCloud Director

In this article, we will show you how to import your VMs through the internal interface of vCloud...