In first prepare NAS4Free host. Debian need load some linux modules. Add to loader.conf or manually, or over webgui extension.
Update - Sandstorm (revision 847) and later not need extension
Code: Select all
fdescfs_load = "YES"
linprocfs_load = "YES"
linsysfs_load = "YES"
tmpfs_load = "YES"Code: Select all
kldstatNow create template jail with TheBrigId Refs Address Size Name
1 40 0x80400000 1201b7c kernel
2 1 0x81602000 425c fdescfs.ko
3 1 0x81607000 94e4 linprocfs.ko
4 3 0x81611000 32068 linux.ko
5 1 0x81644000 3000 linsysfs.ko
6 1 0x81647000 195654 zfs.ko
7 2 0x817dd000 40a4 opensolaris.ko
8 1 0x817e2000 22d0 accf_http.ko
9 1 0x8e5e5000 11f48 isboot.ko
10 1 0x8e5f7000 a230 tmpfs.ko
11 1 0x95671000 4000 nullfs.ko
12 1 0x94b6c000 4000 ng_socket.ko
13 1 0x957cf000 b000 netgraph.ko
Enable mount devfs check
Enable mount procfs uncheck
Enable mount fdescfs uncheck
Fstab
Code: Select all
linprocfs /mnt/disk0/app/thebrig/debian/proc linprocfs rw 0 0
linsysfs /mnt/disk0/app/thebrig/debian/sys linsysfs rw 0 0
tmpfs /mnt/disk0/app/thebrig/debian/lib/init/rw tmpfs rw 0 0Code: Select all
/etc/init.d/rc 3Code: Select all
/etc/init.d/rc 0
.
Also need Freebsd jail. I use for test my applications jail named proto. Over TheBrig page start working jail and connect with it as root.
Under jail proto
Code: Select all
portsnap fetch update
cd /usr/ports/sysutils/debootstrap && make install clean
mkdir -p /jail/debian
exitCode: Select all
mount_nullfs /mnt/disk0/app/thebrig/debian /mnt/disk0/app/thebrig/proto/jail/debian
chroot /mnt/disk0/app/thebrig/proto
debootstrap squeeze /jail/debian http://cdn.debian.net/debianNow need to add folder /usr/ports and file /etc/masrer.passwdI: Configuring aptitude...
I: Configuring tasksel-data...
I: Configuring tasksel...
I: Base system installed successfully.
Code: Select all
mkdir /jail/debian/usr/ports
cp /etc/master.passwd /jail/debian/etc/
/usr/sbin/pwd_mkdb -d /jail/debian/etc -p /jail/debian/etc/master.passwd
exitCode: Select all
/etc/rc.d/jail start debianCode: Select all
nas4free: ~ # jexec debian sh
# uname -aGNU/kFreeBSD debian.local 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0 r253505M: Sun Jul 21 00:55:52 CEST 2013 root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 x86_64 amd64 AMD E-350 Processor GNU/kFreeBSD



