Accessing or modifying a GuestInfo variable value from the guest OS fails with "Permission denied" error.
search cancel

Accessing or modifying a GuestInfo variable value from the guest OS fails with "Permission denied" error.

book

Article ID: 377294

calendar_today

Updated On:

Products

VMware vSphere ESX 7.x VMware vSphere ESX 8.x

Issue/Introduction

  • "Permission denied" error is returned when getting or setting GuestInfo variables using "vmware-rpctool" or "vmtoolsd --cmd" on Linux guests, or using "rpctool.exe" or "vmtoolsd.exe --cmd" on Windows guests

Cause

The issue can be caused when accessing GuestInfo variables is denied to regular users (non-admin/non-root) based on VM setting
When:
- "guest_rpc.rpci.auth.cmd.info-get" is TRUE (default is FALSE) in the VM configuration, the following operations in the guest return the "Permission denied" error:

  • vmware-rpctool” on Linux or “rpctool.exe” on Windows is used to get a GuestInfo variable value using the "info-get" command,

        OR

  •  "vmtoolsd --cmd" on Linux or "vmtoolsd.exe --cmd" on Windows is used by a regular user (non-admin/non-root) to get a GuestInfo variable  value using the "info-get" command.


The issue can be caused when modifying GuestInfo variables is denied to regular users (non-admin/non-root) based on VM settings.
When:
 - "guest_rpc.rpci.auth.cmd.info-set" is TRUE (default is FALSE) in the VM configuration, the following operations in the guest return the "Permission denied" error:
 

  • vmware-rpctool” on Linux or “rpctool.exe” on Windows is used to set a GuestInfo variable value using the "info-set" command

    OR

  • "vmtoolsd --cmd" on Linux or "vmtoolsd.exe --cmd" on Windows is used  by a regular user (non-admin/non-root) to set a GuestInfo variable value using the "info-set" command

Resolution

When accessing a GuestInfo variable value returns "Permission denied" error, perform one of:
 - Use the "vmtoolsd --cmd" on Linux or "vmtoolsd.exe --cmd" on Windows as an administrator or root user,

OR
 
- Set "guest_rpc.rpci.auth.cmd.info-get" value to FALSE in the VM configuration.
 

When modifying a GuestInfo variable value returns "Permission denied" error,perform one of:

 - Use the "vmtoolsd --cmd" on Linux or "vmtoolsd.exe --cmd" on Windows as an administrator or root user,

OR

 - Set "guest_rpc.rpci.auth.cmd.info-set" value to FALSE in the VM configuration.
 
Note: Changes to these VM parameters require the VM configuration to be reloaded. If the VM is powered on when the settings are modified, the VM needs to be:
  - shutdown or powered off and powered on again.
   
      OR 

  - Migrated (vMotion) as to force a VM configuration reload on the running VM.