Someday the number of virtual machines (VMs) increases. Maintenance physical server then you have to start each VMs , you must to pay a lot time to do it. Today, I will share a tip to Auto-Start VMs after maintenance.
- Setting the Xenserver to allow Auto-Start
1. Get the UUIDs of the pool with the command
1 |
xe pool-list |
2. Copy the UUIDs of the pool
1 2 3 4 5 |
uuid ( RO) : 1128465c-1607-9742-3dbc-abf70a0f35a5 name-label ( RW): name-description ( RW): master ( RO): bf24f701-8877-46fc-bde9-96f7c8cb9359 default-SR ( RW): 178bed82-b1d2-ee90-cbd9-5d99df0b1c66 |
3. Then type the following command to set the pool to allow Auto-Start
1 |
xe pool-param-set uuid=1128465c-1607-9742-3dbc-abf70a0f35a5 other-config:auto_poweron=true |
- Setting the VMs to Auto-Start
4. Get the UUIDs of the VMs with the command
1 |
xe vm-list |
1 2 3 |
uuid ( RO) : d973acd0-a83d-e778-5366-10dae9e02e48 name-label ( RW): W2k8R2-VPNBK power-state ( RO): halted |
5. Copy the UUID of the VMs you want to Auto-Start, then following the command below to run for each VMs to Auto-Start
1 |
xe vm-param-set uuid=d973acd0-a83d-e778-5366-10dae9e02e48 other-config:auto_poweron=true |
Leave a Reply