<tt><font size=2>Marek Grac <mgrac@redhat.com> wrote on 01/25/2017
01:33:07 AM:<br>
<br>
> From: Marek Grac <mgrac@redhat.com></font></tt>
<br><tt><font size=2>> To: Cluster Labs - All topics related to open-source
clustering <br>
> welcomed <users@clusterlabs.org></font></tt>
<br><tt><font size=2>> Date: 01/25/2017 01:34 AM</font></tt>
<br><tt><font size=2>> Subject: Re: [ClusterLabs] How to Fence Virtualbox
VM with Windows 10 as host.</font></tt>
<br><tt><font size=2>> <br>
> Hi,</font></tt>
<br><tt><font size=2>> <br>
> On Tue, Jan 24, 2017 at 9:06 PM, <durwin@mgtsciences.com> wrote:</font></tt>
<br><tt><font size=2>> This is my first attempt at clustering, just
so you know the level <br>
> required to convey ideas. <br>
> <br>
> I have Windows 10 running Virtualbox with 2 VMs running Fedora 25. 
<br>
> I have followed 'Pacemaker 1.1 Clusters from Scratch' 9th edition
up<br>
> through chapter 7.  It works.  I am uncertain as how to
fence the <br>
> VMs with Windows 10 as host.  The output from 'pcs stonith describe
<br>
> fence_vbox' is below. <br>
> <br>
> I have Cygwin installed with sshd configured and running.  I
can <br>
> remotely ssh into the Windows 10 machine.  I can add the keys
from <br>
> the machines into Windows authorized_keys so no user/password is <br>
> required.  I however do not know which of the options are <br>
> *required*.  Nor do I know what the options should be set to. 
Some <br>
> of the options *are* obvious.  If I use *only* required ones,
ipaddr<br>
> is obvious, login is obvious, but not sure what port is.  Would
it <br>
> be the name of the VM as Virtualbox knows it? <br>
> <br>
>         ipaddr (required): IP address or hostname
of fencing device <br>
>         login (required): Login name <br>
>         port (required): Physical plug number
on device, UUID or <br>
> identification of machine </font></tt>
<br>
<br><tt><font size=2>I entered the command below and got the message below.</font></tt>
<br>
<br><tt><font size=2>fc25> fence_vbox --ip=172.23.93.249 --username=durwin
--identity-file=/root/.ssh/id_rsa.pub --plug="5bca543d-6391-4867-b58f-1db68da1a933"</font></tt>
<br><tt><font size=2>Failed: You have to enter existing name/UUID of virtual
machine!</font></tt>
<br>
<br><tt><font size=2>Please use '-h' for usage</font></tt>
<br>
<br>
<br><tt><font size=2>Any ideas?</font></tt>
<br>
<br><tt><font size=2>Thank you,</font></tt>
<br>
<br><tt><font size=2>Durwin</font></tt>
<br><tt><font size=2><br>
> <br>
> Does the host require anything running on it to support the fence? 
<br>
> Do I require any other options in addition to 'required'?  How
do I <br>
> test it from a nodes commandline? </font></tt>
<br><tt><font size=2>> <br>
> You can take  a look at manual page of fence_vbox (or run fence_vbox--help). </font></tt>
<br><tt><font size=2>> <br>
> In your case it should be enough to set:</font></tt>
<br><tt><font size=2>> * ipaddr</font></tt>
<br><tt><font size=2>> * login</font></tt>
<br><tt><font size=2>> * port (= node to shutdown)</font></tt>
<br><tt><font size=2>> * identity_file (= private key)</font></tt>
<br><tt><font size=2>> <br>
> m,_______________________________________________<br>
> Users mailing list: Users@clusterlabs.org<br>
> </font></tt><a href=http://lists.clusterlabs.org/mailman/listinfo/users><tt><font size=2>http://lists.clusterlabs.org/mailman/listinfo/users</font></tt></a><tt><font size=2><br>
> <br>
> Project Home: </font></tt><a href=http://www.clusterlabs.org/><tt><font size=2>http://www.clusterlabs.org</font></tt></a><tt><font size=2><br>
> Getting started: </font></tt><a href=http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf><tt><font size=2>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</font></tt></a><tt><font size=2><br>
> Bugs: </font></tt><a href=http://bugs.clusterlabs.org/><tt><font size=2>http://bugs.clusterlabs.org</font></tt></a><tt><font size=2><br>
</font></tt><font size=2 face="sans-serif"><br>
<br>
<br>
This email message and any attachments are for the sole use of the intended
recipient(s) and may contain proprietary and/or confidential information
which may be privileged or otherwise protected from disclosure. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient(s), please contact the sender by reply email and destroy
the original message and any copies of the message as well as any attachments
to the original message.</font>