I'm trying to set IP address subnet and gateway on RHEL6 Guest OS's via PowerCLI. Howerver its failing with 'bash: /tmp/powerclivmware0: Permision Denied'
$NetInt = Get-VMGuestNetworkInterface -VM $VM.VMName -GuestUser $USR -GuestPassword $PWD
Set-VMGuestNetworkInterface -VMGuestNetworkInterface $NetInt -GuestUser $USR -GuestPassword $PWD -Ip $VM.IP -Netmask $VM.Netmask -Gateway $VM.Gateway -Dns $DNS1,$DNS2
This works fine on RHEL5 but not RHEL6.
Does anyone have experience with getting this to work for RHEL6? Any help would be much appreciated!
Security Configurations on template caused the issue.
This happens if permissions to run executables are denied for /tmp/
Issue resolved.
Security Configurations on template caused the issue.
This happens if permissions to run executables are denied for /tmp/
Issue resolved.