[Users] Problems with Gentoo template creation
Ronald Tanner
tanner at semafor.ch
Fri Aug 11 08:53:45 EDT 2006
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
More information about the Users
mailing list