veth: No Connection between host and guest [message #16289] |
Thu, 30 August 2007 13:21 |
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
|
|
|