<div dir="ltr"><div><div><div>I recently upgraded "libvirt" on Gentoo to 1.2.2-r1 (latest available).  I have not used LXC containers for a few weeks, so I don't recall what version of libvirt I was using when my container last booted successfully.<br>
<br></div>Unfortunately, Gentoo's portage tree does not offer any previous versions of libvirt that I could downgrade to.<br><br>TL;DR: My container is configured to use "br0" for its networking.  "br0" exists totally inside my linux server - it is NOT bound to any physical NIC.  "br0" is used for most of my QEMU and LXC VMs.  libvirt is reporting that it cannot find device "veth1".  All of my Gentoo packages are up-to-date.<br>
</div><br></div><div>Digging through my logs (/var/log/libvirt/libvirt.log), I see that I last successfully booted this LXC container on 2013-07-22, with libvirt reporting version "1.1.0".<br></div><div><br></div>
Thoughts?<br><div><br><br><br><div><br>ostara lxc # equery l libvirt<br> * Searching for libvirt ...<br>[IP-] [  ] app-emulation/libvirt-1.1.2-r1:0<br><br><br>ostara lxc # uname -a<br>Linux ostara 3.10.7-gentoo #2 SMP PREEMPT Sat Aug 24 16:03:57 CDT 2013 x86_64 Intel(R) Core(TM) i5 CPU 760 @ 2.80GHz GenuineIntel GNU/Linux<br>
<br><br>ostara ~ # emerge -pvuND world<br>These are the packages that would be merged, in order:<br>Calculating dependencies... done!<br>Total: 0 packages, Size of downloads: 0 kB<br><br><br>ostara lxc # virsh -c lxc:/// start dwj-hfax-dev<br>
error: Failed to start domain dwj-hfax-dev<br>error: internal error: guest failed to start: 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><br>ostara ~ # tail /var/log/libvirt/lxc/dwj-hfax-dev.log<br>2013-09-10 13:56:22.767+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 20 --security=none --handshake 23 --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><br>ostara ~ # tail /var/log/libvirt/libvirtd.log<br>2013-09-10 13:56:22.998+0000: 12948: info : libvirt version: 1.1.2<br>2013-09-10 13:56:22.998+0000: 12948: error : virLXCControllerRun:2186 : error receiving signal from container: Input/output error<br>
2013-09-10 13:56:23.053+0000: 12948: error : virCommandWait:2348 : internal error: Child process (ip link del veth1) unexpected exit status 1: Cannot find device "veth1"<br><br>2013-09-10 13:56:23.097+0000: 10451: error : virNetSocketReadWire:1369 : Cannot recv data: Connection reset by peer<br>
2013-09-10 13:56:23.153+0000: 10453: error : virLXCProcessStart:1234 : internal error: guest failed to start: 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>2013-09-10 13:56:23.343+0000: 10453: error : virCommandWait:2348 : internal error: Child process (ip link del veth1) unexpected exit status 1: Cannot find device "veth1"<br>
<br><br></div><div>(first occurrence of "veth1" in my libvirtd logs)<br></div><div>ostara ~ # grep -a veth1 /var/log/libvirt/libvirtd.log  | head -1<br>2013-09-10 13:51:55.333+0000: 9742: error : virCommandWait:2348 : internal error: Child process (ip link del veth1) unexpected exit status 1: Cannot find device "veth1"<br>
<br><br><br><br>ostara ~ # which ip<br>/bin/ip<br><br><br>ostara ~ # equery b /bin/ip<br> * Searching for /bin/ip ...<br>sys-apps/iproute2-3.8.0 (/bin/ip)<br><br><br>ostara ~ # ls -l /bin/ip<br>-rwxr-xr-x 1 root root 282616 May  4 04:08 /bin/ip<br>
<br><br><br>ostara ~ # ifconfig -a | grep "^[a-z]"<br>br0: flags=4355<UP,BROADCAST,PROMISC,MULTICAST>  mtu 1500<br>br1: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500<br>enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500<br>
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500<br>enp6s2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500<br>lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536<br>virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500<br>
<br><br>ostara ~ # virsh -c lxc:/// dumpxml dwj-hfax-dev<br><domain type='lxc'><br>  <name>dwj-hfax-dev</name><br>  <uuid>681410de-7b56-41bd-b38d-3c66ce97e7b3</uuid><br>  <memory unit='KiB'>4194304</memory><br>
  <currentMemory unit='KiB'>4194304</currentMemory><br>  <vcpu placement='static'>4</vcpu><br>  <resource><br>    <partition>/machine</partition><br>  </resource><br>
  <os><br>    <type arch='x86_64'>exe</type><br>    <init>/sbin/init</init><br>  </os><br>  <clock offset='utc'/><br>  <on_poweroff>destroy</on_poweroff><br>
  <on_reboot>restart</on_reboot><br>  <on_crash>destroy</on_crash><br>  <devices><br>    <emulator>/usr/libexec/libvirt_lxc</emulator><br>    <filesystem type='mount' accessmode='passthrough'><br>
      <source dir='/vm/lxc/dwj-hfax-dev'/><br>      <target dir='/'/><br>    </filesystem><br>    <filesystem type='mount' accessmode='passthrough'><br>      <source dir='/usr/portage'/><br>
      <target dir='/usr/portage'/><br>    </filesystem><br>    <filesystem type='mount' accessmode='passthrough'><br>      <source dir='/usr/src'/><br>      <target dir='/usr/src'/><br>
    </filesystem><br>    <filesystem type='mount' accessmode='passthrough'><br>      <source dir='/home'/><br>      <target dir='/home'/><br>    </filesystem><br>
    <interface type='bridge'><br>      <mac address='82:00:00:00:01:01'/><br>      <source bridge='br0'/><br>    </interface><br>    <console type='pty'><br>      <target type='lxc' port='0'/><br>
    </console><br>  </devices><br></domain><br><br></div></div></div>