Preface
As we all know, in earlier versions of XenServer (before 6.0), when starting XenServer, you can choose to automatically start the virtual machine installed in it. This feature was cancelled by Citrix in XenServer 6.0 because it interferes with the compatibility of XenServer's HA (High Availability) and Failover (Failover) features. However, if you only run one XenServer, this function is still very good.
In XenServer 6.0, it is still possible to start the virtual machine automatically. This requires turning on the self-start function on the "Pool Level" and setting it using the command line on the virtual machine that needs to be self-start.
1. Get the UUID of Pool
Enter the following command on the console command line and press Enter:
xe pool-list
The subsequent results are similar to the following:
uuid ( RO) : b99e3b3f-ea7a-9484-4827-87271b4b016b name-label ( RW): TestPool name-description ( RW): master ( RO): 74fc086b-8c89-4918-b69e-369fcb19847d default-SR ( RW): bebb142a-d986-acac-d4f4-636de937d28b above,“b99e3b3f-ea7a-9484-4827-87271b4b016b”that isPoolofUUID
2. Set up the Pool self-start
Copy this UUID, enter the following command and press Enter:
xe pool-param-set uuid=b99e3b3f-ea7a-9484-4827-87271b4b016b other-config:auto_poweron=true
3. Get the UUID of the virtual machine that needs to be set to self-start
Taking a virtual machine with the name "W2K08" as an example, enter the following command and press Enter:
xe vm-list name-label="W2K08"
The results appear similar to the following:
uuid ( RO) : 5ac81c4e-3d4c-bd70-355e-d1a1c2d7716d name-label ( RW): W2K08 power-state ( RO): running
From the above, we can see that the UUID of the virtual machine named "W2K08" is: 5ac81c4e-3d4c-bd70-355e-d1a1c2d7716d
【illustrate】
If you want to get the result of the introduction (i.e., you only want to output UUD), you can use the following command:
xe vm-list name-label="W2K08" params=uuid --minimal
4. Set up the virtual machine's self-start
Copy the UUID of the virtual machine from the output results in the above "three", then enter the following command and press Enter:
xe vm-param-set uuid=5ac81c4e-3d4c-bd70-355e-d1a1c2d7716d other-config:auto_poweron=true
After 4 steps above, the virtual machine self-start settings in XenServer 6.0 are completed.
Summarize
The above is the method of setting up the XenServer virtual machine to automatically start. I hope the content of this article will be of some help to everyone learn or use XenServer. If you have any questions, you can leave a message to communicate.