devfs in jails
Matthew Dillon
dillon at apollo.backplane.com
Mon Oct 26 11:04:44 PDT 2009
:I've configured a jailed system in 2.5.1-DEVELOPMENT on a Dell Mini 9
:[1]. Most everything works as expected following the man page.
:
:elijah at bop:~> jls
:JID Hostname Path IPs
:5 blip /usr/jail/blip 2001:05c0:1105:1201::0001 127.0.0.1
:
:Very cool. The one trouble I ran into is with devfs. The Handbook
:refers to MAKEDEV. Is MAKEDEV still used in 2.4, or is the Handbook
:just out of date? I was able to get SSH working in the jail once I got
:devfs working via a 'mount_devfs devfs /usr/jail/blip/dev'.
:
:Is this the right way to mount devfs in a jail?
:
:Thanks
:
:Elijah
:
:[1] http://www.dragonflybsd.org/docs/user/dellmini9/
MAKEDEV is no longer used in 2.4, the handbook is out of date.
The easiest way to create a dev inside your jail is to use
something like 'mount_null /dev /path/to/jail/dev'. You can
also directly use 'mount_devfs /path/to/jail/dev'.
-Matt
Matthew Dillon
<dillon at backplane.com>
More information about the Users
mailing list