Ask Your Question

Is it safe to use WMI python library to manage HyperV driver from a Linux host?

asked 2013-04-10 13:43:43 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm a newbie to Openstack and recently got started to look in to it. The task in hand is to look for feasible ways to manage/configure HyperV (2012 server) from a Linux host (SL 6.1). Earlier to the Openstack I was looking into "OpenWSMAN" (open source implementation for WSMAN specification by DTMF). The issue their was Openssh used by OpenWSMAN to establish connections to HyperV does not support "Kerberos" authentication and requires the server authentication to be lowered to "Basic".

Browsing through "nova-compute" code it seems the HyperV driver is using "WMI" python library; does anyone knows if this library suffers from any such deficiencies?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-05-15 04:41:28 -0500

fifieldt gravatar image



The Python WMI module is a lightweight wrapper on top of the pywin32 extensions, and hides some of the messy plumbing needed to get Python to talk to the WMI API

So the package we really need to worry about is pywin32.

The information I can find online indicates that pywin32 uses the SSPI methods to support kerberos, so I would expect it to work.

In searching, I also found a dedicated python library for kerberos through SSPI:

So, if you try WMI/pywin32 and it does not work, you might consider starting a discussion on the development mailing list ( about ensuring that OpenStack can do what you need it to :)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-04-10 13:43:43 -0500

Seen: 1,536 times

Last updated: May 15 '13