OpenVZ Forum


Home » General » Support » two NICs in openvz
two NICs in openvz [message #35168] Fri, 06 March 2009 16:14 Go to next message
arulP is currently offline  arulP
Messages: 18
Registered: March 2009
Location: india
Junior Member

I have two ethernet cards in my pc and the ordinary kernel has automatically detected those cards but the openvz kernel is not detecting the second card.Is there any way to install the second card?Or does the openvz kernel supports two ethernet cards?
Re: two NICs in openvz [message #35170 is a reply to message #35168] Fri, 06 March 2009 17:17 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


the ordinary kernel has automatically detected those cards



what version is that kernel? And what kind of OpenVZ kernel do you use?

Quote:


but the openvz kernel is not detecting the second card.


How did you detect this?
Are you sure that appropriate driver is loaded?
What kind of network card do you have (check "lspci", "lspci -n" output)?
Show also "ip a l" when OpenVZ and nonOpenVZ kernels are loaded.

Re: two NICs in openvz [message #35181 is a reply to message #35170] Sat, 07 March 2009 04:37 Go to previous messageGo to next message
vijayan is currently offline  vijayan
Messages: 1
Registered: March 2009
Location: coimbatore
Junior Member
ordinary kernel:2.6.25-14.fc9.i686

openvzkernel:2.6.18-92.1.18.el5.028stab060.2

[root@yahoo4 ~]# lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 10)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
04:00.0 Ethernet controller: Hangzhou Silan Microelectronics Co., Ltd. RTL8139D [Realtek] PCI 10/100BaseTX ethernet adaptor (rev 01)<----------------------


[root@yahoo4 ~]# lspci -n
00:00.0 0600: 8086:29c0 (rev 10)
00:01.0 0604: 8086:29c1 (rev 10)
00:02.0 0300: 8086:29c2 (rev 10)
00:1b.0 0403: 8086:27d8 (rev 01)
00:1c.0 0604: 8086:27d0 (rev 01)
00:1c.1 0604: 8086:27d2 (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:244e (rev e1)
00:1f.0 0601: 8086:27b8 (rev 01)
00:1f.1 0101: 8086:27df (rev 01)
00:1f.2 0101: 8086:27c0 (rev 01)
00:1f.3 0c05: 8086:27da (rev 01)
02:00.0 0200: 1969:1048 (rev b0)
04:00.0 0200: 1904:8139 (rev 01)



[root@yahoo4 ~]# ip a l
2: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:23:54:17:a9:e5 brd ff:ff:ff:ff:ff:ff
inet 192.168.4.103/24 brd 192.168.4.255 scope global eth0
inet6 fe80::223:54ff:fe17:a9e5/64 scope link
valid_lft forever preferred_lft forever
1: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
6: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
3: tunl0: <NOARP> mtu 1480 qdisc noop
link/ipip 0.0.0.0 brd 0.0.0.0
5: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/void
Re: two NICs in openvz [message #35182 is a reply to message #35181] Sat, 07 March 2009 04:39 Go to previous messageGo to next message
arulP is currently offline  arulP
Messages: 18
Registered: March 2009
Location: india
Junior Member

ordinary kernel:2.6.25-14.fc9.i686

openvzkernel:2.6.18-92.1.18.el5.028stab060.2

[root@yahoo4 ~]# lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 10)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
04:00.0 Ethernet controller: Hangzhou Silan Microelectronics Co., Ltd. RTL8139D [Realtek] PCI 10/100BaseTX ethernet adaptor (rev 01)<----------------------


[root@yahoo4 ~]# lspci -n
00:00.0 0600: 8086:29c0 (rev 10)
00:01.0 0604: 8086:29c1 (rev 10)
00:02.0 0300: 8086:29c2 (rev 10)
00:1b.0 0403: 8086:27d8 (rev 01)
00:1c.0 0604: 8086:27d0 (rev 01)
00:1c.1 0604: 8086:27d2 (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:244e (rev e1)
00:1f.0 0601: 8086:27b8 (rev 01)
00:1f.1 0101: 8086:27df (rev 01)
00:1f.2 0101: 8086:27c0 (rev 01)
00:1f.3 0c05: 8086:27da (rev 01)
02:00.0 0200: 1969:1048 (rev b0)
04:00.0 0200: 1904:8139 (rev 01)



[root@yahoo4 ~]# ip a l
2: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:23:54:17:a9:e5 brd ff:ff:ff:ff:ff:ff
inet 192.168.4.103/24 brd 192.168.4.255 scope global eth0
inet6 fe80::223:54ff:fe17:a9e5/64 scope link
valid_lft forever preferred_lft forever
1: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
6: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
3: tunl0: <NOARP> mtu 1480 qdisc noop
link/ipip 0.0.0.0 brd 0.0.0.0
5: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/void
Re: two NICs in openvz [message #35213 is a reply to message #35182] Tue, 10 March 2009 07:52 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

this is not OpenVZ problem
according to http://hardware4linux.info/component/8137/
this driver is included in kernels >= 2.6.21
but 2.6.18-92.1.18.el5.028stab060.2 is based on
2.6.18 RHEL5 kernels.

I didn't manage to find sources for RHEL5 2.6.18 kernels.

Then I tried sources for altlinux
http://ftp.altlinux.org/pub/people/vsu/sc92031/x86_64/RPMS.h asher/

I installed kernel-devel package for OpenVZ kernel,
and extracted sc92031.c from kernel-source-sc92031-2.0c-alt1.noarch.rpm
The only change I made is
"#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)".
Driver is compiled but I have no chance to check if it's workable.
I attached source, binary files and Makefile just in case.
  • Attachment: sc92031.c
    (Size: 40.42KB, Downloaded 200 times)
  • Attachment: sc92031.ko
    (Size: 24.91KB, Downloaded 151 times)
  • Attachment: Makefile
    (Size: 0.13KB, Downloaded 171 times)
Previous Topic: Is privvmpages's MAX limited to the amount of RAM on a computer
Next Topic: exec script on HN @ CT-start
Goto Forum:
  


Current Time: Mon Sep 16 15:40:16 GMT 2024

Total time taken to generate the page: 0.04709 seconds