OpenVZ Forum


Home » General » Support » External network access from a CT /CT0 inside Virtualbox
External network access from a CT /CT0 inside Virtualbox [message #37478] Tue, 15 September 2009 13:26 Go to next message
Raphael HBS is currently offline  Raphael HBS
Messages: 3
Registered: September 2009
Location: France
Junior Member
Hi,

Here is my network.
                     Internet
                         |
                 +---------------+
                 |     Router    |
                 | 192.168.1.254 |
                 +---------------+
                         |
                         |
+----------------------------------------------------+
|                 Ubuntu 9.10 64bits                 |
|                with VirtualBox 3.0                 |
|                    192.168.1.3                     |
|                                                    |
| +-----VBox-CT0---------+  +---------VBox--------+  |
| |  Debian Lenny 64b    |  | Ubuntu 9.10 64bits  |  |
| |  With openVZ kernel  |  |    192.168.1.4      |  |
| |     192.168.1.5      |  +---------------------+  |
| | +-------CT-101-----+ |                           |
| | | Debian Lenny 32b | |                           |
| | |    192.168.1.101 | |                           |
| | +------------------+ |                           |
| +----------------------+                           |
+----------------------------------------------------+


I have configured sysctl.conf of the Lenny 64b (a virtualbox VPE) according to the wiki.

From all OS (including virtualbox, hosts, CT0), I can ping the CT (101), the router and internet
From the CT 101, I can ping every ip but the router and internet.

I don't understand why it cannot work.

The main Ubuntu 64 bit has bridge, each Virtualbox use bridged network.
CT0 use vnet.

Can you help me, please?
Re: External network access from a CT /CT0 inside Virtualbox [message #37479 is a reply to message #37478] Tue, 15 September 2009 13:30 Go to previous messageGo to next message
Raphael HBS is currently offline  Raphael HBS
Messages: 3
Registered: September 2009
Location: France
Junior Member
All my iptables are empty.
I have tried
vzctl exec 101 tcpdump -i venet0 -e host 192.168.1.254


with this result

tcpdump: WARNING: arptype 65535 not supported by libpcap - falling back to cooked socket
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on venet0:0, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
19:28:19.780509 Out ethertype IPv4 (0x0800), length 100: debian.dev.local > 192.168.1.254: ICMP echo request, id 64257, seq 2237, length 64
19:28:19.780793 Out ethertype IPv4 (0x0800), length 88: debian.dev.local.36560 > 192.168.1.254.domain: 7037+ PTR? 254.1.168.192.in-addr.arpa. (44)


all other tcpdump test return nothing special.
Re: External network access from a CT /CT0 inside Virtualbox [message #38028 is a reply to message #37478] Mon, 09 November 2009 14:56 Go to previous messageGo to next message
Kaloo is currently offline  Kaloo
Messages: 2
Registered: November 2009
Junior Member
Same problem here, with the exact same setup (64bits hosts, 32 bits guest).

However I suspect the problem comes from Virtualbox. I already had problems with VirtualBox bridged network...

I'll continue searching, but if someone has a solution or even had it working once, please post it. OpenVZ in VirtualBox would be really cool for testing purposes.
Re: External network access from a CT /CT0 inside Virtualbox [message #38031 is a reply to message #37478] Mon, 09 November 2009 18:17 Go to previous message
Kaloo is currently offline  Kaloo
Messages: 2
Registered: November 2009
Junior Member
Wow, I just found out that the problem was, as often, between the keyboard and the seat.

I works much better if you allow IP forwarding on the (virtualized or not) hardware node :

Simply uncomment this line in /etc/sysctl.conf :
net.ipv4.ip_forward=1
Previous Topic: OpenVZ and OpenVPN
Next Topic: Maximum number of processes / threads of the OpenVZ HN?
Goto Forum:
  


Current Time: Tue Jul 29 06:13:13 GMT 2025

Total time taken to generate the page: 0.56201 seconds