Installation guide

vcpupin
Controls the virtual CPU affinity of a guest.
domblkstat
Displays block device statistics for a running
guest.
domifstat
Displays network interface statistics for a
running guest.
attach-device
Attach a device to a guest, using a device
definition in an XML file.
attach-disk
Attaches a new disk device to a guest.
attach-interface
Attaches a new network interface to a guest.
detach-device
Detach a device from a guest, takes the same
kind of XML descriptions as command
attach-
device
.
detach-disk
Detach a disk device from a guest.
detach-interface
Detach a network interface from a guest.
domxml-from-native
Convert from native guest configuration format
to domain XML format. See the
virsh
man page
for more details.
domxml-to-native
Convert from domain XML format to native guest
configuration format. See the
virsh
man page
for more details.
Co mman d Descrip t io n
These are miscellaneous virsh options:
T ab le 26 .3. Miscellan eo u s o p t io n s
Co mman d Descrip t io n
version
Displays the version of
virsh
nodeinfo
Outputs information about the hypervisor
Co n n ect in g to t h e h ypervisor
Connect to a hypervisor session with virsh:
# virsh connect {hostname OR URL}
Where <name> is the machine name of the hypervisor. To initiate a read-only connection, append the
above command with -readonly.
Creat in g a virt u al mach in e XML d u mp ( co n f ig u rat io n f ile)
Output a guest's XML configuration file with virsh:
# virsh dumpxml {domain-id, domain-name or domain-uuid}
This command outputs the guest's XML configuration file to standard out (stdout). You can save
the data by piping the output to a file. An example of piping the output to a file called guest.xml:
# virsh dumpxml GuestID > guest.xml
Chapt er 2 6 . Man aging guest s wit h virsh
259