How to configure Xen DomU's to shutdown when Dom0 is stopped
This document (3029956) is provided subject to the disclaimer at the end of this document.
Environment
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
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 SUSE.
- Shutdown the DomU
- Export the configuration of the Xen Domu
xm 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/vm
cd /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 line
on_xend_stop="shutdown"
- Save and close the file
- Re-import the new configuration file
xm new -f sles10
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:3029956
- Creation Date: 04-Jan-2008
- Modified Date:23-Feb-2021
-
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com