5.9 Shutting Down a User Domain From Within the Management Domain

The following procedure describes how to shut down a user domain from within a management domain:

  1. Connect as the root user to the management domain.
  2. Use the following command to shut down the domain:
    # xm shutdown DomainName -w

    In the preceding command, DomainName is the name of the domain.

    Note:

    Use the -w option so that the xm command waits until the domain shutdown completes before returning. The xm shutdown command performs the same orderly shutdown as runningshutdown -h now within the user domain.

    To shut down all user domains within the management domain, use the following command:

    # xm shutdown -a -w
    

    The following is an example of the output:

    Domain dm01db01vm04 terminated
    All domains terminated