<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 11, 2013 at 3:52 AM, Gao feng <span dir="ltr"><<a href="mailto:gaofeng@cn.fujitsu.com" target="_blank">gaofeng@cn.fujitsu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">On 09/11/2013 04:44 PM, Daniel P. Berrange wrote:<br>
> On Tue, Sep 10, 2013 at 09:09:44AM -0500, Dennis Jenkins wrote:<br>
>> I recently upgraded "libvirt" on Gentoo to 1.2.2-r1 (latest available).  I<br>
>> have not used LXC containers for a few weeks, so I don't recall what<br>
>> version of libvirt I was using when my container last booted successfully.<br>
><br>
> We'll need you to increase the log level to get more detail in this<br>
> file.<br>
><br>
> 1. Stop the 'libvirtd' daemon<br>
><br>
> 2. Edit /etc/libvirt/lxc.conf and set  log_with_libvirtd=1<br>
><br>
> 3. Run<br>
><br>
>    $  LIBVIRT_LOG_FILTERS=1:lxc LIBVIRT_LOG_OUTPUTS=1:stderr /usr/sbin/libvirtd<br>
><br>
> 4. rm -f /var/log/libvirt/lxc/dwj-hfax-dev.log<br>
><br>
> 5. Try to start your guest with virsh<br>
><br>
><br>
> Now send us the much more verbose logfile that was created<br>
<br>
</div></div>Dennis has already knew what's wrong with his environment,<br>
his kernel doesn't support securityfs. libvirt should handle this problem.<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">I already have logs with that level of debug logging:<br>ostara ~ # grep "log_with_libvirtd" /etc/libvirt/lxc.conf<br>log_with_libvirtd = 1<br><br></div><div class="gmail_extra">
<br>If it would be useful, I can revert my kernel, reboot, and run libvirtd with the extra env vars set, as listed above.  Just let me know. :)<br></div><div class="gmail_extra"><br><br></div><div class="gmail_extra">I still have the logs from before I upgrades to "libvirt-1.1.2-r1" (lxc worked for me), and after (libvirt failed).  I've had the extra logging turned on since last spring when you guys helped me then.  There is not much interesting (to me anyway) in the log file:<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">### last known LXC boot before it broke<br></div><div class="gmail_extra">2013-07-31 12:49:08.362+0000: starting up<br>PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3:/usr/x86_64-pc-linux-gnu/i686-pc-mingw32/gcc-bin/4.7.3 LIBVIRT_DEBUG=3 LIBVIRT_LOG_OUTPUTS=3:file:/var/log/libvirt/libvirtd.log /usr/libexec/libvirt_lxc --name dwj-hfax-dev --console 24 --security=none --handshake 27 --background --veth veth1<br>
PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=681410de-7b56-41bd-b38d-3c66ce97e7b3 LIBVIRT_LXC_UUID=681410de-7b56-41bd-b38d-3c66ce97e7b3 LIBVIRT_LXC_NAME=dwj-hfax-dev /sbin/init<br><br></div><div class="gmail_extra">
### first attempt to boot LXC after upgrading my kernel and libvirt:<br></div><div class="gmail_extra">2013-09-10 13:51:54.977+0000: starting up<br>PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3:/usr/x86_64-pc-linux-gnu/i686-pc-mingw32/gcc-bin/4.7.3 LIBVIRT_DEBUG=3 LIBVIRT_LOG_OUTPUTS=3:file:/var/log/libvirt/libvirtd.log /usr/libexec/libvirt_lxc --name dwj-hfax-dev --console 21 --security=none --handshake 24 --background --veth veth1<br>
PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=681410de-7b56-41bd-b38d-3c66ce97e7b3 LIBVIRT_LXC_UUID=681410de-7b56-41bd-b38d-3c66ce97e7b3 LIBVIRT_LXC_NAME=dwj-hfax-dev /sbin/init<br>error receiving signal from container: Input/output error<br>
<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>