Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114794 - xen startup script not correctly configuring network devices on inital boot
Summary: xen startup script not correctly configuring network devices on inital boot
Status: RESOLVED DUPLICATE of bug 111684
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Chris Bainbridge (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-07 13:28 UTC by Trevor Harrison
Modified: 2005-12-08 02:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trevor Harrison 2005-12-07 13:28:41 UTC
After booting, the /etc/init.d/xend startup script isn't fully configuring the
network devices (for a bridged setup).

Xen 3.0.0, xen-sources 2.6.12.6

After boot:
# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:43:D6:3D:72  
          inet addr:192.168.0.247  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3968 errors:0 dropped:0 overruns:0 frame:0
          TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:288729 (281.9 Kb)  TX bytes:8044 (7.8 Kb)
          Interrupt:28 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

xenbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

after a 
/etc/init.d/xend stop
/etc/init.d/xend start (twice)

I have:
# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:11:43:D6:3D:72  
          inet addr:192.168.0.247  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:550 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:42488 (41.4 Kb)  TX bytes:76354 (74.5 Kb)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:546 errors:0 dropped:0 overruns:0 frame:0
          TX packets:250 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:44746 (43.6 Kb)  TX bytes:77050 (75.2 Kb)
          Interrupt:28 

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:260 errors:0 dropped:0 overruns:0 frame:0
          TX packets:552 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:78092 (76.2 Kb)  TX bytes:42596 (41.5 Kb)

xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:304 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:16890 (16.4 Kb)  TX bytes:0 (0.0 b)


which is better, but still not absolutely correct I think.

From /var/log/xend.log:
[2005-12-07 16:28:50 xend] INFO (SrvDaemon:268) Xend Daemon started
[2005-12-07 16:28:50 xend] INFO (SrvDaemon:272) Xend changeset: unavailable .
[2005-12-07 16:28:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:198)
XendDomainInfo.recreate({'paused': 0, 'cpu_time': 11178291415L, 'ssidref': 0,
'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason':
0, 'dying': 0, 'dom': 0, 'mem_kb': 524288, 'maxmem_kb': -4, 'max_vcpu_id': 1,
'crashed': 0, 'running': 1, 'shutdown': 0, 'online_vcpus': 1, 'blocked': 0})
[2005-12-07 16:28:50 xend.XendDomainInfo] INFO (XendDomainInfo:210) Recreating
domain 0, UUID 00000000-00000000-00000000-00000000.
[2005-12-07 16:28:50 xend] DEBUG (XendDomain:151) number of vcpus to use is 0
[2005-12-07 16:28:50 xend] INFO (SrvServer:112) unix path=/var/lib/xend/xend-socket


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




# emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2,
2.6.12.6-xen-dom0 i686)
=================================================================
System uname: 2.6.12.6-xen-dom0 i686 Intel(R) Xeon(TM) CPU 3.06GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://gentoo.ccccom.com"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 arts avi berkdb bitmap-fonts bzip2 crypt curl eds emboss encode expat
foomaticdb gdbm gif gstreamer imlib jpeg libg++ libwww mad mikmod motif mp3 mpeg
ncurses nls nptl ogg oggvorbis opengl oss pam pcre pdflib perl png python
quicktime readline spell ssl tcpd truetype truetype-fonts type1-fonts udev
userlocales vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Chris Bainbridge (RETIRED) gentoo-dev 2005-12-08 02:37:47 UTC

*** This bug has been marked as a duplicate of 111684 ***