Hi,<div><br></div><div>Yes that's much better thanks ;)</div><div><br></div><div>Cheers</div><div><br></div><div>Ruben<br><br><div class="gmail_quote">On Wed, May 4, 2011 at 12:09 PM, Prakhar Srivastava <span dir="ltr"><<a href="mailto:prakhar.apj@gmail.com">prakhar.apj@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div>I was facing a similar issue. It seems that Xen 4.1 doesnt understand sched-cred but it does understand<b> sched-credit</b>. To resolve the issue, I changed sched-cred to sched-credit in <b>xenrc</b> file located at /var/tmp/one/vmm/xen/xenrc on the cluster host where xen 4.1 is installed.</div>
<div><br></div><div>Below is the line to change:</div><div><div>export XM_CREDITS="sudo $XM_PATH sched-cred"</div></div><div>to</div><div><div><b>export XM_CREDITS="sudo $XM_PATH sched-credit"</b></div>
</div><div><br></div><div>Everything worked fine thereafter. Hope this helps.</div><div><br></div><div><font color="#888888">Prakhar</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, May 4, 2011 at 2:28 PM, Ruben S. Montero <span dir="ltr"><<a href="mailto:rubensm@dacya.ucm.es" target="_blank">rubensm@dacya.ucm.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>It seems that it is complaining about not having sched-cred, that it is used to implement the capacity distribution set in OpenNebula (a VM with CPU=0.5, will be assigned a proportional amount of credits so it gets half of the credits of a VM with CPU=1.0)</div>
<div><br></div><div>Just edit $ONE_LOCATION/var/lib/remotes/vmm/xen/deploy.sh and comment the line that refers to sched-cred. Use onehost sync (and wait for a monitoring action on the hosts....)</div><div><br></div><div>
<br>
</div><div>Cheers</div><div><br></div><div>Ruben<div><div></div><div><br><br><div class="gmail_quote">On Mon, May 2, 2011 at 5:33 PM, Todd Deshane <span dir="ltr"><<a href="mailto:todd.deshane@xen.org" target="_blank">todd.deshane@xen.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>On Mon, May 2, 2011 at 9:46 AM, Ruben Diez <<a href="mailto:rdiez@cesga.es" target="_blank">rdiez@cesga.es</a>> wrote:<br>
> Hi:<br>
><br>
> we are have problems with Opennebula and a Xen 4.1.0....<br>
><br>
> When we attempt to deploy a machine, the oned.log file says:<br>
> [.....]<br>
> Mon May 2 13:01:24 2011 [LCM][I]: New VM state is BOOT<br>
> Mon May 2 13:01:24 2011 [VMM][I]: Generating deployment file:<br>
> /srv/cloud/one/var/1095/deployment.0<br>
> Mon May 2 13:01:26 2011 [VMM][I]: Command execution fail: 'if [ -x<br>
> "/var/tmp/one/vmm/xen/deploy" ]; then /var/tmp/one/vmm/xen/deploy<br>
> /srv/cloud/one/var//1095/images/deployment.0; else<br>
> exit 42; fi'<br>
> Mon May 2 13:01:26 2011 [VMM][I]: STDERR follows.<br>
> Mon May 2 13:01:26 2011 [VMM][I]: Error: Subcommand sched-cred not found!<br>
> Mon May 2 13:01:26 2011 [VMM][I]: ExitCode: 1<br>
> Mon May 2 13:01:26 2011 [VMM][E]: Error deploying virtual machine: Error:<br>
> Subcommand sched-cred not found!<br>
> Mon May 2 13:01:26 2011 [DiM][I]: New VM state is FAILED<br>
> [.....]<br>
><br>
> The oned version is:<br>
><br>
> $ oned -v<br>
> Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org)<br>
><br>
> OpenNebula 2.1.80 is distributed and licensed for use under the terms of the<br>
> Apache License, Version 2.0 (<a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a>).<br>
><br>
> and the physical node have CentOS 5.6 with Xen 4.1.0<br>
><br>
> The problem seems to be a error in the libvirt configuration:<br>
><br>
> virsh # version<br>
> Compiled against library: libvir 0.8.2<br>
> Using library: libvir 0.8.2<br>
> Using API: Xen 3.0.1<br>
> Running hypervisor: Xen 4.1.0<br>
><br>
<br>
</div></div>You may want to use libvirt 0.9.0 if it is supported by OpenNebula.<br>
<br>
The key feature added is:<br>
<br>
* Add libxenlight driver (Jim Fehlig and Markus Groß)<br>
<br>
<a href="http://article.gmane.org/gmane.comp.emulators.libvirt.user/1229/match=libxenlight" target="_blank">http://article.gmane.org/gmane.comp.emulators.libvirt.user/1229/match=libxenlight</a><br>
<br>
I'm not familiar enough with the errors that OpenNebula is showing<br>
above, but libvirt support for libxenlight/libxl is the way forward<br>
(xend is deprecated as of 4.1)<br>
<br>
Some further Xen information that may be helpful<br>
<a href="http://wiki.xensource.com/xenwiki/Xen4.1" target="_blank">http://wiki.xensource.com/xenwiki/Xen4.1</a><br>
<a href="http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B" target="_blank">http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B</a><br>
<a href="http://wiki.xensource.com/xenwiki/HostConfiguration/Networking" target="_blank">http://wiki.xensource.com/xenwiki/HostConfiguration/Networking</a><br>
<br>
Let Xen.org know if we can be helpful in troubleshooting the<br>
Xen/libvirt side of things.<br>
<br>
Thanks,<br>
Todd<br>
<div><br>
><br>
> As you can see, the libvirt is connected to the Xen 4.1.0 hypervisor, but it<br>
> is using the API of the Xen 3.0.1<br>
><br>
> Anyone know about how we can change the libvirt API to the Xen 4.1.0 one??<br>
><br>
> Regards<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
<br>
<br>
<br>
</div><font color="#888888">--<br>
Todd Deshane<br>
<a href="http://www.linkedin.com/in/deshantm" target="_blank">http://www.linkedin.com/in/deshantm</a><br>
<a href="http://www.xen.org/products/cloudxen.html" target="_blank">http://www.xen.org/products/cloudxen.html</a><br>
</font><div><div></div><div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br>Dr. Ruben Santiago Montero<br>Associate Professor (Profesor Titular), Complutense University of Madrid<br><br>URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Dr. Ruben Santiago Montero<br>Associate Professor (Profesor Titular), Complutense University of Madrid<br><br>URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
</div>