VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
7 Replies Last post: Jul 2, 2009 3:27 PM by DSTAVERT  

ESXi 3.5u4 (build 153875) not starting VMs automatically on start-up. posted: Jul 2, 2009 6:59 AM

Click to view asincero's profile Novice 24 posts since
May 22, 2006
I'm having an issue with my ESXi 3.5u4 (build 153875) server not automatically starting VMs on system start-up. First, let me say that "yes" I do have it configured to automatically start VMs on system start-up. The problem seems to be related to the fact that I have the NICs configured to use DHCP and the VMs live on an NFS server.

The ESXi box has two NICs (actually it has 5, but for the sake of this discussion I'll just say 2). One NIC provides access to the LAN so I can connect to it via VI Client. The other NIC provides access to a dedicated gigabit LAN to the NFS server. I have both NICs configured to get it's IP settings via DHCP. With this configuration, this is what I see from VI Client after system start up:

esxi-prob1.jpg

As you can see, the virtual machines configured on ESXi host "charlie.milcom.arinc.com" are listed as "Unknown" and "Inaccessible". When I go to the storage configuration screen, this is what I see:

esxi-prob2.jpg

As you can see, the two configured NFS datastores are listed as "inactive". However, when I go on the NFS server (which is a Debian GNU/Linux 4 server, if that is relevant), I see in the logs that those shares have been successfully mounted by "charlie".

When I click on "Refresh", then everything comes back to life:

esxi-prob3.jpg

The NFS datastores are listed as being available, and my VMs appear in the left hand panel. At this point, I can then manually start the VMs. It'd be nice if ESXi would retry starting the VMs by itself so it'll come on just as soon as whatever datastore the VM lives on becomes available, but apparently it doesn't do this.

This problem goes away if I configure the NICs to not use DHCP and just configure them statically; everything comes up by itself as it should. However, I would prefer to have the NICs be configured via DHCP. This way IP assignments for everybody on the network is done at one spot (the DHCP server). Besides, the option to use DHCP is being made available so it should work without any problems.

Is this a bug or am I doing something wrong?
Click to view DSTAVERT's profile Virtuoso 2,388 posts since
Nov 30, 2003
Does DNS resolve properly?
I personally would want to have fixed addresses on important services and unless you have a very large installation fixed addresses on ESXi host.
Click to view DSTAVERT's profile Virtuoso 2,388 posts since
Nov 30, 2003
Since you would add the host and IP to your dns server I'm not sure you would be out of control with IP addresses. With some things fixed addresses are important. You don't get to assign DNS servers by name.
But that's me. Have you tried extending the startup delays.
Click to view RParker's profile Champion 5,270 posts since
Dec 6, 2006
The most obvious thing I can point out that since you have to 'refresh' to see your datastore, that's the problem, and not a ESX / Autostart problem at all.

Check the logs on the ESX host to see if there is a failure to mount or some other problem, that might give a clue as to why you can't see the VM's. If the VM's aren't visible, then they won't start. So what needs to happen is what you do manually to 'refresh' that location that ESX isn't doing upon restart.

Another thing to point out is this may not ultimately be a problem. Why are you rebooting the ESX host in the first place? Normally they should not restart or shut down except for maintenance and patching, which is maybe twice a year, and you wouldn't start the maintenance and just walk away, so autostarts really isn't an issue because the server restarts should not happen that often, unless you have a need to shut them down regularly.
Click to view DSTAVERT's profile Virtuoso 2,388 posts since
Nov 30, 2003
Try an ESXi boot delay so the NFS server comes online before the ESXi host.

http://vm-help.com/esx/esx3i/boot_delay.php

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