5.2 64 Xen - eth0 not starting up

Issues related to configuring your network
Post Reply
3Kaesehoch
Posts: 4
Joined: 2008/11/05 06:32:57
Location: 3rd rock from the sun/Canada/Saskatchewan

5.2 64 Xen - eth0 not starting up

Post by 3Kaesehoch » 2008/11/05 07:05:51

I cannot get the physical nic on my new CentOS 5.2 64bit server started up.
The system asks me to check the cable.
The nic and cable work fine when I boot with Fedora 9 liveusb.
I assume the problem relates to the network bridging that was set up during the install to accommodate the Xen VMs.

Here is some system info:
(sorry, it's quite long)
Uname -a
=========
Linux xxxxxx 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:20:18 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

CentOS release 5.2 (Final)

ifconfig
========
eth0 Link encap:Ethernet HWaddr 00:1C:C0:70:90:F6
inet6 addr: fe80::21c:c0ff:fe70:90f6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:11085 (10.8 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:476 errors:0 dropped:0 overruns:0 frame:0
TX packets:476 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:38212 (37.3 KiB) TX bytes:38212 (37.3 KiB)

peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST NOARP MTU:1500 Metric:1
RX packets:3919 errors:0 dropped:368692522827 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:762546 (744.6 KiB) TX bytes:0 (0.0 b)
Interrupt:20

vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:33 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:11085 (10.8 KiB) TX bytes:0 (0.0 b)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:9752 (9.5 KiB)

xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:33 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:10623 (10.3 KiB) TX bytes:0 (0.0 b)

/etc/sysconfig/network-scripts/ifcfg-eth0
=========================================
# Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:1c:c0:70:90:f6
ONBOOT=yes
TYPE=Ethernet


/etc/xen/xend-config.sxp
==================
# -*- sh -*-

#
# Xend configuration file.
#

# This example configuration is appropriate for an installation that
# utilizes a bridged network configuration. Access to xend via http
# is disabled.

# Commented out entries show the default for that entry, unless otherwise
# specified.

#(logfile /var/log/xen/xend.log)
#(loglevel DEBUG)

#(xend-http-server no)
(xend-unix-server yes)
#(xend-tcp-xmlrpc-server no)
#(xend-unix-xmlrpc-server yes)
#(xend-relocation-server no)
# The relocation server should be kept desactivated unless using a trusted
# network, the domain virtual memory will be exchanged in raw form without
# encryption of the communication. See also xend-relocation-hosts-allow option

(xend-unix-path /var/lib/xend/xend-socket)

# Port xend should use for the HTTP interface, if xend-http-server is set.
#(xend-port 8000)

# Port xend should use for the relocation interface, if xend-relocation-server
# is set.
#(xend-relocation-port 8002)

# Address xend should listen on for HTTP connections, if xend-http-server is
# set.
# Specifying 'localhost' prevents remote connections.
# Specifying the empty string '' (the default) allows all connections.
#(xend-address '')
#(xend-address localhost)

# Address xend should listen on for relocation-socket connections, if
# xend-relocation-server is set.
# Meaning and default as for xend-address above.
#(xend-relocation-address '')

# The hosts allowed to talk to the relocation port. If this is empty (the
# default), then all connections are allowed (assuming that the connection
# arrives on a port and interface on which we are listening; see
# xend-relocation-port and xend-relocation-address above). Otherwise, this
# should be a space-separated sequence of regular expressions. Any host with
# a fully-qualified domain name or an IP address that matches one of these
# regular expressions will be accepted.
#
# For example:
# (xend-relocation-hosts-allow '^localhost$ ^.*\.example\.org$')
#
#(xend-relocation-hosts-allow '')
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')

# The limit (in kilobytes) on the size of the console buffer
#(console-limit 1024)

##
# To bridge network traffic, like this:
#
# dom0: fake eth0 -> vif0.0 -+
# |
# bridge -> real eth0 -> the network
# |
# domU: fake eth0 -> vifN.0 -+
#
# use
#
# (network-script network-bridge)
#
# Your default ethernet device is used as the outgoing interface, by default.
# To use a different one (e.g. eth1) use
#
# (network-script 'network-bridge netdev=eth1')
#
# The bridge is named xenbr0, by default. To rename the bridge, use
#
# (network-script 'network-bridge bridge=')
#
# It is possible to use the network-bridge script in more complicated
# scenarios, such as having two outgoing interfaces, with two bridges, and
# two fake interfaces per guest domain. To do things like this, write
# yourself a wrapper script, and call network-bridge from it, as appropriate.
#
(network-script network-bridge)

# The script used to control virtual interfaces. This can be overridden on a
# per-vif basis when creating a domain or a configuring a new vif. The
# vif-bridge script is designed for use with the network-bridge script, or
# similar configurations.
#
# If you have overridden the bridge name using
# (network-script 'network-bridge bridge=') then you may wish to do the
# same here. The bridge name can also be set when creating a domain or
# configuring a new vif, but a value specified here would act as a default.
#
# If you are using only one bridge, the vif-bridge script will discover that,
# so there is no need to specify it explicitly.
#
(vif-script vif-bridge)


## Use the following if network traffic is routed, as an alternative to the
# settings for bridged networking given above.
#(network-script network-route)
#(vif-script vif-route)


## Use the following if network traffic is routed with NAT, as an alternative
# to the settings for bridged networking given above.
#(network-script network-nat)
#(vif-script vif-nat)


# Dom0 will balloon out when needed to free memory for domU.
# dom0-min-mem is the lowest memory level (in MB) dom0 will get down to.
# If dom0-min-mem=0, dom0 will never balloon out.
(dom0-min-mem 256)

# In SMP system, dom0 will use dom0-cpus # of CPUS
# If dom0-cpus = 0, dom0 will take all cpus available
(dom0-cpus 0)

# Whether to enable core-dumps when domains crash.
#(enable-dump no)

# The tool used for initiating virtual TPM migration
#(external-migration-tool '')

# The interface for VNC servers to listen on. Defaults
# to 127.0.0.1 To restore old 'listen everywhere' behaviour
# set this to 0.0.0.0
#(vnc-listen '127.0.0.1')

# The default password for VNC console on HVM domain.
# Empty string is no authentication.
(vncpasswd '')

# The VNC server can be told to negotiate a TLS session
# to encryption all traffic, and provide x509 cert to
# clients enalbing them to verify server identity. The
# GTK-VNC widget, virt-viewer, virt-manager and VeNCrypt
# all support the VNC extension for TLS used in QEMU. The
# TightVNC/RealVNC/UltraVNC clients do not.
#
# To enable this create x509 certificates / keys in the
# directory /etc/xen/vnc
#
# ca-cert.pem - The CA certificate
# server-cert.pem - The Server certificate signed by the CA
# server-key.pem - The server private key
#
# and then uncomment this next line
# (vnc-tls 1)
#
# The certificate dir can be pointed elsewhere..
#
# (vnc-x509-cert-dir /etc/xen/vnc)
#
# The server can be told to request & validate an x509
# certificate from the client. Only clients with a cert
# signed by the trusted CA will be able to connect. This
# is more secure the password auth alone. Passwd auth can
# used at the same time if desired. To enable client cert
# checking uncomment this:
#
# (vnc-x509-verify 1)

# Allow probing of disk image file format. This is insecure! It lets
# a malicious domU read any file in dom0. Applies only to fully
# virtual domUs. Required for using formats other than raw.
#(enable-image-format-probing no)

dmesg | grep eth0
====================
eth0: RTL8168c/8111c at 0xffffc20000020000, 00:1c:c0:70:90:f6, IRQ 20
r8169: eth0: link down
r8169: peth0: link down
ADDRCONF(NETDEV_UP): peth0: link is not ready
device peth0 entered promiscuous mode
eth0: no IPv6 routers present
process `sysctl' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.base_reachable_time; Use net.ipv6.neigh.eth0.base_reachable_time_ms instead.
process `cp' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.base_reachable_time; Use net.ipv6.neigh.eth0.base_reachable_time_ms instead.

Thanks in advance.
3Kaesehoch
;-)

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: 5.2 64 Xen - eth0 not starting up

Post by AlanBartlett » 2008/11/05 14:31:51

[quote]RTL8168c/8111c [/quote]
Ah, it's a [b]rev c[/b] card.

Please try going [url=http://www.pperry.f2s.com/linux/ajb/r8168/]here[/url] and downloading the kmod-r8168-xen-8.008.00-2.x86_64.rpm file.

Install it:

[b]rpm -ivh kmod-r8168-xen-8.008.00-2.x86_64.rpm[/b]

and then create an [b]/etc/sysconfig/modules/local.modules[/b] file (owner/group == root, mode == 755) with the following contents:

[code]
#!/bin/sh

#
# Load the r8168 module (after the r8169 is unloaded).
#
/sbin/modinfo -F filename r8168 >/dev/null 2>&1
if [ $? -eq 0 ]
then
modprobe -r r8169 >/dev/null 2>&1
modprobe r8168 >/dev/null 2>&1
fi
[/code]
Once you have rebooted the host, ensure the correct [i]r8168[/i] module is loaded:

[b]lsmod | grep r8168[/b]

and

[b]modinfo r8168[/b]

3Kaesehoch
Posts: 4
Joined: 2008/11/05 06:32:57
Location: 3rd rock from the sun/Canada/Saskatchewan

Re: 5.2 64 Xen - eth0 not starting up

Post by 3Kaesehoch » 2008/11/05 15:19:01

Thank you, Alan.
This looks very promising. I will try it as soon as I get home tonight.
:-)

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: 5.2 64 Xen - eth0 not starting up

Post by AlanBartlett » 2008/11/05 15:35:28

You're welcome.

A quick comment -- it might be worthwhile ensuring that the NIC operates correctly with the standard (non-xen) kernel first. In that case you would also need to download and install the kmod-r8168-8.008.00-2.x86_64.rpm file . . .

My final comment (for now) -- [i]xen[/i] is a mystery to me so, hopefully, all [i]xen[/i]-related issues will be picked up by [b]others[/b]. :-)

3Kaesehoch
Posts: 4
Joined: 2008/11/05 06:32:57
Location: 3rd rock from the sun/Canada/Saskatchewan

Re: 5.2 64 Xen - eth0 not starting up

Post by 3Kaesehoch » 2008/11/06 00:45:55

:-D
That did it, Alan.
Thanks again for your help with this.

------8
srcversion: 2E2189C8B2FEE22CF89C4B1
alias: pci:v000010ECd00008168sv*sd*bc*sc*i*
depends:
vermagic: 2.6.18-92.el5xen SMP mod_unload gcc-4.1
parm: speed:force phy operation. Deprecated by ethtool (8). (array of int)
parm: duplex:force phy operation. Deprecated by ethtool (8). (array of int)
parm: autoneg:force phy operation. Deprecated by ethtool (8). (array of int)
parm: rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)
parm: use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)
parm: debug:Debug verbosity level (0=none, ..., 16=all) (int)

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: 5.2 64 Xen - eth0 not starting up

Post by AlanBartlett » 2008/11/06 09:30:30

Excellent news. Glad to have helped. :-)

And, as I see you are a new user of the forum, "[b]Welcome to the [i]CentOS[/i] community[/b]".

Post Reply