As we are going to officially support Hyper-V from RHEL6.4 we need to have support in Beaker at least for powering up and powering down virtual guests. I had an idea how to do that via virsh but it is lacking support of hyperv in RHEL6 running on lab controllers. I have filed another RFE on libvirt (bz#884430) but it seems we have very little chances to have it included in RHEL6 in foreseeable future.
I did some research and found out that it should be possible to control Hyper-V guests via openwsman. The situation is complicated by bug in openwsman-python (bz #824277). So only option how to achieve it (since I haven't heard from legal concerning powershell ssh server) would be through wsmancli. However this will take some time to get it working.
Good news, the research is over. I have been successfully able to start up and shutdown virtual guest, I will shortly provide standalone fence script.
Even more good news. The hyper-v power script is in place in Beaker and I can happily announce that it works. :-) Stefanie, thanks for your support while making this happen.
Great to hear that this is running in production. I am re-opening this bug since we would like to ship this script with Beaker for the benefit of other sites.
Created attachment 662697 [details] Hyper-V power control script based on WS-MAN OK, see the script attached.
http://gerrit.beaker-project.org/1900
Verify: Could find hyper-v script on beaker-lab. [root@lab-devel-03 ~]# rpm -qa | grep beaker |xargs rpm -ql | grep hyper-v /usr/lib/python2.6/site-packages/bkr/labcontroller/power-scripts/hyper-v Version: beaker-lab-controller-0.12.1-1.git.133.6c74a92.el6.noarch
Beaker 0.13.1 has been released.