Environment
Novell SUSE Linux Enterprise Server 10
Novell SUSE Linux Enterprise Desktop 10
Novell openSUSE 10.X
Novell Open Enterprise Server 2 (Linux based)
Situation
- DomU's need to be configured to shutdown when the Xend daemon is stopped or restarted
- DomU's need to be configured to shutdown when Dom0 is stopped
Resolution
The result of following this TID is that the Xen virtual machines will be shutdown when the "xend" process on Dom0 is shutdown, or the system is halted, shutdown or rebooted.
For the purposes of this support TID, replace SLES10 with the name of your virtual machine
method 1: use xend configuration information
This method is the preferred method and is recommended by Novell.
- Shutdown the DomU
- Export the configuration of
the Xen Domuxm list -l sles10>sles10.py
- Backup the file in step 1. You may need it if something goes wrong.
- Open the file for editing
- Locate the below line:(on_xend_stop ignore)
- Change it to:(on_xend_stop shutdown)
- Save the file
- Re-import the new
configuration file:xm new -F sles10.py
method 2: use configuration file found in /etc/xen/vm
The files found in /etc/xen/vm are used primarily for the installation of the DomU. If you have used "YaST", "virt-manager" or "xm" commands to make hardware or configuration changes to the DomU, you must use method 1.
- Shutdown the DomU
- Go to /etc/xen/vmcd /etc/xen/vm
- Locate the configuration file for the DomU, it should be named the same as the DomU
- Back up the file
- Open the file for editing
- Add the following lineon_xend_stop="shutdown"
- Save and close the file
- Re-import the new
configuration filexm new -f sles10
Additional Information
Novell Support KB 3466408:
How to auto start XEN VMs after reboot of DOM 0