Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
20.17. Guest Virtual Machine Retrieval Commands
20.17.1. Displaying the Host Physical Machine Name Link kopierenLink in die Zwischenablage kopiert!
virsh domhostname domain
command displays the specified guest virtual machine's physical host name provided the hypervisor can publish it.
Example 20.39. How to display the host physical machine name
virsh domhostname guest1
# virsh domhostname guest1virsh domhostname guest1
20.17.2. Displaying General Information about a Virtual Machine Link kopierenLink in die Zwischenablage kopiert!
virsh dominfo domain
command displays basic information about a specified guest virtual machine. This command may also be used with the option [--domain] guestname
.
Example 20.40. How to display general information about the guest virtual machine
20.17.3. Displaying a Virtual Machine's ID Number Link kopierenLink in die Zwischenablage kopiert!
virsh list
includes the ID in its output, the virsh domid domain>|<ID
displays the ID for the guest virtual machine, provided it is running. An ID will change each time you run the virtual machine. If guest virtual machine is shut off, the machine name will be displayed as a series of dashes ('-----'). This command may also be used with the [--domain guestname]
option.
Example 20.41. How to display a virtual machine's ID number
virsh domid guest1
# virsh domid guest1virsh domid guest1
8
20.17.4. Aborting Running Jobs on a Guest Virtual Machine Link kopierenLink in die Zwischenablage kopiert!
virsh domjobabort domain
command aborts the currently running job on the specified guest virtual machine. This command may also be used with the [--domain guestname]
option.
Example 20.42. How to abort a running job on a guest virtual machine
virsh domjobabort guest1
# virsh domjobabort guest1virsh domjobabort guest1
20.17.5. Displaying Information about Jobs Running on the Guest Virtual Machine Link kopierenLink in die Zwischenablage kopiert!
virsh domjobinfo domain
command displays information about jobs running on the specified guest virtual machine, including migration statistics. This command may also be used with the [--domain guestname]
option, or with the --completed
option to return information on the statistics of a recently completed job.
Example 20.43. How to display statistical feedback
20.17.6. Displaying the Guest Virtual Machine's Name Link kopierenLink in die Zwischenablage kopiert!
virsh domname domainID
command displays the name guest virtual machine name, given its ID or UUID. Although the virsh list --all
command will also display the guest virtual machine's name, this command only lists the guest's name.
Example 20.44. How to display the name of the guest virtual machine
virsh domname 8
# virsh domname 8virsh domname 8
guest1
20.17.7. Displaying the Virtual Machine's State Link kopierenLink in die Zwischenablage kopiert!
virsh domstate domain
command displays the state of the given guest virtual machine. Using the --reason
argument will also display the reason for the displayed state. This command may also be used with the [--domain guestname]
option, as well as the --reason
option, which displays the reason for the state. If the command reveals an error, you should run the command virsh domblkerror
. See Section 20.12.7, “Displaying Errors on Block Devices” for more details.
Example 20.45. How to display the guest virtual machine's current state
virsh domstate guest1
# virsh domstate guest1virsh domstate guest1
running
20.17.8. Displaying the Connection State to the Virtual Machine Link kopierenLink in die Zwischenablage kopiert!
virsh domcontrol domain
displays the state of an interface to the hypervisor that is used to control a specified guest virtual machine. 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 20.46. How to display the guest virtual machine's interface state
virsh domcontrol guest1
# virsh domcontrol guest1virsh domcontrol guest1
ok