OpenVZ Forum


Home » General » Support » *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved]
*SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #25385] Fri, 21 December 2007 17:14 Go to next message
Kevin'Z is currently offline  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 Smile.
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 #25387 is a reply to message #25385] Fri, 21 December 2007 17:55 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

Get the src code from realtek (-> http://www.realtek.com.tw/downloads/downloadsView.aspx?Langi d=1&PNid=13&PFid=5&Level=5&Conn=4&DownTy peID=3&GetDown=false#2)
and build the kernel module for your kernel.

Re: OpenVZ: No driver for NIC RTL8111/8168B [message #25388 is a reply to message #25385] Fri, 21 December 2007 19:09 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Kevin,

we need to know PCI ID numbers for Your card, could you please provide 'lspci -n' output from Your node?

Also I would like clarify: do you use rhel5-based kernel or mainstream-based 2.6.18? I would note that rhel5-based kernels have updated drivers, and probably it already support Your NIC.

thank You,
Vasily Averin
Re: OpenVZ: No driver for NIC RTL8111/8168B [message #25390 is a reply to message #25388] Fri, 21 December 2007 20:31 Go to previous messageGo to next message
dermax is currently offline  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: OpenVZ: No driver for NIC RTL8111/8168B [message #25404 is a reply to message #25385] Sat, 22 December 2007 18:34 Go to previous messageGo to next message
Kevin'Z is currently offline  Kevin'Z
Messages: 3
Registered: December 2007
Junior Member
Hi,

thanks for your answer. I'm using gentoo and I used the latest ebuild for the OpenVZ kernel (2.6.18.028.051).

I will now try to compile the module from the realtek website.

Regards,

Kevin
Re: OpenVZ: No driver for NIC RTL8111/8168B [message #25426 is a reply to message #25404] Mon, 24 December 2007 13:09 Go to previous messageGo to next message
Kevin'Z is currently offline  Kevin'Z
Messages: 3
Registered: December 2007
Junior Member
Thank you, using the driver from the realtek website works.
The only problem was, that the makefile use the currently running kernelversion for the library directory (in my case a rescue system), that is different from the kernelversion in the normal system. I had to modifie this file:
src/Makefile
#OLD:
KVER           := $(shell uname -r)
# TO NEW:
KVER            :=2.6.18-028stab051

#its used for:
KDIR            := /lib/modules/$(KVER)/build
KMISC           := /lib/modules/$(KVER)/kernel/drivers/net/


(Maybe it can help someone other.)
Re: OpenVZ: No driver for NIC RTL8111/8168B [message #25430 is a reply to message #25426] Mon, 24 December 2007 15:43 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

in enpacked src:

# make KDIR=<kerneldir> modules

help without editing the Makefile!

Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39287 is a reply to message #25385] Sat, 03 April 2010 15:52 Go to previous messageGo to next message
abdicar is currently offline  abdicar
Messages: 17
Registered: April 2010
Junior Member
"# make KDIR=<kerneldir> modules"

How I can get the path of the kernel dir?
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39289 is a reply to message #39287] Sat, 03 April 2010 17:15 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

plz post what distribtion is used on your ct0 (=hardwarenode)

Bye,
Thorsten
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39290 is a reply to message #25385] Sat, 03 April 2010 17:32 Go to previous messageGo to next message
abdicar is currently offline  abdicar
Messages: 17
Registered: April 2010
Junior Member
CentOS 5.4 32bits, default ovz kernel. ATOM 2GB RAM, soft raid 1 2 x 500GB.
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39291 is a reply to message #39290] Sat, 03 April 2010 17:57 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

you need to install the ovzkernel-devel package as well, the header files are located at
/lib/modules/<kernel_ver>/build symlink to /usr/src/<kernel_ver>

028stab068.9 :

http://download.openvz.org/kernel/branches/rhel5-2.6.18/028s tab068.9/ovzkernel-devel-2.6.18-164.15.1.el5.028stab068.9.i6 86.rpm

Bye,
Thorsten
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39292 is a reply to message #39291] Sat, 03 April 2010 18:04 Go to previous messageGo to next message
abdicar is currently offline  abdicar
Messages: 17
Registered: April 2010
Junior Member
Ok, i'm doing another fresh install on this machine to do all from zero and see if all it is working properly. I will try with your instructions (thank you in advanced!) and I will update this ticket in order to have a full reference how to make this works. I think if we can fix the issue, it will help to another in the community. Shocked
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39295 is a reply to message #25385] Sat, 03 April 2010 19:50 Go to previous messageGo to next message
abdicar is currently offline  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(Cool 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.

Quote:
[root
...

Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39296 is a reply to message #25385] Sat, 03 April 2010 20:14 Go to previous messageGo to next message
abdicar is currently offline  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 Go to previous messageGo to next message
abdicar is currently offline  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?
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39298 is a reply to message #25385] Sat, 03 April 2010 20:42 Go to previous messageGo to next message
abdicar is currently offline  abdicar
Messages: 17
Registered: April 2010
Junior Member
Quote:
[root@22491 ~]# wget http://www.abdicar.com/r8168-8.018.00.tar.bz2
--2010-04-03 22:32:06-- http://www.abdicar.com/r8168-8.018.00.tar.bz2
Resolving www.abdicar.com... 200.50.226.5
Connecting to www.abdicar.com|200.50.226.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49160 (48K) [application/x-bzip2]
Saving to: `r8168-8.018.00.tar.bz2'

100%[======================================================= ============================================================ =========== >] 49,160 --.-K/s in 0.04s

2010-04-03 22:32:06 (1.15 MB/s) - `r8168-8.018.00.tar.bz2' saved [49160/49160]

[root@22491 ~]# tar xvfz r8168-8.018.00.tar.bz2

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
[root@22491 ~]# tar xvz r8168-8.018.00.tar.bz2

[4]+ Stopped tar xvz r8168-8.018.00.tar.bz2
[root@22491 ~]# ls
lspci lspci_ovz r8168-8.018.00.tar.bz2
[root@22491 ~]# tar -xjvf r8168-8.018.00.tar.bz2
r8168-8.018.00/
r8168-8.018.00/Makefile
r8168-8.018.00/README
r8168-8.018.00/src/
r8168-8.018.00/src/rtl_eeprom.h
r8168-8.018.00/src/Makefile
r8168-8.018.00/src/r8168_asf.c
r8168-8.018.00/src/r8168.h
r8168-8.018.00/src/rtl_eeprom.c
r8168-8.018.00/src/r8168_asf.h
r8168-8.018.00/src/rtltool.h
r8168-8.018.00/src/r8168_n.c
r8168-8.018.00/src/Makefile_linux24x
r8168-8.018.00/autorun.sh
[root@22491 ~]# cd r8168-8.018.00/
[root@22491 r8168-8.018.00]# ls
autorun.sh Makefile README src
[root@22491 r8168-8.018.00]# nano README
[root@22491 r8168-8.018.00]#

[root@22491 r8168-8.018.00]# ./autorun.sh

Check old driver and unload it.
rmmod r8169
Build the module and install
/root/r8168-8.018.00/src/r8168_n.c: In function ârtl8168_tx_clearâ:
/root/r8168-8.018.00/src/r8168_n.c:8073: warning: unused variable âdevâ
Backup r8169.ko
rename r8169.ko to r8169.bak
Depending module. Please wait.
load module r8168
Completed.
[root@22491 r8168-8.018.00]#
[root@22491 r8168-8.018.00]# mii-tool
eth0: negotiated 10baseT-FD, link ok
[root@22491 r8168-8.018.00]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface venet0: Shutting down interface venet0:
[ OK ]
Shutting down loopback interface: [ OK ]
Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0
[ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Bringing up interface venet0: Bringing up interface venet0:
Configuring interface venet0:
net.ipv4.conf.venet0.send_redirects = 0
[ OK ]
[root@22491 r8168-8.018.00]# service vz restart
Shutting down CT 101
Bringing down interface venet0: [ OK ]
Stopping OpenVZ: [ OK ]
Starting OpenVZ: [ OK ]
Bringing up interface venet0: [ OK ]
Configuring interface venet0: [ OK ]
Starting CT 101: [ OK ]
[root@22491 r8168-8.018.00]#


So, now test again from the container...

Quote:
[root@22491 r8168-8.018.00]# vzctl enter 101
entered into CT 101
[root@ns01 /]# ping yahoo.com

[1]+ Stopped ping yahoo.com
[root@ns01 /]# host yahoo.com

[2]+ Stopped host 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 /]# ifconfig /all
/all: error fetching interface information: Device not found
[root@ns01 /]# ifconfig
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: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)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:165 (165.0 b)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:x.73.100.179 P-t-P:x.73.100.179 Bcast:x.73.100.179 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

[root@ns01 /]#


The correct netmask of the IP is .248, it is normal that the VPS load it on .255?
Re: *SOLVED* OpenVZ: No driver for NIC RTL8111/8168B [solved] [message #39318 is a reply to message #39298] Sun, 04 April 2010 16:59 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

SOLVED, old thread, new thread goes to:

http://forum.openvz.org/index.php?t=msg&th=8443&star t=0&
Previous Topic: Delete VPS on Source Hardware Node + VZMigrate
Next Topic: Afanasyev faced problem with iptable_nat
Goto Forum:
  


Current Time: Mon Oct 14 15:13:22 GMT 2024

Total time taken to generate the page: 0.05587 seconds