<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><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Jun</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">To avoid just configure --without-lxc</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Daniel here is the back-trace</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(Didn't have time to explore)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px;
 margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">[root@rain8 libvirt-0.7.0]# ./qemud/libvirtd </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">16:11:02.700: warning : qemudStartup:521 : Unable to create cgroup for driver: No such device or address</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Segmentation fault (core dumped)</div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">gdb ./qemud/.libs/libvirtd ../core.19690</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(gdb)
 where</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">#0  virDomainEventCallbackListFree (list=0x0) at domain_event.c:41</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">#1  0x000000000043ecee in lxcShutdown () at lxc_driver.c:1582</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">#2  0x000000000043f122 in lxcStartup (privileged=1) at lxc_driver.c:1523</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">#3  0x00007f05103e03c2 in virStateInitialize (privileged=1) at libvirt.c:785</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">#4  0x00000000004134cf in main (argc=6776272, argv=<value optimized out>) at qemud.c:2970</div><div><br></div></div></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> Jun Koi <junkoi2004@gmail.com><br><b><span style="font-weight: bold;">Cc:</span></b> libvir-list@redhat.com<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, August 11, 2009 12:25:25 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 06:04:29PM +0900, Jun Koi wrote:<br>> On Tue, Aug 11, 2009 at 6:00 PM, Daniel P. Berrange<<a ymailto="mailto:berrange@redhat.com" href="mailto:berrange@redhat.com">berrange@redhat.com</a>> wrote:<br>> > On Tue, Aug 11, 2009 at 10:03:32AM +0900, Jun Koi wrote:<br>> >> Hi,<br>> >><br>>
 >> The libvirt 0.7 has a following error when i start libvirtd:<br>> >><br>> >> warning : qemudStartup:521 : Unable to create cgroup for driver: No<br>> >> such device or address<br>> ><br>> > That is not an error, it is a expected warning if you don't have any<br>> > cgroups mount. It is designed to continue working<br>> ><br>> <br>> Could you explain what is that cgroups mount, and why I need that??<br><br>Cgroups are principally a resource control mechanism for processes.<br>There are countless tunables, and a libvirt will use certain ones,<br>specifically for QEMU it currently uses the 'cpu' and 'devices'<br>controllers, while LXC also uses 'memory' and 'cpuacct'.<br><br>You can activate it by mounting the desired controllers before libvirtd<br>starts. eg<br><br>   mkdir /dev/cgroup<br>   mount -t cgroup none /dev/cgroup -o cpu,memory,devices<br><br>> The fact is that I
 never had this problem before (with older git version)<br><br>That's because this is a new feature. It is optional, hence why it is<br>merely a warning message, and not an error message.<br><br>> >> Then it fails to start.<br>> >><br>> >> How can I fix this?<br>> ><br>> > You'll need to provide more information than this. What exactly fails<br>> > to start ? The entire daemon, just the QEMU driver, or something else ?<br>> > Does it exit, does it crash ? Get a debug log when it fails, etc<br>> <br>> When I run "libvirtd -v", it simply reports error like:<br>> <br>> "warning : qemudStartup:521 : Unable to create cgroup for driver: No<br>> such device or address<br>> Segmentation fault"<br><br>Can you capture a stack trace in GDB, and/or get the debug logs from<br>running with LIBVIRT_DEBUG=1. There could be a thousand & one other<br>things being done between the time the warning
 message is printed, and<br>it actually crashes, so we can't assume they're neccessarily related<br><br>Daniel<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><br>--<br>Libvir-list mailing list<br><a ymailto="mailto:Libvir-list@redhat.com"
 href="mailto:Libvir-list@redhat.com">Libvir-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/libvir-list" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br></div></div><div style="position:fixed"></div></div><br>

      </body></html>