Skip to main content

Posts

Showing posts from October, 2020

vCD | How to select ESP as Protocol in firewall rule of ESG

Overview How to connect How to extract edge firewall rules config How to update edge firewall rules config Overview This post is to share the process to change the existing available protocols in NSX-v Edge firewall rule (Not DFW). Available protocols are TCP, UDP, ICMP and Any on vCD's Edge Service Gateway page. See below image. My customer's demand was to set another protocol here which is ESP . I checked on GUI and it was clear that it is not possible from here so I could change it successfully from API queries. How to connect Before updating this firewall rule field, we must know that how to connect vCloud Director in any API tool. You can use Postman, Insomnia, ARC (Advance Rest Client) as a tool to connect vCD. You might need to disable SSL check before executing any api call. Below snippet is from Postman API tool. Once that SSL check is disabled then 1. Set Authorization as Basic Auth. See below image 2. Set header as mentioned below Accept application/*;version=32.

vCD | Upgrade from version 9.5 to 10.1.2

  Overview Planning In-place upgrade from vCD versin 9.5 to version 9.7 Best Practices for migration Migrate from vcd version 9.7(linux hosted) to vCD 9.7 appliance Known Errors during above deployment and migration Upgrade from version 9.7 appliance to Cloud Director 10.1 appliance Vendor Articles and References Overview It is three step process from version 9.5 to version 10.1.2. I would suggest to complete pre-requisites properly and it will be flawless process. You should check inter-operability first so that your other components can function with vCD versions you will be upgrading to. My experience says that during migration, first deploy the primary node → Transfer the DB → Replace custom certificates with self-signed certificates → Make sure your primary node up → Now add more nodes if you want to deploy multi-cell architecture → Change certificate.ks in standby nodes. When we talk about Primary and standby nodes then it is only for Postgre DB

Cloud Director | Error "Invalid User" during any operation with VM

Hi Guys, I am covering this error because I couldn't find any article on it and I had to open a case with VMware to resolve it. Luckily, my issue went into hand of a good guy and we could resolve it after around 5-6 hours call. So, I thought to cover this up as well. It can be beneficial for someone. In this article, I will not share exact solution rather I will tell you that why is it happening, I mean the root cause and then you have to raise a case with VMware. At least you will now know the root cause. Why not solution? because you will have to do some changes in vCloud Database and it is very critical to touch cloud director DB by your own and if you are not that expert. Error is below in image and impacted vCD version is 9.7 Reason: In my case, it happened because my customer deleted a user from LDAP server directly without transferring its objected from vCloud Director. Hope you know that when you delete any user in vCD, it ask you to transfer its objects. In this case, it w

vROPS | CPU Addition Automation

Hello Friends, In my previous post, I explained the cpu addition automation with PowerShell. Now, I got a request to explain the steps from vROPS as well. As I said that who has vROPS then it is better than doing it from PowerShell. vROPS is undoubtedly Enterprise level solution and I would say PS here is a trick to do it. Here you go... Pre-requisite CPU hot add must be enable for the VM(s) which you want to automate for. How to do it? User account you are using, must have sufficient access rights  Procedure 1. Login vROPS with admin privilege account. 2. Click on Alerts from top Menu. Which one? See below image- 3. Expand the Alert Settings and Click on "Alert Definition" and then click on Green + icon as shown below.  4. Fill the form ;) Name : Give any suitable name. I gave "_increase cpu count". Base Object : Select Virtual machine under vcenter adapter here. Type virt and it will auto highlight. Alert Impact : Impact: Efficiency (Because continuous CPU spike w

Automation | Add vCPU in VM if usage is more than 90%

Hi Guys, I got this question from one of the VMware group so I thought to add it in my blog and then share. Automation of CPU addition is not tough but adding it with condition can be little challenging. You can do it with vROPS very easily but if you don't have vROPS then I have solution for you. Pre-requisite is to enable hot add for CPU. Below is the base code-  Connect-VIServer vcenter_ip #to connect vcenter $VM = Get-VM VM_Name #to get the vm name #to convert the value in GHz. Default value comes in MHz $maxcpu = ($vm.Extensiondata.Summary.Runtime.MaxCpuUsage)/1024 #to convert number of cpu into GHz speed. Here you need to replace 2.80 as per physical host's core speed at your end $cpus = ($vm.Extensiondata.summary.config.NumCPU)*2.80 # to have percentage value $cpulimit = $cpus*90/100 #below is the hot add cpu command if ($maxcpu -gt $cpulimit){ get-vm $vm | Set-VM -NumCpu 2 -Confirm:$false #Current value is 1 and it will change it to 2 } Now the question is how to autom