Did you know that you can navigate the posts by swiping left and right?

How to setup auto start a virtual machine on Xenserver

14 Feb 2017 . category: sysadmin . Comments
#sysadmin #xenserver #vm

How to setup auto start a virtual machine on Xenserver

To setup auto start a virtual machine, we have to enable auto-start on Xenserver then enable auto-start the VM.

  1. Enable auto-start on Xenserver
    • get the list of the pools on the xenserver

# xe pool-list
uuid ( RO)                : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

  • copy the UUID and use:

# xe pool-param-set uuid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX other-config:auto_poweron=true

  1. Enable auto-start the VM
    • get the UUIDs of the VM that we want to auto-start

# xe vm-list 
uuid ( RO)           : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
     name-label ( RW): Control domain on host: XenSever_host_name
    power-state ( RO): running
 
 
uuid ( RO)           : AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA
     name-label ( RW): VM_host_name_1
    power-state ( RO): running
 
 
uuid ( RO)           : BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB
     name-label ( RW): VM_host_name_2
    power-state ( RO): running

  • Copy the UUIDs and type the following command:

# xe vm-param-set uuid=AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA other-config:auto_poweron=true

Done!


Me

Harry Nguyen is an awesome person. Abosolutely true!.