Virtual machine is associated with a wrong resource pool in vCloud Director 9.7
Virtual machine is associated with a wrong resource pool was the warning i had on two virtual machines in vCD. Those 2 virtual machines were also disappeared from the resource pool view in the vCloud Director GUI. Because of that, I wasn’t able to vMotion those virtual machines to the new resource pool (cluster).
In this blog post i will show you how to troubleshoot and eventually fix this type of issue.
In the resource pool view of vCloud Director 9.7 as shown below, we can only see 3 virtual machines when filtering on the customer prefix name. This amount of virtual machines was not equal to the amount of virtual machines on the cluster view of the vCenter server.
In the vSphere cluster virtual machine overview, we can see a total of 5 virtual machines when filtering on the customer prefix name. As mentioned before the total amount of virtual machines are not equal to the amount of virtual machines in the resource pool view of the vCloud director GUI.
We now know the virtual machine names of the missing virtual machines. The next step is to go the OrgvDC view of the customer. In the OrgvDC view of the customer, we see an error reported for the vApp that contains the missing virtual machines.
The warning showed in the picture below is quite clear and is also what we have have found already. There are 2 virtual machines in vCloud Director that are associated with a wrong resource pool.
If we proceed with clicking on the vApp to get into the vApp view, we now see two system alerts error messages on the two affected virtual machines.
The first thing I did was a refresh of the vCenter instance. This will update the vCloud Director database with the underlaying vCenter server resources.
This action can be done in vCD gui (https://vcd-url.com/provider) with a system administrator user by opening the vSphere resources from the main menu. Click on vCenters in the left panel, select the vCenter server you would like to refresh and click on refresh.
Official VMware documentation about refreshing a vCenter server instance: url
Unfortunately, that did not solve the issue. The next step was to refresh the VM config in vCloud Director.
I used the flex GUI in the picture below. Open the virtual machine properties of the affected virtual machine. Add a dummy entry in the description field and click on the button OK. This will update the virtual machine config but also with the underlying vCenter resources.
The 2 virtual machines are back in the resource pool view after performing a refresh of the virtual machine config. I was now able to go ahead and migrate those virtual machines to the new cluster.
In this blog article, I showed you how to refresh the vCenter and VM config. These two troubleshoot steps could be done on the fly without any downtime.
How did we got this type of issue? It could be caused by doing any changes on the vSphere layer instead of doing it in the vCloud Director GUI. Virtual machine configuration and vMotion tasks should be handled by the vCloud Director.
If you need any help you with VMware related products, please do not hesitate to contact me.
Thank you for reading and visiting my blog.
Double VCP DCV/NV | VCIX-DCV 2019 | vExpert 2020 | vExpert 2020 Cloud Provider
All vForum online sessions are available to watch on demand now: #vExpert https://bit.ly/3dXsqVQ
Hello All, Check out my first Session VMware Tutorial for Beginners vSphere 7, I will be teaching you from basics to advance level.
I will be posting every Thursday 4pm GMT.
#VMware #vSphere7 #vCenter7 #vexpert #vcenter #vcommunity Subscribe,Like & Share