Configuring and using vcd-cli (CLI interface)

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

For easy vcd-cli deployment, you can use the ready-made vcd-cli template. Instructions on how to deploy virtual machines from templates can be found in our Knowledge Base - https://client.cloud4y.ru/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 right away, but it is recommended to update vcd-cli to the current version with the command:

sudo pip3 install vcd-cli --upgrade

Once the version has been updated, you need to connect to the organization, this is done with 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 Virtual cloud servers by Cloud4Y? Not yet? 

 

Leave a request and get a 10-day free trial. 

 

Смотреть подробности   

 

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

Related Articles

How to check the vDC resources used/available

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

Export and import vAPP directly from vCloud Director using OVFTool

OVFTool is a useful tool from VMWare, which allows users to directly import and export OVA/OVF...

Virtual Machine Performance Graphs

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

Take advantages of two data centers

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

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

Powered by WHMCompleteSolution