简体   繁体   中英

Communication between Windows Client and Linux Server

I want to provide my colleagues with an interface (using Windows Forms or WPF) to control the states of virtual machines (KVM based) on a linux host. On the command line of this server, I'm using a tool, called libvirt , which provides python bindings to access its functionality.

What whould be the best pratice to remotely access several function like libvirt or reading logfiles on the server. I thought about a REST Full Webservice generated by Python. Are there other viable options to consider?

Thanks,
Henrik

I'd develop an intranet web application, using any python web framework of choice.

That way you don't have to develop/install software on your client. They just point the browser and it works.

Proxmox VE是管理基于KVM(和OpenVZ)的虚拟机的完整解决方案,包括一个全面的Web控制台,因此也许您无需开发任何内容就能获得完整的解决方案?

Because you are using a server-side tool that has Python bindings, you should give a serious look at PYRO which is a Python RPC library.

http://pyro.sourceforge.net/

To use this you would also have to use Python on the client, but that shouldn't be a problem. If you haven't start writing your client, then you could do it all in IronPython. Or, if you need to add this to an already existing client, then you could still bind in either IronPython or CPython as an embedded scripting engine.

For more on PYRO and Ironpython, see this wiki page http://www.razorvine.net/python/PyroAndIronpython

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM