OpenVZ Forum


Home » General » Support » veth: No Connection between host and guest
veth: No Connection between host and guest [message #16289] Thu, 30 August 2007 13:21 Go to previous message
Barzille is currently offline  Barzille
Messages: 5
Registered: August 2007
Junior Member
Hello there,
I am comparing different vm solutions for performance and security aspects and now I want to try out openVZ.

My system is the following:

Ubuntu 7.04 as Host with 2.6.18-028stab035.1-ovz-smp kernel. I installed ubuntu-6.06-i386-minimal template as guest.

Because I want to have an IP Adress for each VE in my LAN and internet access I decided to use veth devices. I performed the following steps mentioned in the wiki:
1. vzctl create 101 --ostemplate ubuntu....
2. vzctl set 101 --hostname guest1 --save
3. vzctl set 101 --netif_add eth0,onerandommacaddress,veth101.0,anotherrandommacaddress --save
4. After that I used the script for persistent veth connection and added those two lines in my config file. VETH_IP_ADDRESS = 192.168.160.94 and CONFIG_CUSTOMIZED="yes"
5. In my host system and in the guest are forwarding, proxy_arp and ip_forward enabled for veth101.0 (host) and eth0 (guest)
6. (guest) /etc/resolve.conf has the same entries as in the file at host
7. I added a default route in guestsystem: /sbin/ip route add default dev eth0
8. and now, there's no connection via ping neither to the host, nor to the internet and vice versa

Any hints?

Thank you

[Updated on: Thu, 30 August 2007 14:30]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: vzcpucheck & sparc problem
Next Topic: Find out how many VE per server - while in VE
Goto Forum:
  


Current Time: Sat Oct 12 21:19:53 GMT 2024

Total time taken to generate the page: 0.06510 seconds