OpenVZ Forum


Home » Mailing lists » Users » Problems with Gentoo template creation
Re: Problems with Gentoo template creation [message #5067 is a reply to message #5066] Thu, 10 August 2006 12:12 Go to previous messageGo to previous message
Ronald Tanner is currently offline  Ronald Tanner
Messages: 8
Registered: August 2006
Junior Member
Thanks. Setting RC_DEVICES to static on the gentoo VE seems to fix
the dev problem.

I am currently not able to check the routing as I must rebuild
the kernel to include iptables. We want to use NAT for our VEs.

I will come back.
Ronald

Kir Kolyshkin wrote:
> 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 05:30:08 GMT 2024

Total time taken to generate the page: 0.02296 seconds