XenServer VMs and easy autostart

One of the most tedious tasks I find myself doing on XS installation is switching VMs’ autostart off and on. While no big deal it got boring real fast. I thus crafted a couple bash scripts to be run on the XS host that speed the task up.

This script will parse all the VMs while skipping a few system instances, and will clearly show which ones are starting automatically, together with the corresponding UUID, so no guesswork or matching is needed.

With our UUID in hand, we can now enable/disable it through this tiny script:

With these two scripts the task becomes checking the VM name and switching it on/off in a matter of seconds. Mission complete.

Leave a Reply

Your email address will not be published. Required fields are marked *