status of xen api
I didn't get a reply from xen-api, but I urgently need this information.
Can anyone help me?
Thanks.
----- Forwarded message -----
Hello,
I've been developing an application for managing VMs in Perl, using the Xen API as described in docs/xen-api.
My current version of Xen is bf8eacda088f, "Added tag 3.1.2-rc1 for changeset 3855356c701d623daf2e8bef13dd4471f a9b3c91".
However, I'm finding a lot of dificulties:
* Some methods are still not implemented, like VM.name_description, but those aren't very important.
* I can't get the VDIs for a VBD (nor the VDIs for a SR). How am I supposed to get the backend of a VM's vbd?
If I call the VBD.get_VDI, I get an empty value for the ref (communication attached).
* my network object has no PIFs, is this normal?
* In an older version of Xend (3.0.3), the host.get_log didn't escape the log correctly. Is this fixed? I can't reproduce on my host, but it could be something missing in my log.
Is there any documentation about the correct procedure and values for:
1. creating a VM, vbd or a vif (pif & pbd?);
2. attaching/detaching vbds/vifs from VMs.
Thank you for your help.
Regards,
Luciano Rocha
Signature · 2 lines
lfr 0/0
POST / HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE, close
Host: localhost:9363
User-Agent: XenAPI/0.1
Content-Length: 285
Content-Type: text/xml
<?xml version="1.0" encoding="us-ascii"?><methodCall><methodName>VBD.get_VDI</methodName><params><param><value><string>0bfc383e-7fe7-e11b-5285-8a06d03277f6</string></value></param><param><value><string>1f211a23-83ce-94c3-b17e-cf48e5987760</string></value></param></params></methodCall>
HTTP/1.1 200 OK
Server: BaseHTTP/0.3 Python/2.5
Date: Fri, 26 Oct 2007 14:36:34 GMT
Content-Type: text/xml
Content-Length: 277
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><struct>
<member>
<name>Status</name>
<value><string>Success</string></value>
</member>
<member>
<name>Value</name>
<value><string></string></value>
</member>
</struct></value>
</param>
</params>
</methodResponse>
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
[email protected] wrote on 10/30/2007 11:26:14 AM:
Quoted 19 lines
I didn't get a reply from xen-api, but I urgently need this information.
Can anyone help me?
Thanks.
----- Forwarded message -----
Hello,
I've been developing an application for managing VMs in Perl, using the Xen API as described in docs/xen-api.
My current version of Xen is
bf8eacda088f, "Added tag 3.1.2-rc1 for changeset3855356c701d623daf2e8bef13dd4471fa9b3c91".However, I'm finding a lot of dificulties:
Quoted 8 lines
* Some methods are still not implemented, like VM.name_description, but those aren't very important.
* I can't get the VDIs for a VBD (nor the VDIs for a SR). How am I supposed to get the backend of a VM's vbd?
If I call the VBD.get_VDI, I get an empty value for the ref (communication attached).
Is this a domain that happens to only have a ramdisk?
If you create a domain with access to a disk and use xm in xen-api mode then does this still happen? To do this you have to activate the 'server' node in /etc/xen/xm-config.xml and add (xen-api-server (( 0.0.0.0:9363 none ))) to /etc/xen/xend-config.sxp.
Quoted 2 lines
* my network object has no PIFs, is this normal?
Not sure about this, though I'd say that the network should have a list of PIFs with at least one PIF in it, which represents 'peth0'.
Quoted 8 lines
* In an older version of Xend (3.0.3), the host.get_log didn't escape the log correctly. Is this fixed? I can't reproduce on my host, but it could be something missing in my log.
Is there any documentation about the correct procedure and values for:
1. creating a VM, vbd or a vif (pif & pbd?);
Have a look at the xen-api documentation and on the xen-api mailing list where people have previously posted their examples, even though it might have a flaw somewhere. Even though this one here might be for PHP, it shows what parameters need to be passed.
http://lists.xensource.com/archives/html/xen-api/2007-10/msg00003.html
Maybe this here is also helpful:
http://xen.begi.net:46984/markup/xen-unstable.hg/tools/examples/xeninfo.pl
I hope I could help.
Stefan
Quoted 4 lines
2. attaching/detaching vbds/vifs from VMs.
Quoted 14 lines
Thank you for your help.
Regards,
Luciano RochaSignature · 8 lines
lfr 0/0 [attachment "comm.txt" deleted by Stefan Berger/Watson/IBM] [attachment "attzg6dn.dat" deleted by Stefan Berger/Watson/IBM] _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 7 lines · Stefan Berger
Quoted 5 lines
* I can't get the VDIs for a VBD (nor the VDIs for a SR). How am I supposed to get the backend of a VM's vbd?
If I call the VBD.get_VDI, I get an empty value for the ref (communication attached).
Is this a domain that happens to only have a ramdisk?
No, it's a domain with a single block (and net) device.
Quoted 4 lines
If you create a domain with access to a disk and use xm in xen-api mode then does this still happen? To do this you have to activate the 'server' node in
/etc/xen/xm-config.xmland add (xen-api-server (( 0.0.0.0:9363 none ))) to/etc/xen/xend-config.sxp.
Thanks for the tip about xen/xend-config.sxp, I'll be able, at least, to capture and analyze the traffic. ;)
And you're correct. With xm in xen-api mode, the newly created VM has the correct VDI entry.
Quoted 5 lines
Quoted 2 lines
* my network object has no PIFs, is this normal?
Not sure about this, though I'd say that the network should have a list of PIFs with at least one PIF in it, which represents 'peth0'.
Hm, I personally don't use peth0. I use a bridge with IP address and attach the real eth0 to the bridge with my distro's usual configuration scripts.
So then, without peth0, this is expected?
Quoted 3 lines
Quoted 1 line
1. creating a VM, vbd or a vif (pif & pbd?);
Have a look at the xen-api documentation
I have following the docs/xen-api specification in xen-testing.hg, and I even made a condensed version:
<http://ftp.gil.di.uminho.pt/pub/users/strange/xenapi.pdf>
Quoted 5 lines
and on the xen-api mailing list
where people have previously posted their examples, even though it might have a flaw somewhere. Even though this one here might be for PHP, it shows what parameters need to be passed.
Quoted 8 lines
http://lists.xensource.com/archives/html/xen-api/2007-10/msg00003.html
Maybe this here is also helpful:
http://xen.begi.net:46984/markup/xen-unstable.hg/tools/examples/xeninfo.pl
I hope I could help.
You helped a lot, thanks.
Signature · 2 lines
lfr 0/0
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
[email protected] wrote on 10/31/2007 08:18:55 AM:
Quoted 12 lines · Stefan Berger
Quoted 7 lines
Quoted 5 lines
* I can't get the VDIs for a VBD (nor the VDIs for a SR). How am I supposed to get the backend of a VM's vbd?
If I call the VBD.get_VDI, I get an empty value for the ref (communication attached).
Is this a domain that happens to only have a ramdisk?
No, it's a domain with a single block (and net) device.
Quoted 1 line
If you create a domain with access to a disk and use xm in xen-api
mode
Quoted 1 line
Quoted 1 line
then does this still happen? To do this you have to activate the
'server'
Quoted 14 lines
Quoted 3 lines
node in
/etc/xen/xm-config.xmland add (xen-api-server (( 0.0.0.0:9363none ))) to
/etc/xen/xend-config.sxp.Thanks for the tip about xen/xend-config.sxp, I'll be able, at least, to capture and analyze the traffic. ;)
And you're correct. With xm in xen-api mode, the newly created VM has the correct VDI entry.
Quoted 4 lines
Quoted 2 lines
* my network object has no PIFs, is this normal?
Not sure about this, though I'd say that the network should have a
list of
Quoted 7 lines
Quoted 1 line
PIFs with at least one PIF in it, which represents 'peth0'.
Hm, I personally don't use peth0. I use a bridge with IP address and attach the real eth0 to the bridge with my distro's usual configuration scripts.
So then, without peth0, this is expected?
Maybe this has changed over time, but at least now peth0 is the physical interface and eth0 is the bridge. So I would expect that now a network object contains a PIF with name 'peth0' and if I remember correctly the last time I check it did.
Stefan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel