VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
2 Replies Last post: Nov 5, 2009 5:30 AM by rdiphoorn  

Set-VMHostNetworkAdapter hanging posted: Nov 4, 2009 5:44 PM

Click to view rdiphoorn's profile Enthusiast 49 posts since
Dec 16, 2004

Hi,

Quick overview of my problem:

  • I've got an problem with the cmdlet Set-VMHostNetworkAdapter; I am assigning an IP address and subnet mask with it, and it does this correctly.
  • Problem is, that after this cmdlet has done his work, my PowerShell window just "hangs"; it's waiting for an completion message I think from the ESX host.
  • This is not possible of course, because the host has another IP address so the active connection is actually not active anymore.


In a Powershell window this is not that much an problem, I can just close the window and restart the PowerShell session.

But, I want to use this also in a script to assign an other IP address to an ESX host, and because of the problem of the "hang", my script does not continue to run.

Do you guys have an clue how to solve this?

Regards, Richard

Clarification is a beautiful thing.

Check my site: http://www.vituality.com

Re: Set-VMHostNetworkAdapter hanging

1. Nov 4, 2009 10:43 PM in response to: rdiphoorn
Click to view LucD's profile Champion 2,431 posts since
Oct 31, 2005
Perhaps a bit cumbersome but could this work ?
-) add a temporary Service Console with IP address X
-) connect over this new Service Console (addr X)
-) reconfigure the IP address of the old Service Console to IP address Y
-) connect (addr Y)
-) remove the temporary Service Console (addr X)

Otherwise I don't see how your scenario could work.
Your cutting the branch on which you're sitting.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities