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

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...

Loading OVF through vCloud Director

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

Export and import vAPP directly from vCloud Director using OVFTool

Export and import vAPP directly from vCloud Director using OVFToolOVFTool is a useful tool from...

How to check used/available vDC resources

To view the resource limits assigned to your vDC, go to your vDC To view the vCPU and RAM, go...

How to find out in which data centre the virtual infrastructure is located?

Cloud4U offers virtual infrastructure services across multiple data centres. Read the article to...