Symptoms
The NetWorker VMware Protection (NVP) integration is configured with the vProxy appliance. When attempting to use the vmconfig utility to enable a VM's migration to resolve the backup failure error "The operation has been disabled by the guest operating system" as demonstrated in NVP-vProxy: Error disabling storage migration, retrying, error: VDDK Error: 20005: The operation has been disabled by the guest operating system., you encounter a permission denied error.
admin@VPROXY01:/opt/emc/vproxy/bin> ./vmconfig -c info -k "vm-360708" -l moref -p password123 -u DataProtection@domain.com -v VCENTER01.domain.com -c "enable-migration"
VM Config
vCenter: "VCENTER01.domain.com", User: "DataProtection@domain.com", Password: "****", Lookup Mode: "moref", Lookup Key: "vm-360708", Command: "enable-migration"
Logging into vCenter 'VCENTER01.domain.com'
Logged into vCenter 'VCENTER01.domain.com'.
Initialing Program structure for standalone program.
Connected to session on vCenter 'VCENTER01.domain.com' Version '5.5.0 build-2001466, API:5.5', Uuid:38489545-5CEE-4324-A1FB-B4A7A15FD814.
Searching for virtual machine with MORef "vm-360708" ...
Querying vCenter for definition of virtual machine with MORef of "vm-360708" ...
Found virtual machine "TESTVM01" with MORef "vm-360708".
Initializing VDDK...
Unable to open log file for VDDK package: Unable to create/open log file: open -vddk.log: permission denied
Unable to initialize VDDK: Unable to open log file for VDDK package: Unable to create/open log file: open -vddk.log: permission denied.
Disconnected from session on vCenter 'VCENTER01.domain.com'.
Logging out from vCenter 'VCENTER01.domain.com'
Logged out from vCenter 'VCENTER01.domain.com'.
Cause
vProxy admin account does not have sufficient permissions to use the vmconfig utility.
Resolution
Run the command with sudo or switch to the vProxy root account. Default credentials are root/changeme. The root credentials are defined during vProxy deployment. NVP vProxy: Unable to log in using root credentials, root access lost