WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] XCP Feature propose - send/receive OS information using in

To: v.tolstov@xxxxxxxxx
Subject: Re: [Xen-API] XCP Feature propose - send/receive OS information using introspection
From: Marco Sinhoreli <msinhore@xxxxxxxxx>
Date: Mon, 20 Dec 2010 14:11:38 -0200
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, Dave Scott <Dave.Scott@xxxxxxxxxxxxx>, xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 20 Dec 2010 08:13:28 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=wsheIyIwNAOoaS8qj3fAFAFN4QeVaiwGCA/vEcf6Q70=; b=eZJOByhFnWPemrwnwm1c4ASK1f93VwGO2GTV/qrDbHflNZ8BRPh0+AZXO/KHEcmvwF 8btyULRjTsmvhnkfr5C/8MVu+u3Y5Mby/Op0oRtUhiuIVt3RzqkcRnjsFhH1Q7ctMUGq GZBtPRnk5N2Anq48sCRpG2zIbwcFVBMSzA5RI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=qzivzHl/OVeXT/EBgNtDLQmjj9VMAg1CRdM//otUo2yHQboxMAf5NW/rueOYSXFQjj hTI1nneC8nYPvzKtylU9y9EZV3NQE+MHapVxRYU+aJqZQycDRXyBq9JJeHTyknPzXOMy gLLx+qaOd4jCgzkKtY56Lf+nW+NUyOGWkQBLc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1291903672.30565.13.camel@vase>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTinRZH68-QHdj_MuRvvGAuZF=R2u=zXv6kti6nV8@xxxxxxxxxxxxxx> <81A73678E76EA642801C8F2E4823AD21933254B577@xxxxxxxxxxxxxxxxxxxxxxxxx> <AANLkTi=HyU2EDZnusoLkNxnGLPwwvLn=f7Srf33SBf15@xxxxxxxxxxxxxx> <1291848114.2814.1.camel@mobile> <AANLkTi=9X3zQp0L01NpvyT6TghssSaBk1rDpa1_oTuLT@xxxxxxxxxxxxxx> <1291903672.30565.13.camel@vase>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
I was trying some xenstore functions using the XenAPI and I think it
not write the data on-line:

session = XenAPI.Session(url)
session.xenapi.login_with_password(username, password)
vm=session.xenapi.VM.get_by_uuid('31064e39-71d6-7a30-593d-b3d0e2db1552')
session.xenapi.VM.add_to_xenstore_data(vm, 'orquestra', 'teste')
print session.xenapi.VM.get_xenstore_data(vm)


It is running ok but this information isn't showed into the VM using
xenstore-read while its running. I think this function is to set only
when the VM is halted.

Using xenstore directly in domain0 I can send and receive data between
domain0 and domainU. I'm learning the toolstack to check if it is
simple to implement.

Any ideia?



Cheers!


On Thu, Dec 9, 2010 at 12:07 PM, Vasiliy G Tolstov <v.tolstov@xxxxxxxxx> wrote:
> On Thu, 2010-12-09 at 12:02 -0200, Marco Sinhoreli wrote:
>> Nice idea to have multiple console support. Is it supported in xen for
>> paravirt and HVM?
>>
>
> It already done by Stefano on it pvhvm branch (currently it merges to
> 2.6.37 linux kernel tree). After that all guest daemons can read/write
> to/from serial port like spice vdagent in qemu/kvm.
>
>
>> On Wed, Dec 8, 2010 at 8:41 PM, Vasiliy G Tolstov <v.tolstov@xxxxxxxxx> 
>> wrote:
>> > On Wed, 2010-12-08 at 17:00 -0200, Marco Sinhoreli wrote:
>> >> Hi Dave:
>> >>
>> >> In our case, we need to control if the user requesting a guest remote
>> >> console will have the xvc0 without a unix user connected. I think to
>> >> use the xen introspection mechanism and a daemon in-guest to
>> >> communicate if the console is locked or free. Basically, in our system
>> >> using the xenapi, we can create a method to request that and receive
>> >> this information. More important is, maintain this 3rd part open to
>> >> cloud providers create themselves control systems.
>> >>
>> >> Any suggestion?
>> >
>> > I like qemu/kvm based solution like virtio-serial. And Stefano provide
>> > multiply console support - i think this very interesting feature to
>> > write domU daemon that provides info. Some other solution - XenAccess.
>> > But it more complicated and i don't know much more about it.
>> >
>> >
>> >
>>
>>
>>
>
>
> --
> Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
> Selfip.Ru
>
>



-- 
Marco Sinhoreli

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api