Browsed by
Month: February 2019

vCloud Director Network considerations

vCloud Director Network considerations

One of the most tricky parts of vCD – networks. It took my some time to to digest how those network relations between different types of network in vCD works. Just to remind we distinguish:

  • External Networks
  • VDC Organization Networks
  • vApp Networks

Moreover for both VDC Orgzanization and vApp networks we distinguish folowing types:

  • Directly connected to upper layer network
  • Routed network
  • Isolated Network

To complicate even further vApp directly connected network can be fenced 🙂

All networks apart from directly connected will create an ESG (yes, even isolated network requires an ESG!). Just don’t be fooled during some test that they are not visible in vSphere  as soon as you create new vApp/Org VDC Network. ESG as well as port group on DVS will be established not at the time of vCD network creation but when you connect and power a VM to this network for the first time.

To understand how we can mix and match these networks I’ve created a diagram as a reference mostly for myself but maybe it will be helpful for you as well as I didn’t find any diagram covering all options. So here we have a vCD network diagram starting from an external network combining all (apart from fenced one) options.

1vCD networks

 

Plus another diagram including ESG as an Org perimiter interconnected with DLR.

2vcd Networks

 

 

Hope it will be informative, if you have any comments or questions, don’t hesitate to write a comment!

dcli and how to shutdown vCSA

dcli and how to shutdown vCSA

Sometimes You want to shutdown vCSA or PSC gracefully, but You don’t have an access to GUI through vSphere Client or VAMI.

How to do it in CLI? I’m going to show You right now using dcli, because I’m exploring a potential of this tool and I can’t get enough.

  1. Open an SSH session to vCSA and log in as root user.
  2. Run dcli command in an interactive mode.

    dcli +i
  3. Use shutdown API call, to shutdown an appliance, giving a delay value (0 means now) and a description of disk task.

    com vmware appliance shutdown poweroff --delay 0 --reason 'Shutdown now'
  4. Enter an appropriate administrator user name e.g. administrator@vsphere.local and a password.
  5. Decide if You want save the credentials in the credstore. You can enter ‘y’ as yes.

Wait until the appliance will go down. 🙂

I know that it’s not the quickest way, but the point is to have fun.