OpenVZ Forum


Home » Mailing lists » Users » Problems with Gentoo template creation
Re: Problems with Gentoo template creation [message #5066 is a reply to message #5064] Thu, 10 August 2006 08:21 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Ronald Tanner wrote:
> No problem, I can create these devices.
> However after a reboot they are lost because /dev is mounted
> on tmpfs and gentoo uses udev.
>
Can you make it NOT use udev? The thing is udev is really useless in a VE.
Probably setting RC_DEVICES="static" in /etc/conf.d/rc helps.
> Besides: do you have any idea why I have to set the routes
>
> /sbin/route add -net 191.255.255.1 netmask 255.255.255.255 dev venet0
> /sbin/route add default gw 191.255.255.1
>
> on the VE by hand to get the net working?
>
This is a trick to have everything routed to venet0. To set it
automatically (by vzctl) you have to name your template
gentoo-(something), so vzctl will guess this is gentoo (by looking at
the value of OSTEMPLATE in /etc/vz/conf/NNN.conf) and will apply the
appropriate scripts when doing vzctl set NNN --ipadd --save

Can you try this instead:
/sbin/route add default dev venet0
and check if it will work for you?
 
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 07:28:46 GMT 2024

Total time taken to generate the page: 0.02266 seconds