Re: [ClusterLabs] Fwd: How to Fence Virtualbox VM with Windows 10 as host.
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 : > 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?> id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"> > style="border-top: 1px solid #D3D4DE;"> >> >> > >> href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"; >> target="_blank">> >> src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"; >> alt="" width="46" height="29" style="width: 46px; height: 29px;" >> /> >> Wolny od wirusów. > >> 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 >> >> >> >> > height="1"> >> >> ___ >> 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
Re: [ClusterLabs] Fwd: How to Fence Virtualbox VM with Windows 10 as host.
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? http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"; target="_blank">https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"; alt="" width="46" height="29" style="width: 46px; height: 29px;" /> Wolny od wirusów. 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 ___ 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
[ClusterLabs] Fwd: How to Fence Virtualbox VM with Windows 10 as host.
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? http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"; target="_blank">https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"; alt="" width="46" height="29" style="width: 46px; height: 29px;" /> Wolny od wirusów. 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 ___ 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