OpenVZ Forum


Home » General » Support » OpenVZ and Virtuozzo
OpenVZ and Virtuozzo [message #13560] Wed, 30 May 2007 01:04 Go to next message
catbones is currently offline  catbones
Messages: 8
Registered: May 2007
Junior Member
Hello,

Okey, at this point, I've tried everything and still no luck.

I'm pretty sure it something I'm missing configuring the network. I've tried to use OpenVZ and Virtuozzo. I get the same results with both.

My problem, I install VZ, create the VE with OS, etc.. enter the one of the extra IPs, I got with the server (example: 70.22.201.192 - came as extra available ip with the server), setup a hostname, have it auto boot, and restart the VE. Everything is fine at this point, the VE starts, I can enter it using VZCTL ENTER 101.

Now I can't ssh into it using the IP, if I set something out of the blue, like 10.1.111.0.

Yes than I can ssh into it... now if I ssh into the VE from within the HN, I can look at the dirs, etc.. I just can't ping anything out or in. If I try to install cpanel, well nothing.

Anyone have a clue what I am missing.
Re: OpenVZ and Virtuozzo [message #13561 is a reply to message #13560] Wed, 30 May 2007 01:26 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Perhaps you haven't enabled IP forwarding? What does
cat /proc/sys/net/ipv4/ip_forward 

shows? Should be 1.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: OpenVZ and Virtuozzo [message #13562 is a reply to message #13561] Wed, 30 May 2007 02:13 Go to previous messageGo to next message
catbones is currently offline  catbones
Messages: 8
Registered: May 2007
Junior Member
Thanks, tried that and it comes back with "1" as enabled. Smile

I'm thinking maybe Im not entering the OpenVZ Kernel but the regular OS Kernel...
Re: OpenVZ and Virtuozzo [message #13563 is a reply to message #13562] Wed, 30 May 2007 02:35 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
uname -a


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: OpenVZ and Virtuozzo [message #13568 is a reply to message #13563] Wed, 30 May 2007 07:18 Go to previous messageGo to next message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
If you had entered the normal kernel it would not even load/start the vps.

Have you made sure you are setting the correct nameservers for the VPS, also do you have a firewall started, on the host node run service iptables stop.

Then try.
Re: OpenVZ and Virtuozzo [message #13580 is a reply to message #13560] Wed, 30 May 2007 13:44 Go to previous messageGo to next message
catbones is currently offline  catbones
Messages: 8
Registered: May 2007
Junior Member
Hi,

Thank you to everyone for helping!

I will try all of the above tips, as for the nameservers, I think I am using the correct ones. Smile

Regarding correct Kernel, after installing OpenVZ, I just reboot the machine and than get the prompt again. Do I need the concole to select which kernel to use at boot up of the machine ?

Thanks again!
Re: OpenVZ and Virtuozzo [message #13596 is a reply to message #13580] Wed, 30 May 2007 16:44 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
#cat /etc/grub.conf


paste it here and we will tell you.


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: OpenVZ and Virtuozzo [message #13600 is a reply to message #13596] Wed, 30 May 2007 17:08 Go to previous messageGo to next message
catbones is currently offline  catbones
Messages: 8
Registered: May 2007
Junior Member
title CentOS (2.6.18-8.1.3.el5.028stab033.1)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.3.el5.028stab033.1 ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.18-8.1.3.el5.028stab033.1.img
title CentOS (2.6.9-55.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-55.ELsmp.img
title CentOS (2.6.9-55.ELhugemem)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.ELhugemem ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-55.ELhugemem.img
title CentOS (2.6.9-55.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.EL ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-55.EL.img
title CentOS-4 i386 (2.6.9-42.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-42.ELsmp.img
title CentOS-4 i386-up (2.6.9-42.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-42.EL.img
Re: OpenVZ and Virtuozzo [message #13601 is a reply to message #13600] Wed, 30 May 2007 17:11 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
There should be more above those lines.

If there isn't, don't reboot your server.. Twisted Evil


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: OpenVZ and Virtuozzo [message #13603 is a reply to message #13601] Wed, 30 May 2007 17:39 Go to previous messageGo to next message
catbones is currently offline  catbones
Messages: 8
Registered: May 2007
Junior Member
Hello,

Actually there is. I don't think its a problem with Kernel, as I can create the VE and set ips, nameservers, etc... I can even enter the VE from the HN. The only think I can't do, is Ping anything from within VE, nor can I install cPanel if I wanted to.

When I do try to ping something from within the VE I entered into, all I get is blank space, looks like its waiting. Than I get no errors, just comes back to prompt.

Any ideas?



============================================================ ====
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=20
#splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-8.1.3.el5.028stab033.1)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.3.el5.028stab033.1 ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.18-8.1.3.el5.028stab033.1.img
title CentOS (2.6.9-55.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-55.ELsmp.img
title CentOS (2.6.9-55.ELhugemem)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.ELhugemem ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-55.ELhugemem.img
title CentOS (2.6.9-55.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.EL ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-55.EL.img
title CentOS-4 i386 (2.6.9-42.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-42.ELsmp.img
title CentOS-4 i386-up (2.6.9-42.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-42.EL.img
Re: OpenVZ and Virtuozzo [message #13604 is a reply to message #13603] Wed, 30 May 2007 18:09 Go to previous messageGo to next message
catbones is currently offline  catbones
Messages: 8
Registered: May 2007
Junior Member
Hello,

Another update. Looks like I can't even ping the HN from within the VE.

Serious help needed Sad
Re: OpenVZ and Virtuozzo [message #13606 is a reply to message #13604] Wed, 30 May 2007 18:30 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
*HN# vzctl set XX --ipdel all --save; vzctl set XX --ipadd x.x.x.x --save; ifconfig; route -n; iptables -L -n; iptables -L -n -t nat; cat /proc/sys/net/ipv4/ip_forward

*VE# ifconfig

--

run these in seperate terminals:

VE# ping 4.2.2.1

*HN# tcpdump -nvvv -p icmp



--

Paste the output of the commands starting with * and we should be able to see the networking problem.


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: OpenVZ and Virtuozzo [message #13608 is a reply to message #13606] Wed, 30 May 2007 19:02 Go to previous messageGo to next message
catbones is currently offline  catbones
Messages: 8
Registered: May 2007
Junior Member
Thanks for the help in advance.


============================================================ ====
[root@server1 /]# vzctl set 101 --ipdel all --save; vzctl set 101 --ipadd 75.126.166.16 --save; ifconfig; route -n; iptables -L -n; iptables -L -n -t nat; cat /proc/sys/net/ipv4/ip_forward
Deleting IP address(es): 75.126.166.16
Adding IP address(es):
Saved parameters for VE 101
Adding IP address(es): 75.126.166.16
Saved parameters for VE 101
eth0 Link encap:Ethernet HWaddr 00:30:48:5F:17:BC
inet addr:10.11.166.194 Bcast:10.11.166.255 Mask:255.255.255.192
inet6 addr: fe80::230:48ff:fe5f:17bc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2472 errors:0 dropped:0 overruns:0 frame:0
TX packets:2046 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:434333 (424.1 KiB) TX bytes:177055 (172.9 KiB)
Interrupt:58 Base address:0x6000

eth1 Link encap:Ethernet HWaddr 00:30:48:5F:17:BD
inet addr:75.126.141.122 Bcast:75.126.141.127 Mask:255.255.255.248
inet6 addr: fe80::230:48ff:fe5f:17bd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15047 errors:0 dropped:0 overruns:0 frame:0
TX packets:13154 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1481735 (1.4 MiB) TX bytes:1916905 (1.8 MiB)
Interrupt:225

eth1:0 Link encap:Ethernet HWaddr 00:30:48:5F:17:BD
inet addr:75.126.166.16 Bcast:75.126.166.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:225

eth1:1 Link encap:Ethernet HWaddr 00:30:48:5F:17:BD
inet addr:75.126.166.17 Bcast:75.126.166.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:225

eth1:2 Link encap:Ethernet HWaddr 00:30:48:5F:17:BD
inet addr:75.126.166.18 Bcast:75.126.166.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:225

eth1:3 Link encap:Ethernet HWaddr 00:30:48:5F:17:BD
inet addr:75.126.166.19 Bcast:75.126.166.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:225

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

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2027 (1.9 KiB) TX bytes:832 (832.0 b)

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
75.126.166.16 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
75.126.141.120 0.0.0.0 255.255.255.248 U 0 0 0 eth1
10.11.166.192 0.0.0.0 255.255.255.192 U 0 0 0 eth0
75.126.166.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
10.0.0.0 10.11.166.193 255.0.0.0 UG 0 0 0 eth0
0.0.0.0 75.126.141.121 0.0.0.0 UG 0 0 0 eth1
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
1
[root@server1 /]# vzctl enter 101
entered into VE 101
[root@vps101 /]# 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:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:55 (55.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:75.126.166.16 P-t-P:75.126.166.16 Bcast:75.126.166.16 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
============================================================ =====





============================================================ =====
[root@vps101 /]# ping 4.2.2.1
PING 4.2.2.1 (4.2.2.1) 56(84) bytes of data.
got signal 15
exited from VE 101
[root@server1 ~]# tcpdump -nvvv -p icmp
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes

0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@server1 ~]#
============================================================ =====

There you go.
Re: OpenVZ and Virtuozzo [message #13609 is a reply to message #13608] Wed, 30 May 2007 19:08 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
it looks like your HN and VE both have the address of 75.126.166.16 , is this correct? since the HN and VE are different "devices" on the network, only one should have a given ip address.



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: OpenVZ and Virtuozzo [message #13610 is a reply to message #13609] Wed, 30 May 2007 19:10 Go to previous message
catbones is currently offline  catbones
Messages: 8
Registered: May 2007
Junior Member
Hi,

Actually no, the 75.126.166.16 is one of the free addresses I received when getting the HN. The HN has a different ip.
Previous Topic: *SOLVED* Is there a way to "suspend" a VE?
Next Topic: *SOLVED* Ubuntu Templates?
Goto Forum:
  


Current Time: Tue Aug 27 10:48:10 GMT 2024

Total time taken to generate the page: 0.04832 seconds