[VMware] How to Restore a Role to a VM?

Experts,

So, that quirky thing vCenter web client does when you think you're making a change to what you have highlighted, but it's actually targeting something else, got me. So, I created a Role in the Permissions tab and attached it to a VM for testing. I deleted that Role, I thought, except it appears I maybe deleted which ever one gave me permission to Edit the VM. I'm currently locked out of it.

"You do not have permission to view this object or this object does not exist," is what I'm left with...

I don't have any snapshots of this VM, either. Is it possible to restore whatever it was I accidentally deleted?

Thanks!
Michael LPr. SysadminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SeanSystem EngineerCommented:
Did you remove administrators group from the VM? You'll probably need to log in as root to add administrators back.
0
Michael LPr. SysadminAuthor Commented:
I'm not sure what was deleted, but I'm not too sure that was it now... I added the same Role, without deleting any other, to another VM. I'm locked out of that, too. That was one I created for Citrix and is pictured here. I assigned it to Adminstrator one one VM and Administrators to this other one.
0
Michael LPr. SysadminAuthor Commented:
Ok, so... I relogged because I couldn't remember the root credentials and I can now edit them again. I never removed any roles, or whatever. Sorry for wasting your time, Sean, but thank you for your speedy response.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

SeanSystem EngineerCommented:
Always happy to help.
1
Michael LPr. SysadminAuthor Commented:
Sean, actually, I can't Edit either permissions. I don't know what happened, but by me adding this XenApp Service role I created, it usurped:

VSPHERE.LOCAL\Administrator | Administrator | 10.10.9.10

Instead of the above, which is what all my VMs have, these two have:

VSPHERE.LOCAL\Administrator | XenApp Service | This object and its children

So, still in some trouble :P
0
SeanSystem EngineerCommented:
Are you able to directly add the admin account to the permissions and not use roles?
0
Michael LPr. SysadminAuthor Commented:
Add Permissions is grayed out.
0
SeanSystem EngineerCommented:
You may just need to manually edit the permissions file in esxi

From VmWare's webiste:

Connect to the ESX host's service console via SSH or local console.

Note: ESXi connection to the local console is made using the "unsupported mode"
Open this file in a text editor :
/etc/vmware/hostd/authentication.xml

Note: In ESX4.1 and later the file name is authorization.xml

Change the existing value of the <ACEDataRoleId> </ACEDataRoleID> to -1.
After editing this file, save it and restart the management agents on the host or reboot the host.

https://kb.vmware.com/s/article/1031192
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael LPr. SysadminAuthor Commented:
I'll give this a shot tomorrow morning, when my brain is fresh. Thanks again. I'll let you know how it goes.
0
Michael LPr. SysadminAuthor Commented:
Sean, thanks! This'll work.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Virtualization

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.