*SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #25385] |
Fri, 21 December 2007 17:14 |
Kevin'Z
Messages: 3 Registered: December 2007
|
Junior Member |
|
|
Dear Community,
I've got a server with a Realtek NIC:
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
But the problem is, that the OpenVZ Kernel 2.6.18 (actual revision 51) has no support for this NIC. VServer sources (2.6.20) and normal sources (2.6.23) works quite well.
(All kernels are compiled by myself and based on the same config)
I would prefer OpenVZ instead of VServer, but a server is not very useful without an ethernet connection .
Is there any way to get the NIC working in OpenVZ?
Thanks a lot for answers,
Kevin
[Updated on: Mon, 24 December 2007 13:32] by Moderator Report message to a moderator
|
|
|
|
|
Re: OpenVZ: No driver for NIC RTL8111/8168B [message #25390 is a reply to message #25388] |
Fri, 21 December 2007 20:31 |
dermax
Messages: 5 Registered: November 2006
|
Junior Member |
|
|
Hi,
I do have the same NIC, heres the lspci -n output:
04:00.0 0200: 10ec:8168 (rev 01)
Thanks!
edit:
I have just tested the kernel 2.6.18-ovz-028stab051.1-smp from the debian.systc.org repository, it works flawlessly with *my* card - though I doubt that we're not talking about the same one.
[Updated on: Fri, 21 December 2007 22:15] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39295 is a reply to message #25385] |
Sat, 03 April 2010 19:50 |
abdicar
Messages: 17 Registered: April 2010
|
Junior Member |
|
|
Ok, Here we go.
BEFORE KERNEL UPDATE
Quote: | [root@22491 ~]# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb3[1] sda3[0]
479998016 blocks [2/2] [UU]
md0 : active raid1 sdb1[1] sda1[0]
4192832 blocks [2/2] [UU]
unused devices: <none>
[root@22491 ~]# free -m
total used free shared buffers cached
Mem: 2010 336 1674 0 20 180
-/+ buffers/cache: 134 1875
Swap: 8189 0 8189
[root@22491 ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@22491 ~]# uname -a
Linux 22491.server.local 2.6.18-164.15.1.el5PAE #1 SMP Wed Mar 17 12:14:29 EDT 2010 i686 i686 i386 GNU/Linux
[root@22491 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 3.9G 1.3G 2.5G 35% /
/dev/md1 444G 199M 421G 1% /vz
tmpfs 1006M 0 1006M 0% /dev/shm
[root@22491 ~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU D510 @ 1.66GHz
stepping : 10
cpu MHz : 1666.746
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3333.49
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU D510 @ 1.66GHz
stepping : 10
cpu MHz : 1666.746
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3466.70
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU D510 @ 1.66GHz
stepping : 10
cpu MHz : 1666.746
cache size : 512 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3333.19
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU D510 @ 1.66GHz
stepping : 10
cpu MHz : 1666.746
cache size : 512 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3333.15
[root@22491 ~]#
|
Now the result from lspci -vv
Quote: | 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: Intel Corporation Unknown device d615
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 58
Region 0: I/O ports at 1000 [size=256]
Region 2: Memory at e0004000 (64-bit, prefetchable) [size=4K]
Region 4: Memory at e0000000 (64-bit, prefetchable) [size=16K]
Expansion ROM at e0020000 [disabled] [size=128K]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable+
Address: 00000000fee03000 Data: 403a
Capabilities: [70] Express Endpoint IRQ 1
Device: Supported: MaxPayload 256 bytes, PhantFunc 0, ExtTag-
Device: Latency L0s <512ns, L1 <64us
Device: AtnBtn- AtnInd- PwrInd-
Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-
Device: RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
Device: MaxPayload 128 bytes, MaxReadReq 4096 bytes
Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s L1, Port 0
Link: Latency L0s <512ns, L1 <64us
Link: ASPM Disabled RCB 64 bytes CommClk- ExtSynch-
Link: Speed 2.5Gb/s, Width x1
Capabilities: [ac] MSI-X: Enable- Mask- TabSize=4
Vector table: BAR=4 offset=00000000
PBA: BAR=4 offset=00000800
Capabilities: [cc] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 00-e0-4c-68-00-00-00-03
|
Ok, now I'm going to install the ovzkernel.i686 0:2.6.18-164.15.1.el5.028stab068.9 and ovzkernel-devel.i686 0:2.6.18-164.15.1.el5.028stab068.9.
Ok, both installed.
Quote: | [root@22491 ~]# rpm -qa | grep ovz
ovzkernel-2.6.18-164.15.1.el5.028stab068.9
ovzkernel-devel-2.6.18-164.15.1.el5.028stab068.9
[root@22491 ~]#
|
Now I edit the /boot/grub/grub.conf.
Quote: | # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/md0
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title OpenVZ (2.6.18-164.15.1.el5.028stab068.9)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-164.15.1.el5.028stab068.9 ro root=/dev/md0
initrd /boot/initrd-2.6.18-164.15.1.el5.028stab068.9.img
title CentOS (2.6.18-164.15.1.el5PAE)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-164.15.1.el5PAE ro root=/dev/md0
initrd /boot/initrd-2.6.18-164.15.1.el5PAE.img
title CentOS (2.6.18-164.15.1.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-164.15.1.el5 ro root=/dev/md0
initrd /boot/initrd-2.6.18-164.15.1.el5.img
title CentOS (2.6.18-164.el5PAE)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-164.el5PAE ro root=/dev/md0
initrd /boot/initrd-2.6.18-164.el5PAE.img
title CentOS-base (2.6.18-164.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-164.el5 ro root=/dev/md0
initrd /boot/initrd-2.6.18-164.el5.img
|
Now sysctl edited.
Quote: | # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl( and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1
# We do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536
# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
/etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0
|
After all correct... Lets reboot.
...
|
|
|
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39296 is a reply to message #25385] |
Sat, 03 April 2010 20:14 |
abdicar
Messages: 17 Registered: April 2010
|
Junior Member |
|
|
Ok, installing...
Quote: | [root@22491 ~]# yum install vzctl vzquota
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrordenver.fdcservers.net
* base: mirrordenver.fdcservers.net
* extras: mirrordenver.fdcservers.net
* openvz-kernel-rhel5: mirrors.igsobe.com
* openvz-utils: mirrors.igsobe.com
* updates: mirrordenver.fdcservers.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vzctl.i386 0:3.0.23-1 set to be updated
--> Processing Dependency: vzctl-lib = 3.0.23-1 for package: vzctl
--> Processing Dependency: libvzctl-0.0.2.so for package: vzctl
---> Package vzquota.i386 0:3.0.12-1 set to be updated
--> Running transaction check
---> Package vzctl-lib.i386 0:3.0.23-1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
============================================================ ============================================================ =================================
Package Arch Version Repository Size
============================================================ ============================================================ =================================
Installing:
vzctl i386 3.0.23-1 openvz-utils 143 k
vzquota i386 3.0.12-1 openvz-utils 82 k
Installing for dependencies:
vzctl-lib i386 3.0.23-1 openvz-utils 175 k
Transaction Summary
============================================================ ============================================================ =================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 400 k
Is this ok [y/N]: y
Downloading Packages:
http://mirrors.igsobe.com/openvzcurrent/vzquota-3.0.12-1.i38 6.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
(1/3): vzquota-3.0.12-1.i386.rpm | 82 kB 00:00
(2/3): vzctl-3.0.23-1.i386.rpm | 143 kB 00:00
(3/3): vzctl-lib-3.0.23-1.i386.rpm | 175 kB 00:00
------------------------------------------------------------ ------------------------------------------------------------ ---------------------------------
Total 198 kB/s | 400 kB 00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : vzctl-lib 1/3
Installing : vzquota 2/3
Installing : vzctl 3/3
Installed:
vzctl.i386 0:3.0.23-1 vzquota.i386 0:3.0.12-1
Dependency Installed:
vzctl-lib.i386 0:3.0.23-1
Complete!
[root@22491 ~]# /sbin/service vz start
Starting OpenVZ: [ OK ]
Bringing up interface venet0: [ OK ]
Configuring interface venet0: [ OK ]
[root@22491 ~]#
|
ok now, lets create a demo container...
Quote: | [root@22491 cache]# wget http://download.openvz.org/template/precreated/centos-5-x86. tar.gz
--2010-04-03 22:03:04-- http://download.openvz.org/template/precreated/centos-5-x86. tar.gz
Resolving download.openvz.org... 64.131.90.11
Connecting to download.openvz.org|64.131.90.11|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 179985449 (172M) [application/x-gzip]
Saving to: `centos-5-x86.tar.gz'
100%[======================================================= ======================================================== >] 179,985,449 1.12M/s in 2m 34s
2010-04-03 22:05:38 (1.11 MB/s) - `centos-5-x86.tar.gz' saved [179985449/179985449]
[root@22491 cache]#
[root@22491 cache]# vzctl create 101 --ostemplate centos-5-x86
Unable to get full ostemplate name for centos-5-x86
Creating container private area (centos-5-x86)
Performing postcreate actions
Container private area was created
[root@22491 cache]# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
101 - stopped - -
[root@22491 cache]# vzctl set 101 --ipadd x.73.100.179 --save
Saved parameters for CT 101
[root@22491 cache]# vzctl set 101 --nameserver 4.2.2.1 --save
Saved parameters for CT 101
[root@22491 cache]# vzctl start 101
Starting container ...
Container is mounted
Adding IP address(es): x.73.100.179
Setting CPU units: 1000
Configure meminfo: 65536
File resolv.conf was modified
Container start in progress...
[root@22491 cache]# ping x.73.100.179
PING x.73.100.179 (x.73.100.179) 56(84) bytes of data.
64 bytes from x.73.100.179: icmp_seq=1 ttl=64 time=0.073 ms
64 bytes from x.73.100.179: icmp_seq=2 ttl=64 time=0.046 ms
[3]+ Stopped ping x.73.100.179
[root@22491 cache]# vzctl -a
Bad command: -a
[root@22491 cache]# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
101 8 running x.73.100.179 -
[root@22491 cache]# vzctl set 101 --hostname ns01.test.com --save
Set hostname: ns01.test.com
Saved parameters for CT 101
[root@22491 cache]# vzctl enter 101
entered into CT 101
[root@ns01 /]# hostname
ns01.test.com
[root@ns01 /]# hostname -i
x.73.100.179
|
Ok, Now; all start to failed.
Quote: | [root@ns01 /]# ping www.yahoo.com
[1]+ Stopped ping www.yahoo.com
[root@ns01 /]# mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not permitted
SIOCGMIIPHY on 'eth1' failed: Operation not permitted
SIOCGMIIPHY on 'eth2' failed: Operation not permitted
SIOCGMIIPHY on 'eth3' failed: Operation not permitted
SIOCGMIIPHY on 'eth4' failed: Operation not permitted
SIOCGMIIPHY on 'eth5' failed: Operation not permitted
SIOCGMIIPHY on 'eth6' failed: Operation not permitted
SIOCGMIIPHY on 'eth7' failed: Operation not permitted
no MII interfaces found
[root@ns01 /]# ethtool eth0
Settings for eth0:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available
[root@ns01 /]# ifconfig /all
/all: error fetching interface information: Device not found
[root@ns01 /]# service network restart
Shutting down interface venet0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface venet0: SIOCADDRT: Network is unreachable
[ OK ]
[root@ns01 /]#
|
So, now? I should recompile the driver of the NIC or It is another problem?
...
[Updated on: Sat, 03 April 2010 20:17] Report message to a moderator
|
|
|
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39297 is a reply to message #25385] |
Sat, 03 April 2010 20:24 |
abdicar
Messages: 17 Registered: April 2010
|
Junior Member |
|
|
I dont know what i should do now... the system show that i'm running the driver in the rev03.
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: Intel Corporation Unknown device d615
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 58
Region 0: I/O ports at 1000 [size=256]
Region 2: Memory at e0004000 (64-bit, prefetchable) [size=4K]
Region 4: Memory at e0000000 (64-bit, prefetchable) [size=16K]
Expansion ROM at e0020000 [disabled] [size=128K]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable+
Address: 00000000fee03000 Data: 403a
Capabilities: [70] Express Endpoint IRQ 1
Device: Supported: MaxPayload 256 bytes, PhantFunc 0, ExtTag-
Device: Latency L0s <512ns, L1 <64us
Device: AtnBtn- AtnInd- PwrInd-
Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-
Device: RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
Device: MaxPayload 128 bytes, MaxReadReq 4096 bytes
Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s L1, Port 0
Link: Latency L0s <512ns, L1 <64us
Link: ASPM Disabled RCB 64 bytes CommClk- ExtSynch-
Link: Speed 2.5Gb/s, Width x1
Capabilities: [ac] MSI-X: Enable- Mask- TabSize=4
Vector table: BAR=4 offset=00000000
PBA: BAR=4 offset=00000800
Capabilities: [cc] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 00-e0-4c-68-00-00-00-03
[root@22491 cache]# lspci -n
00:00.0 0600: 8086:a000 (rev 02)
00:02.0 0300: 8086:a001 (rev 02)
00:1c.0 0604: 8086:27d0 (rev 01)
00:1c.1 0604: 8086:27d2 (rev 01)
00:1c.2 0604: 8086:27d4 (rev 01)
00:1c.3 0604: 8086:27d6 (rev 01)
00:1d.0 0c03: 8086:27c8 (rev 01)
00:1d.1 0c03: 8086:27c9 (rev 01)
00:1d.2 0c03: 8086:27ca (rev 01)
00:1d.3 0c03: 8086:27cb (rev 01)
00:1d.7 0c03: 8086:27cc (rev 01)
00:1e.0 0604: 8086:2448 (rev e1)
00:1f.0 0601: 8086:27bc (rev 01)
00:1f.2 0101: 8086:27c0 (rev 01)
00:1f.3 0c05: 8086:27da (rev 01)
01:00.0 0200: 10ec:8168 (rev 03)
So it is updated... What I can do now?
|
|
|
|
|