autostart VM

This option in ESX / VC has been around for quite some time now (even gave us some headaches in the past where restating the mgmt-vmware services also restarted the VMs - oops). It's the autostart VM feature. How does this work? Quite easy: just enable it using your VI Client! If it is enabled, it autostarts your VMs at ESX poweron. So in case of a full datacenter power failure (and you do not have SRM in place) the most important selected VMs will start as soon as possible.


By default, this feature is disabled. But once enabled a lot happens on your ESX server (note: I call it explicitly ESX, not vCenter, but I'll come back to that later).

All settings defined in the VI client on the Autostart screen is saved in: /etc/vmware/hostd/vmAutoStart.xml


Here is the output of the above example:

<e id="0">

During the system start (init process in the Linux RedHat Service Console) it starts the /etc/rc3.d/S99vmware-autostart which starts the VMs defined in the xml file using the /usr/bin/vmware-autopoweron.sh script. Pretty cool huh, so it is no abacadabra!

Anyway, there are nice features where you can set how long to wait between VMs (in seconds, or just allow the following VM to be started when the VMware Tools are running), also a shutdown procedure. And you can specify the order in which the VMs start. Awesome!

The last feature though (the one where you can specify the order), is pretty worthless when you run your ESX server in a cluster with VMotion capabilities. Once a VM is VMotioned (manually or by DRS) the autostart order is not saved. It is saved to start in random order. And you should enable the autostart feature on all hosts! Or else it will not work.

VMware did changed this around quite a lot. In the early days the autostart configuration was saved in the .vmx file. Now it is in an .xml file. It could be changed in the future so it is saved on the vCenter database (and in your ESX server of course) so hopefully it saves the start order.

I like to set this on my domain controller, vCenter Server, SQL Database server. Take a look, don't forget the simple things!

( 0 Votes ) 
Comments (6)
  • Penni Chall  - autostart VM

    Howdy! Someone in my Myspace group shared this website with us so I came to take a look. I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to my followers! Outstanding blog and amazing design.

  • Loretta Winkenwerder  - autostart VM

    It’s actually a great and helpful piece of information. I’m glad that you shared this helpful information with us. Please keep us informed like this. Thanks for sharing.

  • borvestinkral  - autostart VM

    I was just searching for this info for some time. After six hours of continuous Googleing, at last I got it in your site. I wonder what is the lack of Google strategy that do not rank this kind of informative web sites in top of the list. Usually the top web sites are full of garbage.

  • Tod Adon  - autostart VM

    The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention.

  • Royce Zinni  - autostart VM

    I enjoy the efforts you have put in this, appreciate it for all the great blog posts.

  • Edmund Salo  - autostart VM

    With havin so much content do you ever run into any issues of plagorism or copyright infringement? My blog has a lot of completely unique content I've either created myself or outsourced but it seems a lot of it is popping it up all over the internet without my agreement. Do you know any solutions to help protect against content from being ripped off? I'd certainly appreciate it.

Write comment
Your Contact Details:
Gravatar enabled
[b] [i] [u] [s] [url] [quote] [code] [img]