Give a user access to just one VM using ESXi

I'm using the free version of ESXi 6.5 and don't have Vcenter.
Is there a way to give a user user access to just one VM through ESXi? I try the ESXi web and client and I can setup users and some permission but it seams i can not limit the access to just one specific VM.
Any help appreciate - Thanks
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:

You've only got one account root.... and if they log in as root, they have access to the entire host.
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
We are using the VMRC client (separate download) with a restricted user and a particular URL qualifying the exact VM using the mo id. It's some effort to get that mo id if not able to use the PowerCLI.
Because the URL is cryptic this protects from accessing other, unwanted VMs sufficiently in most cases.

Would that work for you? If so, I'll post some details I'll have to lookup first ...
exsasanAuthor Commented:
Hi Qlemo.
So you mean with having that URL I don't need to authenticate the user? Don't forget I don't want to give root permission to user to access whole ESXi.
If you think it works, please, let me know how to extract the URL for a VM and how to use the VMRC with that URL.
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
You'll still need an account, with sufficient privileges to do what is needed - e.g. create and restore snapshots.
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
VMRC 10.0.2 download:
You'll have to install that once, but you can copy the generated files of C:\Program Files (x86)\VMware\VMware Remote Console into a network location to provide access for other users.

To get the moid when having the name, use VMware vSphere PowerCLI:
Connect-VIServer -Server YourVMHost -user root -password YourRootPassword
(Get-VM YourVMName).ID -replace 'VirtualMachine-'

Open in new window

That number is now to be used in the following line instead of %moid% (note: with vCenter, the number is different and prefixed with vm-).
Replace %path_vmrc% with the path to the vmrc.exe file of the first step.
Replace the other vars enclosed in % with their obvious values.
%path_vmrc%\vmrc.exe vmrc://%NormalUser%@%VMHost%/?moid=%moid%

Open in new window

This should then display an authentication dlalogue asking for the password, and after entering you'll get a VM console window. You can omit the user name (and then the @ too) in the above vmrc location if you want to have people asked for the user name too.

Of course someone able to read the batch file containing above command could extract and modify to just go thru numbers to get access to other VMs, so there is no real protection against that, but it needs some effort and understanding.

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
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

From novice to tech pro — start learning today.