[Pkg-vsquare-devel] Bug#430830: vde2: vde_switch doesn't work at boot time

Raphael Hertzog hertzog at debian.org
Wed Jun 27 15:01:18 UTC 2007


Package: vde2
Version: 2.1.6+r154-1
Severity: normal

It looks like the vde switch is not correctly setup at boot time. I need
to ifdown then ifup my interface to get it working properly.

I have in /etc/network/interfaces:

auto qemu
iface qemu inet static
    address 10.0.2.1
    netmask 255.255.255.0
    vde2-switch -
    up /etc/init.d/dnsmasq restart || true
    up echo 1 > /proc/sys/net/ipv4/ip_forward
    up iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE || true
    up iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE || true
    down iptables -t nat -F

Then after boot I have:
rhertzog at rivendell:~$ ifconfig qemu
qemu      Lien encap:Ethernet  HWaddr FA:AD:E7:D0:85:89  
          inet adr:10.0.2.1  Bcast:10.0.2.255  Masque:255.255.255.0
          adr inet6: fe80::f8ad:e7ff:fed0:8589/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:500 
          RX bytes:53 (53.0 b)  TX bytes:468 (468.0 b)

rhertzog at rivendell:~$ ls -al /var/run/vde2/
total 16
drwxrws---  3 vde2-net vde2-net 4096 2007-06-27 16:02 .
drwxr-xr-x 19 root     root     4096 2007-06-27 16:03 ..
drwxrws---  2 root     vde2-net 4096 2007-06-27 16:02 qemu.ctl
srw-rw----  1 root     vde2-net    0 2007-06-27 16:02 qemu.mgmt
-rw-r--r--  1 root     vde2-net    5 2007-06-27 16:02 qemu.pid
rhertzog at rivendell:~$ ls -al /var/run/vde2/qemu.ctl/
total 8
drwxrws--- 2 root     vde2-net 4096 2007-06-27 16:02 .
drwxrws--- 3 vde2-net vde2-net 4096 2007-06-27 16:02 ..
rhertzog at rivendell:~$ ps aux | grep vde2
root      2458  0.0  0.0   2020   556 ?        Ss   16:02   0:00 /usr/bin/vde_switch -s /var/run/vde2/qemu.ctl -m 660 -g vde2-net -p /var/run/vde2/qemu.pid -t qemu -M /var/run/vde2/qemu.mgmt --mgmtmode 660 -d

The directory "/var/run/vde2/qemu.ctl/" lacks the "ctl" socket...
and of course "vdeqemu" doesn't work afterwards. It fails with "sendto: Bad
file descriptor".

I have currently no clue why it's not setting everything right at the first
execution during the boot. I wonder if it's somehow related to #392069.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vde2 depends on:
ii  adduser                     3.103        Add and remove users and groups
ii  libc6                       2.5-11       GNU C Library: Shared libraries
ii  libvdeplug2                 2.1.6+r154-1 Virtual Distributed Ethernet - Plu

Versions of packages vde2 recommends:
ii  daemon                        0.6.3-1    turns other processes into daemons

-- no debconf information




More information about the Pkg-vsquare-devel mailing list