6,534
edits
Changes
m
Real brain power == Set up udev == Using udev you will have problems since some devices nodes are not created.For example sshd will fail to start since /dev/random and /dev/urandom are missing.So it's recommended to disable udev.Edit <code>/vz/private/777/etc/conf.d/rc</code> and change the <code>RC_DEVICES</code> line to:<pre>RC_DEVICES="static"</pre> If you want to enable udev read on dsipaly. Thanks Create some device nodes needed to enter a container: <pre>cd /vz/private/777/libmknod udev/devices/ttyp0 c 3 0mknod udev/devices/ptyp0 c 2 0mknod udev/devices/ptmx c 5 2</pre> Edit <code>/vz/private/777/etc/conf.d/rc</code> and change the <code>RC_DEVICES</code> and <code>RC_DEVICE_TARBALL</code> lines to: <pre>RC_DEVICES="udev"RC_DEVICE_TARBALL="no"</pre> You have to leave the directory you are in for the next step to be OK, otherwise you will get this error message: vzquota : (error) Quota on syscall for that answer!777: Device or resource busy vzquota on failed [3] <pre>cd /</pre>
<pre>CONFIG_PROTECT="/sbin/rc"</pre>
== Edit /etc/pam.d/chpasswd ==