OpenVZ Forum


Home » General » Support » When I Install OpenVZ, the server is not accessible. (RTL8111/8168B )
When I Install OpenVZ, the server is not accessible. [message #50475] Sat, 31 August 2013 12:32 Go to next message
comeback is currently offline  comeback
Messages: 2
Registered: August 2013
Junior Member
Hello,

I want to install OpenVZ, but I have a problem with the network card.

The Datacenter told me that this is a driver problem and I need to compile the OpenVZ kernel, with the right driver.

On the server, I installed CentOS 6.4, if I type in SSH

lspci | grep Ethernet


Here is the result

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)


Can you help me?
thank you
Re: When I Install OpenVZ, the server is not accessible. [message #50476 is a reply to message #50475] Sat, 31 August 2013 16:53 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
Hi,

do you want to say that centos6 kernel works ok, but not openvz rhel6 kernel?

I think you are doing something wrong or there is something not related to driver itself.
AFAIK openvz doesn't alter stock kernel drivers.

can you please give more details?
what kernel version you installed?
did you followed http://wiki.openvz.org/Quick_installation ?
is there some specific network setup (bonding, bridge)?

with openvz kernel:
does network card is detected?
what does show command:
ifconfig -a ?
what boot logs show?
Re: When I Install OpenVZ, the server is not accessible. [message #50477 is a reply to message #50476] Sun, 01 September 2013 09:16 Go to previous messageGo to next message
comeback is currently offline  comeback
Messages: 2
Registered: August 2013
Junior Member
Hello,

Thank you for your help.

I installed this way:

www.virtualizor.com/wiki/Install

It did not work.

I wrote to support virtualizor, they made several test and they wrote me


Quote:
Sir, can you contact DC support that when you create openvz kernel entry in grub.conf server does not boot.


I contacted the DC, they told me there was a problem with the network card.

The version of CentOS, they propose, is a modified DC Kernel for the network card works.

ifconfig -a 


dummy0    Link encap:Ethernet  HWaddr 9E:CC:4C:54:54:68
          BROADCAST NOARP  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)

eth0      Link encap:Ethernet  HWaddr 8C:89:A5:C6:B7:D4
          inet addr:xx.xxx.xxx.xx  Bcast:91.236.239.255  Mask:255.255.255.0
          inet6 addr: fe80::8e89:a5ff:fec6:b7d4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:137053 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20966 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:181762298 (173.3 MiB)  TX bytes:1788255 (1.7 MiB)
          Interrupt:41 Base address:0xc000

ip6tnl0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1452  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)

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:72 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8012 (7.8 KiB)  TX bytes:8012 (7.8 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  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)

tunl0     Link encap:IPIP Tunnel  HWaddr
          NOARP  MTU:1480  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)


I replaced my ip by xx.

I restaller CentOS, there is nothing on the server.

[Updated on: Sun, 01 September 2013 09:17]

Report message to a moderator

Re: When I Install OpenVZ, the server is not accessible. [message #50478 is a reply to message #50475] Sun, 01 September 2013 14:52 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
Quote:
I installed this way:

www.virtualizor.com/wiki/Install


there is no information about openvz install, please follow:
http://wiki.openvz.org/Quick_installation
Re: When I Install OpenVZ, the server is not accessible. [message #50479 is a reply to message #50475] Sun, 01 September 2013 15:05 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
p.s.
if you want to rebuild kernel there is article in the wiki (it's old but I think it will give idea what to do):
http://wiki.openvz.org/Kernel_build
Re: When I Install OpenVZ, the server is not accessible. [message #50482 is a reply to message #50478] Mon, 02 September 2013 06:18 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Paparaciz wrote on Sun, 01 September 2013 16:52
Quote:
I installed this way:

www.virtualizor.com/wiki/Install


there is no information about openvz install, please follow:
http://wiki.openvz.org/Quick_installation

Actually, virtualizor is a control panel that supports OpenVZ, among other things. I'm not familiar with it, but their install probably takes care of OpenVZ installation along the way.

This does seem like a kernel problem after all. If the data center requires a modified kernel in order to run plain CentOS, then OpenVZ kernel will have the same problem as the plain CentOS kernel has.

Simply put: find out what modifications they make to CentOS kernel and do the same to OpenVZ one.

Keep in mind, you'll have to do this at every kernel upgrade.
Re: When I Install OpenVZ, the server is not accessible. [message #50638 is a reply to message #50475] Thu, 26 September 2013 10:33 Go to previous message
seanfulton is currently offline  seanfulton
Messages: 105
Registered: May 2007
Senior Member
Good diagnosis, bad solution. You don't need to recompile the kernel to fix a bad network driver.

A) Load whatever kernel you want
b) Download the r8168 drivers from here: http://www.realtek.com.tw/downloads/downloadsView.aspx?Langi d=1&PNid=13&PFid=5&Level=5&Conn=4&DownTy peID=3&GetDown=false
c) compile/install the drivers with autorun.sh
d) cd to /lib/modules/KERNEL_VERSION/kernel/drivers/net
e) add r8169 to /etc/modprobe.d/blackist.conf
f) Reboot

I believe all Linux kernels come with the r8169 driver for both the r8168 and r8169 cards but they don't work well on the r8168. It's very well documented.

There is no need to recompile the kernel to change NIC drivers any more. Not for the Realtek, not for Intel, etc.

I hope this helps.

sean
Previous Topic: Script to delete VM IP on DDoS attack?
Next Topic: Can i "service network restart" on dedi?
Goto Forum:
  


Current Time: Sun Sep 01 07:19:24 GMT 2024

Total time taken to generate the page: 0.07430 seconds