VMware Cloud Community
vFantastic
Enthusiast
Enthusiast
Jump to solution

Set IP addresses on RHEL 6 guest OS via PowerCLI?

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!

0 Kudos
1 Solution

Accepted Solutions
vFantastic
Enthusiast
Enthusiast
Jump to solution

Security Configurations on template caused the issue.

This happens if permissions to run executables are denied for /tmp/

Issue resolved.

View solution in original post

0 Kudos
1 Reply
vFantastic
Enthusiast
Enthusiast
Jump to solution

Security Configurations on template caused the issue.

This happens if permissions to run executables are denied for /tmp/

Issue resolved.

0 Kudos