[Pkg-libvirt-maintainers] Bug#803264: libvirt-daemon: macvtap interface for a VM won't get up

Thomas SILVESTRE silvestre.t at gmail.com
Wed Oct 28 13:35:04 UTC 2015


Package: libvirt-daemon
Version: 1.2.9-9+deb8u1
Severity: normal

Dear Maintainer,

I'm using libvirt to virtualize a VM on my laptop, this vm has to be bridged on
the network and I'm using macvtap technology (trough virt-manager)

here is the xml part of the domain regarding network:
<interface type='direct'>
      <mac address='52:54:00:7f:de:65'/>
      <source dev='eth0' mode='bridge'/>
      <target dev='macvtap0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
    </interface>
    <interface type='network'>
      <mac address='52:54:00:49:cb:48'/>
      <source network='priv'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07'
function='0x0'/>
    </interface>

When the laptop boot and I start the VM, there's no problem.
But when I put the laptop to sleep, the macvtap interface will never get up
again.

I even tried to stop the vm, libvirt, unload modules (macvtap, vhost_net,
vhost, e1000e), but nothing help.

The only way to get it back working is to reboot the host os (like Windows,
booohooo :-( )

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

I'm not sure, either unplug/plug the ethernet connection (like removing the
laptop from its docking station), or put laptop on sleep and wake him.


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Appart a reboot, nothing effective.

   * What was the outcome of this action?
   * What outcome did you expect instead?

When the system is wokring, the macvtap interface is "UP", but when the problem
occurs the interface is "DOWN". Of course a "ip link set macvtap0 up" or delete
interface and recreate them did not help.

The only thing I founded in the log is this message:
IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libvirt-daemon depends on:
ii  libapparmor1        2.9.0-3
ii  libaudit1           1:2.4-1+b1
ii  libavahi-client3    0.6.31-5
ii  libavahi-common3    0.6.31-5
ii  libblkid1           2.25.2-6
ii  libc6               2.19-18+deb8u1
ii  libcap-ng0          0.7.4-2
ii  libdbus-1-3         1.8.20-0+deb8u1
ii  libdevmapper1.02.1  2:1.02.90-2.2
ii  libfuse2            2.9.3-15+deb8u1
ii  libgnutls-deb0-28   3.3.8-6+deb8u3
ii  libnetcf1           1:0.2.3-4.1
ii  libnl-3-200         3.2.24-2
ii  libnl-route-3-200   3.2.24-2
ii  libnuma1            2.0.10-1
ii  libparted2          3.2-7
ii  libpcap0.8          1.6.2-2
ii  libpciaccess0       0.13.2-3+b1
ii  librados2           0.80.7-2
ii  librbd1             0.80.7-2
ii  libsasl2-2          2.1.26.dfsg1-13+deb8u1
ii  libselinux1         2.3-2
ii  libssh2-1           1.4.3-4.1
ii  libsystemd0         215-17+deb8u2
ii  libudev1            215-17+deb8u2
ii  libvirt0            1.2.9-9+deb8u1
ii  libxen-4.4          4.4.1-9+deb8u1
ii  libxenstore3.0      4.4.1-9+deb8u1
ii  libxml2             2.9.1+dfsg1-5
ii  libyajl2            2.1.0-2

Versions of packages libvirt-daemon recommends:
ii  libxml2-utils   2.9.1+dfsg1-5
ii  netcat-openbsd  1.105-7
ii  qemu-kvm        1:2.1+dfsg-12+deb8u4

Versions of packages libvirt-daemon suggests:
ii  libvirt-daemon-system  1.2.9-9+deb8u1



More information about the Pkg-libvirt-maintainers mailing list