OpenVZ Forum


Home » Mailing lists » Users » Problems with Gentoo template creation
Re: Problems with Gentoo template creation [message #5099 is a reply to message #5068] Fri, 11 August 2006 12:53 Go to previous messageGo to previous message
Ronald Tanner is currently offline  Ronald Tanner
Messages: 8
Registered: August 2006
Junior Member
My experiments show that setting the route with

/sbin/route add default dev venet0

on the VPS is sufficient.

localhost / # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 venet0

But if you have the line

OSTEMPLATE=gentoo-something

in your config file (eg. /etc/vz/777.conf) the routes are added
automatically when you set up the ip address. However they look
different:

localhost / # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
191.255.255.0 0.0.0.0 255.255.255.0 U 0 0 0 venet0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 191.255.255.1 0.0.0.0 UG 0 0 0 venet0

for me these routes are somehow strange.

And there is another step in the preparation of the os template which
needs some explanation. Why do I have to replace /etc/mtab with
a link to /proc/mounts?

Regards
Ronald
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: -bash: child setpgid (7091 to 8093): Operation not permitted
Next Topic: Can't ping VE from Host
Goto Forum:
  


Current Time: Sat Jul 20 01:38:03 GMT 2024

Total time taken to generate the page: 0.02276 seconds