List VMs set to autostart
-
When I restart my host there are a number of CR VMs that auto start and to avoid conflicts with the production VM I quickly stop them however I do not know their names to change their auto start setting.
Is there a way to list the VMs that are set to auto start to avoid going through them one by one?
-
Hi,
The filter
other:auto_poweron:"true"
will show you all VMs known to XO that are set to auto-start. AFAIK, VM replicas created via CR shouldn't auto-start when the hosts are rebooted. Are you running XOA or XO from sources? What version / commit?Dan
-
Thank you. Wow, I have 36 set to power on when the host starts!
Can these be bulk updated to false? Easier to set all to false and then update on three to true.
XOA 5.98.1
-
@McHenry Even though these VMs have auto-start enabled, the auto-start should be blocked if they were created via CR. This is why I wanted more information on how they were created.
-
Thanks again. So I better understand, what makes a VM auto start or block auto start. Is it the CR tag?
I ask as if I need to fallback to one of these VMs I will want it to then auto start.
-
@McHenry Check the contents of the VM's
blocked-operations
parameter. This is from one of my VMs --# xe vm-param-get param-name=blocked-operations uuid=e764e6fb-5e18-35dd-cfb6-ddf83d32e1fd start_on: Start operation for this vm is blocked, clone it if you want to use it.; start: Start operation for this vm is blocked, clone it if you want to use it.
Both the
start
andstart_on
operations should be blocked on CR created replicas.