Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232869

Run Set-VMGuestNetworkInterface get "element not found" error

$
0
0

I try to change ip address for some VM guest

I use following command in powerCLI.

PowerCLI C:\> $vminter = Get-VMGuestNetworkInterface -vm 2008t2 -Guestuser administrator -guestPassword pass

PowerCLI C:\> set-vmguestnetworkinterface -VMguestnetworkinterface $vminter -guestuser administrator -guestpassword pass   -Ippolicy Static  -Ip 10.230.48.231 -netmask 255.255.255.0 -Gateway 10.230.48.253 -Dns 10.230.48.1

I got following error message

 

PowerCLI C:\> set-vmguestnetworkinterface -VMguestnetworkinterface $vminter -gue
stuser administrator -guestpassword pass -IpPolicy static -Ip 10.230.48.231
-netmask 255.255.255.0 -Gateway 10.230.48.253 -Dns 10.230.48.1
VM              Name                      IP              IPPolicy   SubnetMask
--              ----                      --              --------   ----------
2008t2          Local Area Connection     10.230.48.231   Static     255.255...
set-vmguestnetworkinterface : 3/5/2013 11:04:05 AM
Set-VMGuestNetworkInterface        "Error occured while configuring the
network:'Element not found.
'.
At line:1 char:1
+ set-vmguestnetworkinterface -VMguestnetworkinterface $vminter -guestuser
adminis ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-VMGuestNetworkInterfac
   e], ViError
    + FullyQualifiedErrorId : Client20_VmGuestService_SetVmGuestNetworkInterfa
   ce_Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.SetVmGuestNetworkInt
  erface
But  I had checked the VM guest. The guest (2008t2) ip had been changed by the parameters which i had input in the command.
I want to fix the error. I hope some guys could help me.
I'm a new guy in PowerPCLI.
Thanks

Viewing all articles
Browse latest Browse all 232869

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>