XenServer Console/VNC Code Examples

Adding a console to your product

Many developers want to incorporate console access into their products or tools to create a XenCenter like interface.

  • The Java Console Code example: we have a java code example available detailed in:  http://blogs.citrix.com/2011/02/11/xenserverconsole-examples/; the feedback we get from comments left on the blog comments helps us decide how to evolve such examples so if you have ideas please do comment.
    • Some additional instructions on build and compilation and run are available for this example, here

 

Other Code Examples

Whilst we can't endorse the quality of third party code we are aware that there are many devleopers open osurcing their own code examples and that many users have found elements of these products or tools useful whilst developing their own consoles 

 

  • One of our developers' has released his own experimental project for non-windows monitoring of XenServer, XAC, the code and solution is available on GitHub, so you can regard it as very complex code example. This is not intended to be a supported product and the code should be regarded as such. This is a particularly useful example for those developing against XenServer or XCP as it showcases many elements a developer might like to incorporate into a product to ensure optimal behaviour upon XenServer. It's a pure javascript client-side application that uses the xen-api to drive a XenServer or XCP instance. It maintains a client-side database cache using the XenAPI event mechanism, and also has example code for parsing the RRD XML and rendering the consoles using some code from NoVNC adapted for xapi.

About XenServer

XenServer is the leading open source virtualization platform, powered by the Xen Project hypervisor and the XAPI toolstack. It is used in the world's largest clouds and enterprises.
 
Commercial support for XenServer is available from Citrix.