fence_virsh is an I/O Fencing agent which can be used with the virtual machines managed by libvirt. It logs via ssh to a dom0 and there run virsh command, which does all work.
By default, virsh needs root account to do properly work. So you must allow ssh login in your sshd_config.
http://libvirt.org
Fencing action
Force Python regex for command prompt
Force Python regex for command prompt
Identity file (private key) for SSH
Forces agent to use IPv4 addresses only
Forces agent to use IPv6 addresses only
IP address or hostname of fencing device
IP address or hostname of fencing device
TCP/UDP port to use for connection with device
Login name
Login password or passphrase
Script to run to retrieve password
Login password or passphrase
Script to run to retrieve password
Physical plug number on device, UUID or identification of machine
Physical plug number on device, UUID or identification of machine
Use SSH connection
Use SSH connection
SSH options to use
Login name
Disable logging to stderr. Does not affect --verbose or --debug-file or logging to syslog.
Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.
Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).
Write debug information to given file
Write debug information to given file
Display version information and exit
Display help and exit
Separator for plug parameter when specifying more than 1 plug
Separator for CSV created by 'list' operation
Wait X seconds before fencing is started
Disable timeout (true/false) (default: true when run from Pacemaker 2.0+)
Wait X seconds for cmd prompt after login
Missing port returns OFF instead of failure
Test X seconds for status change after ON/OFF
Wait X seconds after issuing ON/OFF
Wait X seconds for cmd prompt after issuing command
Sleep X seconds between status calls during a STONITH action
Count of attempts to retry power on
Use sudo (without password) when calling 3rd party software
Use sudo (without password) when calling 3rd party software
Path to ssh binary
Path to sudo binary