Changes

Jump to: navigation, search

Physical to container

65 bytes added, 00:06, 9 January 2008
Introduction: static /dev: formatting, wording, wikipedia link
==== Introduction: static /dev ====
In order for VE to work, some nodes should be present in VE's <code>/dev</code><code></code>. For modern distributions, udev is taking care of it. For a variety of reasons udev doesn't make much sense in a VE, so the best thing to do is to disable udev and create needed device nodes manually.Please pay attention to the access permissions of the created files: there is the default file system mode for newly created files which provides by umask ( See: http://en.wikipedia.org/wiki/Umask ). You can use --mode option for mknod to set the desired permissions.
Note that in some distributions <code>/dev</code> is mounted on <code>tmpfs </code> — this will not work in case of static <code>/dev</code>. So what you need to do is find out where <code>/dev</code> is being mounted on <code>tmpfs </code> and remove this. This is highly distribution-dependent; please add info for your distro here.
After you made sure your <code>/dev </code> is static, populate it with needed device nodes. Please pay attention to the access permissions of the device files being created: a default file mode for newly created files is affected by <code>umask</code> ([w:umask]). You can use --mode option for <code>mknod</code> to set the desired permissions.
==== tty device nodes ====

Navigation menu