hy guys is possible to use java for example to start a new host? with bash i write this: "xm console 2" can i do it with java? thank a lot and scuse me for my bad english riccardo marfisi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/3 RicK_Murphy <rmarfisi@inwind.it>:> 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@lists.xensource.com http://lists.xensource.com/xen-users
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@inwind.it>: > > > 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@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/3 Pierre-Alain RIVIERE <pariviere@ippon.fr>:> 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.Thanks, wasn''t aware of that, is it for "community" Xen or just XenServer? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
It was first published on the Xen wiki (http://wiki.xensource.com/xenwiki/XenApi at the end of the page) but the link is broken. I use it with the Xen 3.1 OSS edition (Ubuntu 8.04). Never try XenServer but as it is published on the Citrix Website it surely could. It also has been updated recently to allow multiple connections. On Wed, 2008-09-03 at 11:03 +0100, Andy Burns wrote:> 2008/9/3 Pierre-Alain RIVIERE <pariviere@ippon.fr>: > > > 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. > > Thanks, wasn''t aware of that, is it for "community" Xen or just XenServer? > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users