Note: Please be aware that this is not persistent and the procedure has to be repeated after recreating the Diego Cell(s).
bosh -e <environment> -d <cf-deployment> ssh compute -c 'sudo /bin/cp /etc/vmware-tools/tools.conf /etc/vmware-tools/tools.conf.backup'3. Run the following command in order to modify the Open VMware Tools config file for all Diego Cells at once:
bosh -e <environment> -d <cf-deployment> ssh compute -c 'sudo /bin/echo -e $"[guestinfo]\nexclude-nics=s*\nprimary-nics=eth0"| sudo /usr/bin/tee -a /etc/vmware-tools/tools.conf4. Restart Open VMware Tools for all Diego Cells:
bosh -e <environment> -d <cf-deployment> ssh compute -c 'sudo /etc/init.d/open-vm-tools restart'5. Open VCenter and verify if the correct IP is reported in the UI.
bosh -e <environment> -d <cf-deployment> ssh diego_cell -c 'sudo /bin/cp /etc/vmware-tools/tools.conf /etc/vmware-tools/tools.conf.backup'3. Run the following command in order to modify the Open VMware Tools config file for all Diego Cells at once:
bosh -e <environment> -d <cf-deployment> ssh diego_cell -c 'sudo /bin/echo -e $"[guestinfo]\nexclude-nics=s*\nprimary-nics=eth0"| sudo /usr/bin/tee -a /etc/vmware-tools/tools.conf4. Restart Open VMware Tools for all Diego Cells:
bosh -e <environment> -d <cf-deployment> ssh diego_cell -c 'sudo /etc/init.d/open-vm-tools restart'5. Open VCenter and verify if the correct IP is reported in UI.
bosh -e <environment> -d <cf-deployment> ssh diego_cell -c 'sudo /bin/cp /etc/vmware-tools/tools.conf.backup /etc/vmware-tools/tools.conf'3. Restart Open VMware Tools for all Diego Cells:
bosh -e <environment> -d <cf-deployment> ssh compute -c 'sudo /etc/init.d/open-vm-tools restart'
bosh -e <environment> -d <cf-deployment> ssh diego_cell -c 'sudo /bin/cp /etc/vmware-tools/tools.conf.backup /etc/vmware-tools/tools.conf'3. Restart Open VMware Tools for all Diego Cells:
bosh -e <environment> -d <cf-deployment> ssh diego_cell -c 'sudo /etc/init.d/open-vm-tools restart'The following is an example of the desired result: