<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>The patch fixed the lxc problem:</div><div><br></div><div><div>[root@rain8 libvirt]# /usr/local/sbin/libvirtd -v</div><div>17:11:55.994: warning : qemudStartup:521 : Unable to create cgroup for driver: No such device or address</div><div>17:11:56.193: warning : virEventRemoveTimeoutImpl:284 : Ignoring invalid remove timer 0</div><div><br></div><div><br></div></div><div><br></div><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Daniel P. Berrange <berrange@redhat.com><br><b><span style="font-weight: bold;">To:</span></b> Shahar Klein <shaharklein@yahoo.com>;
 libvir-list@redhat.com<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 12, 2009 12:54:37 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [libvirt] Unable to create cgroup for driver<br></font><br>On Tue, Aug 11, 2009 at 02:45:06AM -0700, Shahar Klein wrote:<br>> Jun<br>> To avoid just configure --without-lxc<br>> <br>> Daniel here is the back-trace<br>> (Didn't have time to explore)<br>> <br>> [root@rain8 libvirt-0.7.0]# ./qemud/libvirtd <br>> 16:11:02.700: warning : qemudStartup:521 : Unable to create cgroup for driver: No such device or address<br>> Segmentation fault (core dumped)<br>> <br>> gdb ./qemud/.libs/libvirtd ../core.19690<br>> <br>> (gdb) where<br>> #0  virDomainEventCallbackListFree (list=0x0) at domain_event.c:41<br>> #1  0x000000000043ecee in lxcShutdown () at lxc_driver.c:1582<br>> #2  0x000000000043f122 in lxcStartup
 (privileged=1) at lxc_driver.c:1523<br>> #3  0x00007f05103e03c2 in virStateInitialize (privileged=1) at libvirt.c:785<br>> #4  0x00000000004134cf in main (argc=6776272, argv=<value optimized out>) at qemud.c:2970<br><br>Try out the following patch which ought to fix this problem<br><br>Regards,<br>Daniel<br><br>diff --git a/src/domain_conf.c b/src/domain_conf.c<br>index 2301a96..dd2b361 100644<br>--- a/src/domain_conf.c<br>+++ b/src/domain_conf.c<br>@@ -532,6 +532,9 @@ void virDomainObjListFree(virDomainObjListPtr vms)<br> {<br>     unsigned int i;<br> <br>+    if (!vms)<br>+        return;<br>+<br>     for (i = 0 ; i < vms->count ; i++)<br>         virDomainObjFree(vms->objs[i]);<br> <br>diff --git a/src/domain_event.c b/src/domain_event.c<br>index daa6fd5..0fa2822 100644<br>--- a/src/domain_event.c<br>+++ b/src/domain_event.c<br>@@ -38,6 +38,9 @@
 void<br> virDomainEventCallbackListFree(virDomainEventCallbackListPtr list)<br> {<br>     int i;<br>+    if (!list)<br>+        return;<br>+<br>     for (i=0; i<list->count; i++) {<br>         virFreeCallback freecb = list->callbacks[i]->freecb;<br>         if (freecb)<br>diff --git a/src/lxc_driver.c b/src/lxc_driver.c<br>index a9c4f79..bd0cf0e 100644<br>--- a/src/lxc_driver.c<br>+++ b/src/lxc_driver.c<br>@@ -1439,10 +1439,12 @@ static int lxcStartup(int privileged)<br>     lxcDriverLock(lxc_driver);<br> <br>     /* Check that this is a container enabled kernel */<br>-    if(lxcContainerAvailable(0) < 0)<br>+    if (lxcContainerAvailable(0) < 0) {<br>+        VIR_INFO0("LXC support not available in this kernel, disabling driver");<br>         goto cleanup;<br>+ 
   }<br> <br>-    if(VIR_ALLOC(lxc_driver->domainEventCallbacks) < 0)<br>+    if (VIR_ALLOC(lxc_driver->domainEventCallbacks) < 0)<br>         goto cleanup;<br>     if (!(lxc_driver->domainEventQueue = virDomainEventQueueNew()))<br>         goto cleanup;<br><br>-- <br>|: Red Hat, Engineering, London   -o-   <a href="http://people.redhat.com/berrange/" target="_blank">http://people.redhat.com/berrange/</a> :|<br>|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>  -o-  <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a>  -o-  <a href="http://ovirt.org" target="_blank">http://ovirt.org</a> :|<br>|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/~danberr/"
 target="_blank">http://search.cpan.org/~danberr/</a> :|<br>|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|<br></div></div><div style="position:fixed"></div></div><br>

      </body></html>