Selected virsh commands
These virsh commands might be useful for you. They are described with a subset of options that are valuable in this context.
Syntax
Where:- <virsh_option>
- Is a generic virsh option.
- <virsh_command>
- Is a virsh command.
For a complete list of the virsh commands, see libvirt.org/virshcmdref.html.
- <command_option>
- Is an option that is specific to the specified virsh command.
Selected generic virsh options
- --help
- Displays the virsh online help.
- --keepalive-interval <interval-in-seconds>
- Sets an interval for sending keepalive messages to the virtual server to confirm the connection between the host and the virtual server. If the virtual server does not answer for a number of times which is defined by the --keepalive-count option, the host closes the connection. Setting the interval to 0 disables this mechanism. The default is 5 seconds.
- --keepalive-count <keepalive-count>
- Sets the number of times keepalive message can be sent without getting an answer from the virtual server without closing the connection. If the keepalive interval is set to 0, this option has no effect. The default is 6.
- --version
- Displays the installed libvirt version.
Example
This example displays the virsh online help of the virsh migrate command:# virsh help migrate
This example increases the keepalive interval of the connection to the host to 10 seconds during a live migration:
# virsh --keepalive-interval 10 migrate --live --persistent --undefinesource \
--timeout 1200 --verbose vserv1 qemu+ssh://kvmhost/system