Using library against remote Hyper-V server

Apr 30, 2011 at 8:06 AM

Just thought I'd share this tip. I believe Hyper-V WMI interface, etc. generally designed to run locally on Hyper-V server. Running it remotely will require some creative thought (PSExec.exe? remote Windows/web service? etc.) and you might run into Windows UAC issues.

One way is to use an embedded web server that runs this project's library for example, and if need be, start the server with "Run As Administrator" on Hyper-V server to get UAC admin rights. The server then listens for requests to invoke library features to manage the Hyper-V VMs.

For a web server base that can be used for this check out the link below, though it's really an XML-RPC server rather than basic HTTP/web

Apr 30, 2011 at 8:10 AM

I'm open to other implementing that approach. Personally I want to explore the possibility of using WMI remotely (subject to permissions - perhaps depend on HVremote - for non-domain scenarios).

Apr 30, 2011 at 8:16 AM

Thanks for sharing. Didn't know about HVRemote. That may be useful for me.

One drawback of that is that remote WMI requires the client to be of recent OS (Windows 7 / 2008 / Vista). I guess with MS phasing out support for XP / 2003 that's not a big deal. But I personally hate being restricted to a small set of OSes.

Using something like an embedded web server allows the client to be an older OS or even non-Windows like Linux.