[Users] Ubuntu Template /dev Problems

Kirill Korotaev dev at sw.ru
Fri Jan 6 13:26:13 EST 2006


> Am Freitag, 6. Januar 2006 19:23 schrieb Greg Felter:
> 
>>I am creating an Ubuntu 5.04 template for OpenVZ and have run into a
>>problem. There are no /dev/pty, /dev/random, and /dev/urandom devices in
>>/dev. I have created these devices by the following:
>>
>>cd /vz/root/111/dev; /vz/root/111/sbin/MAKEDEV pty
> 
> 
> I think you should create them in /vz/private/111/...
actually, it's better to do
vzctl exec 111 /sbin/MAKEDEV pty
since /sbin/MAKEDEV can be untrusted executable :)
it also guarantees you that device entries will be created in VPS /dev 
directory, not in host system...

>>This creates the devices just fine. When I reboot Ubuntu the devices are
>>not there and need to be created all over again. When I created templates
>>for other linux distros I have had to create /dev/pty but they are there on
>>reboot.
>>
>>drwxr-xr-x 4 root root 4096 Jan 1 14:18 dev
>>
>>How do I solve this problem on Ubuntu? Thanks
>>
>>*Also posted to ubuntu.com support forum
>>
>>_______________________________________________
>>Users mailing list
>>Users at openvz.org
>>https://openvz.org/mailman/listinfo/users
> 
> 




More information about the Users mailing list