[Users] Problems with Gentoo template creation

Kir Kolyshkin kir at openvz.org
Thu Aug 10 08:20:22 EDT 2006


Ronald Tanner wrote:
> Thanks. Setting  RC_DEVICES to static on the gentoo VE seems to fix
> the dev problem.
>   
Can you put this finding (as well as anything else you found) to the 
appropriate wiki page?
> 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?
>>     
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>   



More information about the Users mailing list