VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
4 Replies Last post: Nov 6, 2009 8:41 AM by guyrleech  

Missing Datastore after reboot posted: Nov 4, 2009 4:09 PM

Click to view etegration's profile Novice 5 posts since
Aug 14, 2007
my datastore is on a NAS, a Dlink 323 with an internal NAT IP address. After rebooting the main machine running xp, vmware server 2 always cant seem to be able to find that datastore thus causing the auto boot virtual machines to fail. i have tried using the hostname and nat ip address, after reboot, the same occurs. any help please?

Re: Missing Datastore after reboot

1. Nov 5, 2009 1:06 AM in response to: etegration
Click to view guyrleech's profile Virtuoso 1,808 posts since
Mar 6, 2006

This seems to be a fairly common occurrence with datastores on non-local disks. I presume it is to do either with service startup order such that the VMware services startup before the NAS becomes available/connected.

If I was doing this, I'd add my own service using the wonderful Microsoft utility srvany.exe that lets you run any program, such as a script by specifying the scripting engine, e.g. cmd.exe ot wscript.exe, as the executable srvany launches. This would do whatever it needed in a script to bring the NAS to life, or wait until it was (although watch for service timeouts), and would be set to depend on some networking service to ensure it didn't come up too soon. I would then make the VMware services, particularly the host agent, depend on the srvany service.

Hopefully though someone with the same problem will have a simpler workaround for you.


Guy Leech
VMware vExpert 2009

---
If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Re: Missing Datastore after reboot

4. Nov 6, 2009 8:41 AM in response to: etegration
Click to view guyrleech's profile Virtuoso 1,808 posts since
Mar 6, 2006
You could set the VMware services to manual and then create a service that uses srvany.exe to run a script that just waits for say 60 seconds before then starting the VMware services via the "net" or "sc" commands.

Guy Leech
VMware vExpert 2009

---
If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

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