* XEN-API problems
@ 2007-06-13 8:22 Jacek Konieczny
2007-06-13 11:29 ` SwissCenter HelpDesk
2007-06-14 11:26 ` mem 0MB, pfn out of range (Re: XEN-API problems) Jacek Konieczny
0 siblings, 2 replies; 5+ messages in thread
From: Jacek Konieczny @ 2007-06-13 8:22 UTC (permalink / raw)
To: xen-devel
Hello,
For my current project I need to automate domain creation and some basic
management. I thought XEN-API may be a better way than writing xm config
and calling xm to create and manage domains.
Unfortunately the XEN-API documentation and examples I found seem a bit
outdated. By trial and error I managed to login to xend and create a VM
with a few VBDs (but I still don't quite understand how those VBD/VDI/SR
work)... however when trying to start the VM I get:
{'Status': 'Failure', 'ErrorDescription': ['INTERNAL_ERROR', "(11, 'Resource temporarily unavailable')"]}
In xend.log I get:
[2007-06-13 10:13:43 1905] ERROR (XendDomainInfo:1540) XendDomainInfo.initDomain: exception occurred
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 1517, in _initDomain
File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 112, in createImage
File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 131, in createDomain
File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 517, in buildDomain
File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 215, in buildDomain
Error: (11, 'Resource temporarily unavailable')
[2007-06-13 10:13:43 1905] ERROR (XendDomainInfo:416) VM start failed
There is nothing interesting in the "xm dmesg" output, despite "loglvl=all
guest_loglvl=all" xen boot options.
How can I find out what went wrong? Is the XEN-API usable at all? Is there any up-to-date
XEN-API documentation and/or examples available?
Greets,
Jacek
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XEN-API problems
2007-06-13 8:22 XEN-API problems Jacek Konieczny
@ 2007-06-13 11:29 ` SwissCenter HelpDesk
2007-06-29 14:16 ` Saurabh Garg
2007-06-14 11:26 ` mem 0MB, pfn out of range (Re: XEN-API problems) Jacek Konieczny
1 sibling, 1 reply; 5+ messages in thread
From: SwissCenter HelpDesk @ 2007-06-13 11:29 UTC (permalink / raw)
To: Jacek Konieczny; +Cc: xen-devel
Hello,
I am currently having the same problems. I wasn't able to create and
start a VM using the Xen-API
(xen 3.1 built from source).
Any help and/or real world examples would be really appreciated.
Best regards,
--
Sébastien Riccio
SwissCenter / OpenBusiness SA
sr@openbusiness.com
Jacek Konieczny a écrit :
> Hello,
>
> For my current project I need to automate domain creation and some basic
> management. I thought XEN-API may be a better way than writing xm config
> and calling xm to create and manage domains.
>
> Unfortunately the XEN-API documentation and examples I found seem a bit
> outdated. By trial and error I managed to login to xend and create a VM
> with a few VBDs (but I still don't quite understand how those VBD/VDI/SR
> work)... however when trying to start the VM I get:
>
> {'Status': 'Failure', 'ErrorDescription': ['INTERNAL_ERROR', "(11, 'Resource temporarily unavailable')"]}
>
> In xend.log I get:
>
> [2007-06-13 10:13:43 1905] ERROR (XendDomainInfo:1540) XendDomainInfo.initDomain: exception occurred
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 1517, in _initDomain
> File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 112, in createImage
> File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 131, in createDomain
> File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 517, in buildDomain
> File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 215, in buildDomain
> Error: (11, 'Resource temporarily unavailable')
> [2007-06-13 10:13:43 1905] ERROR (XendDomainInfo:416) VM start failed
>
> There is nothing interesting in the "xm dmesg" output, despite "loglvl=all
> guest_loglvl=all" xen boot options.
>
> How can I find out what went wrong? Is the XEN-API usable at all? Is there any up-to-date
> XEN-API documentation and/or examples available?
>
> Greets,
> Jacek
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* mem 0MB, pfn out of range (Re: XEN-API problems)
2007-06-13 8:22 XEN-API problems Jacek Konieczny
2007-06-13 11:29 ` SwissCenter HelpDesk
@ 2007-06-14 11:26 ` Jacek Konieczny
2007-06-14 11:48 ` Jacek Konieczny
1 sibling, 1 reply; 5+ messages in thread
From: Jacek Konieczny @ 2007-06-14 11:26 UTC (permalink / raw)
To: xen-devel
On Wed, Jun 13, 2007 at 10:22:01AM +0200, Jacek Konieczny wrote:
> Unfortunately the XEN-API documentation and examples I found seem a bit
> outdated. By trial and error I managed to login to xend and create a VM
> with a few VBDs (but I still don't quite understand how those VBD/VDI/SR
> work)... however when trying to start the VM I get:
>
> {'Status': 'Failure', 'ErrorDescription': ['INTERNAL_ERROR', "(11, 'Resource temporarily unavailable')"]}
After enabling some Xend debugging I got the error message in
domain-builder-ng.log:
xc_dom_mem_init: mem 0 MB, pages 0x0 pages, 4k each
xc_dom_mem_init: 0x0 pages
xc_dom_boot_mem_init: called
x86_compat: guest xen-3.0-x86_32p, address size 32
xc_dom_build_image: called
xc_dom_alloc_segment: kernel : 0xc0100000 -> 0xc035b000 (pfn 0x100 + 0x25b pages)
xc_dom_pfn_to_ptr: pfn out of range (0x100 > 0x0)
xc_dom_release: called
It seems the problem is "pfn out of range" and this may be related to
the "mem 0 MB".
Maybe this helps somehow? I will investigate further.
Greets,
Jacek
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mem 0MB, pfn out of range (Re: XEN-API problems)
2007-06-14 11:26 ` mem 0MB, pfn out of range (Re: XEN-API problems) Jacek Konieczny
@ 2007-06-14 11:48 ` Jacek Konieczny
0 siblings, 0 replies; 5+ messages in thread
From: Jacek Konieczny @ 2007-06-14 11:48 UTC (permalink / raw)
To: xen-devel
On Thu, Jun 14, 2007 at 01:26:59PM +0200, Jacek Konieczny wrote:
> xc_dom_mem_init: mem 0 MB, pages 0x0 pages, 4k each
> xc_dom_mem_init: 0x0 pages
Ok, it was my mistake: domain parameters memory_* are in bytes, not MiBs.
Now the XEN-API created domain boots :-)
Greets,
Jacek
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XEN-API problems
2007-06-13 11:29 ` SwissCenter HelpDesk
@ 2007-06-29 14:16 ` Saurabh Garg
0 siblings, 0 replies; 5+ messages in thread
From: Saurabh Garg @ 2007-06-29 14:16 UTC (permalink / raw)
To: SwissCenter HelpDesk; +Cc: xen-devel, Jacek Konieczny
Hi,
This usually happens when the memory comes to be zero. Please verify the
logs to see if "memsize" is appearing as zero. Also verify that you are
setting the memory (dynamic/static) during creation time to be in bytes.
Hope this helps...
Saurabh.
SwissCenter HelpDesk wrote:
> Hello,
>
> I am currently having the same problems. I wasn't able to create and
> start a VM using the Xen-API
> (xen 3.1 built from source).
>
> Any help and/or real world examples would be really appreciated.
>
> Best regards,
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-06-29 14:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-13 8:22 XEN-API problems Jacek Konieczny
2007-06-13 11:29 ` SwissCenter HelpDesk
2007-06-29 14:16 ` Saurabh Garg
2007-06-14 11:26 ` mem 0MB, pfn out of range (Re: XEN-API problems) Jacek Konieczny
2007-06-14 11:48 ` Jacek Konieczny
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.