OpenVZ Forum


Home » General » Support » Host Node lost network upon install and restart (Network lost after running Openvz kernel)
Host Node lost network upon install and restart [message #51440] Thu, 05 June 2014 11:24 Go to previous message
felixchang is currently offline  felixchang
Messages: 4
Registered: June 2014
Junior Member
I am extremely new to linux and Openvz Embarassed and has been trying to setup a small test server to achieve some tasks.

I am running Centos 6.5 and has been running happily as standalone server. My network setting is extremely simple. One main ip 192.168.42.170 with two virtual ip 192.168.42.171 and 192.168.42.172.

I then follow the instruction on openvz.org/Quick_installation#Tools_installation and completed everything successfully and then reboot into openVZ.
The system rebooted ok.

So I am about to download OS template to have the fun of creating the containers. That is when I realize I do not have network.

I then make sure I am running the right kernel :

# uname -a
Linux server2.localdomain 2.6.32-042stab090.2 #1 SMP Wed May 21 19:25:13 MSK 2014 i686 i686 i386 GNU/Linux

then I check the network :

[root@server2 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr D4:AE:52:C7:F0:34
inet addr:192.168.42.170 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::d6ae:52ff:fec7:f034/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2713 errors:0 dropped:0 overruns:0 frame:0
TX packets:2164 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:811470 (792.4 KiB) TX bytes:281383 (274.7 KiB)
Interrupt:16

eth0:1 Link encap:Ethernet HWaddr D4:AE:52:C7:F0:34
inet addr:192.168.42.171 Bcast:192.168.42.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:16

eth0:2 Link encap:Ethernet HWaddr D4:AE:52:C7:F0:34
inet addr:192.168.42.172 Bcast:192.168.42.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:16

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

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: fe80::1/128 Scope:Link
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:3 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


I can not tell if anything go wrong.

After many hours of debugging, I realize the network will be back if I stop the firewall

#service iptables stop

My iptables look like

# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT


If I investigate by "tcpdump port portnum" using portnum 80 (web http) or 5901 (vncserver)and start the browser or vncserver application, no package is detected by tcpdump.

What could be blocking the port ? It only happens after I install the openvz.

I am not even sure how to continue from here now Crying or Very Sad

Any help is appreciated.



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Disk usage with plop. [SOLVED]
Next Topic: Containers Not Initializing With Usable Memory
Goto Forum:
  


Current Time: Fri Jul 26 06:31:34 GMT 2024

Total time taken to generate the page: 0.03488 seconds