OpenVZ Forum


Home » General » Support » Host-only network for CT [ Vmware && Virtual Box style ]
Host-only network for CT [ Vmware && Virtual Box style ] [message #43343] Fri, 26 August 2011 22:12 Go to previous message
xdanx is currently offline  xdanx
Messages: 4
Registered: August 2011
Junior Member
Hey everyone!

I started working with openVZ recently and I must admit it is awesome.
I have tested Xen Server, Vmware Server & ESXI , V-Server, VirtualBox and till now and OpenVZ seems to be exactly what I want.

Unfortunately, there is 1 problem to which I cannot find a solution:

Host-only network for CTs [ Vmware , Virtual Box style ]. I simply want to create a network with private IPs, where each container + the CT0 can talk to each other.

The only similar stuff I found on the internet are these:

www.shorewall.net/OpenVZ.html [ it uses a bridge ?! ]
forum.openvz.org/index.php?t=msg&goto=13255& [ old post from 2007 ]

I managed to create a "mini" host-only network, only between 1 CT and the CT0 using the commands :

[ host ] vzctl set 100 --netif_add eth0
[ host ] ifconfig veth100.0 10.0.0.1 netmask 255.255.255.0
[ host ] vzctl enter 100
[ CT ] ifconfig eth0 10.0.0.10 netmask 255.255.255.0
[ CT ] route add default gw 10.0.0.1

And of course, with setup on the NAT on the host machine, it works.

I want this scenario because I would like to monitor the traffic to the CTs from the host [ CT0 ] , and also setup DNAT [ port forwarding ].

Thank you for your time and hope this helps a bit,
Dan
 
Read Message
Read Message
Read Message
Previous Topic: Reserve Memory on the Host Node?
Next Topic: What is cached memory in RHEL6 Node containers?
Goto Forum:
  


Current Time: Sun Aug 03 04:09:40 GMT 2025

Total time taken to generate the page: 0.65032 seconds