How can I disable autostart for a VM in ESXi or vSphere?

14,790

Decrease the Priority

As mentioned in my comment; decreasing the priority can set the auto-start of the VM to manual start instead.

  • You can access this setting in Hosts and Clustersby selecting (on vSphere) the host, then clicking the Configuration tab and then selecting Virtual Machine Startup down the right hand side.
  • On the web client, you can access the same by navigating to Hosts and Clusters, selecting the host, then clicking Manage, followed by Settings and finally VM Startup/Shutdown.
Share:
14,790

Related videos on Youtube

E Mahaso
Author by

E Mahaso

Updated on September 18, 2022

Comments

  • E Mahaso
    E Mahaso over 1 year

    I have some VMs running on an ESXi host, managed by vCenter, all on version 6.5.x. I have some VMs configured to autostart, which works fine, but I need to stop them from starting automatically.

    There is no mention of autostart anywhere in the vSphere Web Client, in either the Flash or HTML5 versions. I have found instructions for enabling/disabling Autostart support at the host level, from ESXi. I have also found how to display autostart priority in the VM listing, on the ESXi web interface only:

    ESXi Autostart column in VM list

    In the ESXi web interface, I have a menu item for Autostart with only "increase priority" and "decrease priority":

    Autostart menu on ESXi

    Neither menu item will turn autostart completely off.

    I have not found any instructions how to disable autostart for a single VM. I need to stop some of the VMs that currently show an integer under "Autostart order" in the above screenshot from starting automatically -- that is, I'm looking for the menu item that disables autostart for a specific VM, changing the "1" back to "Unset". I'd like to avoid having to SSH into the host directly to fix this, but I will if I have to.

    • Ramhound
      Ramhound over 6 years
      Your VMs are being managed by vCenter. So you have to do all your configuration through vCenter or ESXi. Despite understanding what you are asking, your question is confusing, almost to the point I am not postive I actually do know what you are asking.
    • E Mahaso
      E Mahaso over 6 years
      You're right, @Ramhound, the intent of the question was unclear. I have edited to add some more detail and screenshots of the stuff that works. Hopefully this makes more sense.
    • Shiffle McDoobles
      Shiffle McDoobles over 6 years
      On my instance of vSphere, I can decrease the priority until it is at the bottom of the pile, and then when I decrease once more, it sets it as manual start. Are you able to do this?
    • Ramhound
      Ramhound over 6 years
      If you remove the VM from the inventory and then add it back, the Autostart order priority, should revert back to being unset.
    • E Mahaso
      E Mahaso over 6 years
      @ShiffleMcDoobles, when I try to "decrease priority", I get an error message, "Failed - A specified parameter was not correct: vim.host.AutoStartManager.AutoPowerInfo.startOrder", regardless of which machine I pick. It does change the priority, though, and if I do it on Priority #1, it changes to "Unset". This appears to persist through a reload of the web interface. If you make this an answer, I'll accept it. Thanks!
  • E Mahaso
    E Mahaso over 6 years
    Thanks, Shiffle -- I couldn't find the "VM Startup/Shutdown" section in vSphere, and it never came up when I was looking for documentation about autostart. Maybe it's a terminology issue; "autostart" is used in ESXi while "Automatic Ordered" and "Automatically start" is the wording used in vSphere.
  • jamesdlin
    jamesdlin over 6 years
    Why the downvote? Is some part of this incorrect?
  • namezero
    namezero over 5 years
    In the 6.7 Web client, the page has been renames to Manage->System->Autostart