Hi, your suggestion gives me some idea: I got it working eventually with syntax: fence_vbox --ip 10.0.2.2 --username=AW23321 --identity-file=/root/.ssh/id_rsa --plug=centos1 --host-os=windows --action=status --vboxmanage-path="/cygdrive/c/Program\ Files/Oracle/VirtualBox/VBoxManage"
I had to put the path to vboxmanage.exe that is accessible through ssh on cygwin. The final pcs command that seems to work for me: pcs stonith create vbox-fencing fence_vbox ip=10.0.2.2 ipaddr=10.0.2.2 login=AW23321 username=AW23321 identity_file=/root/.ssh/id_rsa host_os=windows pcmk_host_check=static-list pcmk_host_list="centos1 centos2" vboxmanage_path="/cygdrive/c/Program\ Files/Oracle/VirtualBox/VBoxManage" op monitor interval=60 I'll move on with my configuration as it not done yet :) Thanks :) Pozdrawiam, Arek 2017-07-05 11:19 GMT+02:00 Oyvind Albrigtsen <oalbr...@redhat.com>: > You might have to use "--host-os windows". You can run it > with -v for more info about why it's failing. > > > On 05/07/17 10:18 +0200, ArekW wrote: >> >> Hi, >> >> I managed to run the Pacemaker Cluster From Scratch on two CentOS on >> VirtualBox. I’m stuck at fence_vbox with similar problem as Durwin’s: >> The script doesn’t accept the plug parameter: >> >> [root@nfsnode1 ~]# fence_vbox --ip 10.0.2.2 --username=AW23321 >> --identity-file=/root/.ssh/id_rsa --plug=CentOS1 >> Failed: You have to enter existing name/UUID of virtual machine! >> >> [root@nfsnode1 ~]# fence_vbox --ip 10.0.2.2 --username=AW23321 >> --identity-file=/root/.ssh/id_rsa >> --plug={03991a96-bbdc-4a8d-8123-298e41c24342} >> Unable to connect/login to fencing device >> >> [root@nfsnode1 ~]# fence_vbox --ip 10.0.2.2 --username=AW23321 >> --identity-file=/root/.ssh/id_rsa >> --plug=03991a96-bbdc-4a8d-8123-298e41c24342 >> Failed: You have to enter existing name/UUID of virtual machine! >> >> The login and key is working OK. The passwordless authentication from >> guest to VirtualBox host is working also (on Cygwin): >> >> [root@nfsnode1 ~]# ssh -l AW23321 10.0.2.2 -i /root/.ssh/id_rsa >> Last login: Wed Jul 5 09:41:50 2017 from 127.0.0.1 >> AW23321@CEN4034397 ~ >> $ /cygdrive/c/Program\ Files/Oracle/VirtualBox/VBoxManage --nologo list >> vms >> "CentOS1" {03991a96-bbdc-4a8d-8123-298e41c24342} >> "CentOS2" {f7eb05e5-7cfb-4ef3-a97f-e6cafa612b0f} >> >> Without a key: >> [root@nfsnode1 ~]# ssh -l AW23321 10.0.2.2 >> Last login: Wed Jul 5 09:37:25 2017 from 127.0.0.1 >> AW23321@CEN4034397 ~ >> $ >> >> What else can be done?<div >> id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table >> style="border-top: 1px solid #D3D4DE;"> >> <tr> >> <td style="width: 55px; padding-top: 18px;"><a >> >> href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" >> target="_blank"><img >> >> src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" >> alt="" width="46" height="29" style="width: 46px; height: 29px;" >> /></a></td> >> <td style="width: 470px; padding-top: 17px; color: >> #41424e; >> font-size: 13px; font-family: Arial, Helvetica, sans-serif; >> line-height: 18px;">Wolny od wirusów. <a >> >> href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" >> target="_blank" style="color: #4453ea;">www.avg.com</a> >> </td> >> </tr> >> </table> >> <a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" >> height="1"></a></div> >> >> _______________________________________________ >> Users mailing list: Users@clusterlabs.org >> http://lists.clusterlabs.org/mailman/listinfo/users >> >> Project Home: http://www.clusterlabs.org >> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf >> Bugs: http://bugs.clusterlabs.org > > > _______________________________________________ > Users mailing list: Users@clusterlabs.org > http://lists.clusterlabs.org/mailman/listinfo/users > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: http://bugs.clusterlabs.org _______________________________________________ Users mailing list: Users@clusterlabs.org http://lists.clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org