14.5.20. Domain Retrieval Commands

download PDF
The following commands will display different information about a given domain
  • virsh domhostname domain displays the host name of the specified domain provided the hypervisor can publish it.
  • virsh dominfo domain displays basic information about a specified domain.
  • virsh domuid domain|ID converts a given domain name or ID into a UUID.
  • virsh domid domain|ID converts a given domain name or UUID into an ID.
  • virsh domjobabort domain aborts the currently running job on the specified domain.
  • virsh domjobinfo domain displays information about jobs running on the specified domain, including migration statistics
  • virsh domname domain ID|UUID converts a given domain ID or UUID into a domain name.
  • virsh domstate domain displays the state of the given domain. Using the --reason option will also display the reason for the displayed state.
  • virsh domcontrol domain displays the state of an interface to VMM that were used to control a domain. For states that are not OK or Error, it will also print the number of seconds that have elapsed since the control interface entered the displayed state.

Example 14.2. Example of statistical feedback

In order to get information about the domain, run the following command:
# virsh domjobinfo rhel6
Job type:         Unbounded
Time elapsed:     1603         ms
Data processed:   47.004 MiB
Data remaining:   658.633 MiB
Data total:       1.125 GiB
Memory processed: 47.004 MiB
Memory remaining: 658.633 MiB
Memory total:     1.125 GiB
Constant pages:   114382
Normal pages:     12005
Normal data:      46.895 MiB
Expected downtime: 0            ms
Compression cache: 64.000 MiB
Compressed data:  0.000 B
Compressed pages: 0
Compression cache misses: 12005
Compression overflows: 0
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.