|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-users
Re: [Xen-users] use java to run xm tool 
| The problem with libvirt Java binding is that you need build the JNI
library first. And you also need to setup correctly your libvirt daemon
in case of a remote access (it can be a pain).
Another choice is the Xen API itself. Newer version of the Java Xen API
can be found here : http://community.citrix.com/cdn/xs/sdks with the API
doc itself.
It works pretty well but you have some things to know first :
- you have first to enable the xen-api-server on the Dom0
- install python-pam if you use pam authentication for the
xen-api-server
- you can start a server but you can't create a new one (or more
precisely I've never achieved to). But to start a DomU you have to
register itself with the Dom0 first using 'xm new' not 'xm create'.
On Wed, 2008-09-03 at 09:17 +0100, Andy Burns wrote:
> 2008/9/3 RicK_Murphy <rmarfisi@xxxxxxxxx>:
> 
> > is possible to use java for example to start a new host?
> 
> never used them, but look at
> http://libvirt.org/java.html
> 
> > with bash i write this: "xm console 2"
> > can i do it with java?
> 
> I don't see any way to get a handle to the console though
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
 | 
 |  | 
  
    |  |  |