Impossible to remove Advanced Settings on Vcenter object or not? #vExpert @VMwarevSphere #esxi #virtualcenter

I my post before I explained how to fix a corrupt VCLs. When I did this in the lab I misspelled the setting. When I pasted the cluster number in the advanced setting I copy and paste the hole url for some stupid reason. When you do that it is not possible to add the correct value, it will say you have an entry like this. So the only way to fix this is to have that value removed.

And this is not possible thru the Vsphere Client!

So this is how I fixed this:

First you need to enable ssh on Virtual Center

https://vcenter:5480

Backup and edit the vpxd.cfg

Then ssh to vcenter to vcenter

copy the file (if you do something bad)

cp /etc/vmware-vpx/vpxd.cfg /etc/vmware-vpx/vpxd.cfg.org

Then edit the file with vim

vim /etc/vmware-vpx/vpxd.cfg

The you need to find the setting that was bad in my case vcls config. I removed everything between <vcls> and </vcls> include thoose tags!

The save the file.

Restart vpxd

service-control --restart vmware-vpxd

This restart can takle some time, just wait.

Remove the backupfile that you created before if you want.

rm /etc/vmware-vpx/vpxd.cfg.org

After the service is restarted you can go back and disable ssh and edit Advanced Settings on vcenter object with the correct values!

Thats all!

Keep hacking!

//Roger

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Up ↑

%d bloggers like this: