Reply
 
Thread Tools Display Modes
  #1  
Old 02-12-2013, 09:12 AM
Kiore Kiore is offline
Junior Member
 
Join Date: Feb 2013
Location: Auckland, New Zealand
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Warden and Debian Linux jails 9.1
Hi,

I've been playing with PCBSD 9.1 and Warden in particular today. I've installed a Debian Linux jail and noticed a couple of things I'd like to pass on.

1) Thank you so much for doing this. Creating jails by hand was painful for a FreeBSD novice. Warden ROCKS!

2) what got installed wasn't Linux ... it was Debian GNU/kFreeBSD, i.e. Debian compiled to run on a FreeBSD kernel with FreeBSD native ELF executables. Personally I think this is "a good thing" (TM) as I've been playing with Debian GNU/kFreeBSD "Wheezy" for several months. Others will probably disagree with me, especially as Squeeze was released as a "preview" and Wheezy isn't yet production ready. You can verify which architecture is installed by executing "uname -a" and the binaries with "file full-path-to-file" (After doing an "apt_get install file" -- it ins't in the default install)

You can apparently "fix" this by specifying the optional --arch=ARCH parameter to the debootstrap command which would install Linux ELFs. If you're going to implement this, please provide an option to install kFreeBSD.

3) This is probably documented somewhere, but following the jail's creation it is necessary to run "apt-get update" to prime local knowledge of the repository contents. If it isn't easy to automate this it would be nice if a warning about this could be prominantly displayed at the end of the set-up.

4), it is simple to make a set-up script for Debian wheezy (aka Testing): In /usr/local/share/warden/linux-installs copy debian-6-squeeze to a new file (e.g. debian-7-wheezy), edit that and replace all occurrences of squeeze with wheezy. It then installs and runs like a dream.

Thanks Again

Bruce
Reply With Quote
  #2  
Old 02-13-2013, 08:58 AM
Kiore Kiore is offline
Junior Member
 
Join Date: Feb 2013
Location: Auckland, New Zealand
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
It's not as simple as I thought.

I tried to build a squeeze jail modifying the debian-6-squeeze script to include the --arch parameter.

My system is Debian Wheezy AMD-64 running PC-BSD 9.1 i386 in VirtualBox:
Code:
$ uname -a
Linux bruce 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux

# uname -a
FreeBSD pc-bsd2 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:06:52 UTC 2012     root@darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC  i386
My modifications to the warden linux install script is
Code:
...
arch=`uname -m`

case $arch in
        [iI]386*) arch="i386";;
        [aA][mM][dD]64*|[xX]86_64*) arch="amd64";;
esac

debootstrap --arch=$arch squeeze ${jDIR}
...
I believe I have the correct architecture as
Code:
# file bin/dash
bin/dash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0xc16d119ca8a5906e771da44019e0fb4b9485afc3, stripped
When run I get the following in the window (Abbreviated, full log at bottom)

Code:
Setting up linux jail...
W: Probably required module linprocfs fdescfs tmpfs linsysfs is not loaded
I: Retrieving InRelease
I: Failed to retrieve InRelease
I: Retrieving Release
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: insserv libbz2-1.0 libdb4.8 libslang2 
I: Found additional base dependencies: libnfnetlink0 libsqlite3-0 
I: Checking component main on http://ftp.us.debian.org/debian...
I: Retrieving libacl1
...
I: Extracting zlib1g...
W: Failure trying to run: chroot /usr/jails/192.168.72.53 /sbin/ldconfig
W: See /usr/jails/192.168.72.53/debootstrap/debootstrap.log for details
sed: /usr/jails/192.168.72.53/etc/rsyslog.conf: No such file or directory
mv: rename /usr/jails/192.168.72.53/sbin/umount to /usr/jails/192.168.72.53/sbin/umount.prev: No such file or directory
Failed running /usr/local/share/warden/linux-installs/debian-6-squeeze
Changing root password on: 192.168.72.53 FATAL: kernel too old
FAILED!
Looking at the reported problems,
  • I seem to have the "missing" modules loaded (See below)
  • /usr/jails/192.168.72.53/debootstrap/debootstrap.log is just one line: "Segmentation fault"
  • When I tried chroot to /usr/jails/192.168.72.53 to run the commands manually I received
    Code:
    # chroot . /bin/sh
    FATAL: kernel too old
    sysctl compat.linux.osrelease
    compat.linux.osrelease: 2.6.16
    NB: squeeze is linked for 2.6.18 (See above)

I found this query at freebsd and tried using the command they suggested: sysctl compat.linux.osrelease=2.6.32 and repeated the build.

Unfortunately it also failed, but later. Log follows (Next posting).

Any suggestions what I could try next?

Thanks

Bruce

Loaded Modules
Code:
$ kldstat
Id Refs Address    Size     Name
 1  150 0xc0400000 fd4568   kernel
 2    1 0xc13d5000 195bd4   zfs.ko
 3    2 0xc156b000 40a4     opensolaris.ko
 4    1 0xc1570000 14c14    geom_eli.ko
 5    4 0xc1585000 25d3c    crypto.ko
 6    3 0xc15ab000 ac40     zlib.ko
 7    1 0xc15b6000 14620    geom_journal.ko
 8    1 0xc15cb000 17018    geom_mirror.ko
 9    1 0xc15e3000 7b28     sdhci.ko
10    1 0xc15eb000 4588     aesni.ko
11    1 0xc15f0000 a230     tmpfs.ko
12    1 0xc15fb000 3134c    vboxguest.ko
13    1 0xc9e72000 8000     linprocfs.ko
14    2 0xc9e8a000 2a000    linux.ko
15    6 0xca2a2000 5000     libiconv.ko
16    3 0xca2a9000 3000     libmchain.ko
17    1 0xca2ac000 2000     msdosfs_iconv.ko
18    1 0xca2bc000 33000    if_bwn.ko
19    1 0xca2ef000 9000     siba_bwn.ko
20    1 0xca328000 1b000    if_bwi.ko
21    1 0xca349000 1a000    bwi_v3_ucode.ko
22    1 0xca369000 2b000    bwn_v4_ucode.ko
23    1 0xca394000 4000     runfw.ko
24    1 0xca39c000 6000     ng_ubt.ko
25    1 0xca3a2000 d000     ng_hci.ko
26    2 0xca3af000 2000     ng_bluetooth.ko
27    3 0xca3b3000 b000     netgraph.ko
28    1 0xca3c3000 4000     cuse4bsd.ko
29    1 0xca3d0000 4000     sem.ko
30    2 0xca3d4000 b000     ntfs.ko
31    1 0xca434000 2000     ntfs_iconv.ko
32    2 0xca437000 7000     udf.ko
33    1 0xca43f000 2000     udf_iconv.ko
34    1 0xca44f000 11000    ext2fs.ko
35    1 0xca463000 9000     mmc.ko
36    1 0xca46c000 4000     mmcsd.ko
37    1 0xca470000 5000     scd.ko
38    1 0xca475000 4000     geom_uzip.ko
39    1 0xca479000 12000    pefs.ko
40    1 0xca4a9000 79000    xfs.ko
41    1 0xca532000 9000     reiserfs.ko
42    1 0xca53d000 1f000    smbfs.ko
43    1 0xca562000 4000     fdescfs.ko
44    1 0xca566000 3000     linsysfs.ko
45    1 0xca56b000 2f000    iwn4965fw.ko
46    1 0xca5a0000 54000    iwn1000fw.ko
47    1 0xca5f6000 55000    iwn5000fw.ko
48    1 0xca64d000 54000    iwn5150fw.ko
49    1 0xca6a8000 71000    iwn6000fw.ko
50    1 0xca719000 6e000    iwn6000g2afw.ko
51    1 0xca78e000 72000    iwn6000g2bfw.ko
52    1 0xca81b000 74000    iwn6050fw.ko
53    1 0xca89d000 5000     acpi_video.ko
54    1 0xcaf45000 7000     vkbd.ko
55    1 0xcaf4e000 33000    pf.ko
56    1 0xcb0be000 21000    ng_btsocket.ko
57    1 0xcb0ea000 e000     fuse.ko
Full Log

Code:
Setting up linux jail...
W: Probably required module linprocfs fdescfs tmpfs linsysfs is not loaded
I: Retrieving InRelease
I: Failed to retrieve InRelease
I: Retrieving Release
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: insserv libbz2-1.0 libdb4.8 libslang2 
I: Found additional base dependencies: libnfnetlink0 libsqlite3-0 
I: Checking component main on http://ftp.us.debian.org/debian...
I: Retrieving libacl1
I: Validating libacl1
I: Retrieving adduser
I: Validating adduser
I: Retrieving apt-utils
I: Validating apt-utils
I: Retrieving apt
I: Validating apt
I: Retrieving aptitude
I: Validating aptitude
I: Retrieving libattr1
I: Validating libattr1
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving libboost-iostreams1.42.0
I: Validating libboost-iostreams1.42.0
I: Retrieving bsdmainutils
I: Validating bsdmainutils
I: Retrieving libbz2-1.0
I: Validating libbz2-1.0
I: Retrieving coreutils
I: Validating coreutils
I: Retrieving cpio
I: Validating cpio
I: Retrieving cron
I: Validating cron
I: Retrieving libcwidget3
I: Validating libcwidget3
I: Retrieving dash
I: Validating dash
I: Retrieving libdb4.8
I: Validating libdb4.8
I: Retrieving debconf-i18n
I: Validating debconf-i18n
I: Retrieving debconf
I: Validating debconf
I: Retrieving debian-archive-keyring
I: Validating debian-archive-keyring
I: Retrieving debianutils
I: Validating debianutils
I: Retrieving diffutils
I: Validating diffutils
I: Retrieving dmidecode
I: Validating dmidecode
I: Retrieving dpkg
I: Validating dpkg
I: Retrieving e2fslibs
I: Validating e2fslibs
I: Retrieving e2fsprogs
I: Validating e2fsprogs
I: Retrieving libcomerr2
I: Validating libcomerr2
I: Retrieving libss2
I: Validating libss2
I: Retrieving libc-bin
I: Validating libc-bin
I: Retrieving libc6
I: Validating libc6
I: Retrieving findutils
I: Validating findutils
I: Retrieving gcc-4.4-base
I: Validating gcc-4.4-base
I: Retrieving libgcc1
I: Validating libgcc1
I: Retrieving libstdc++6
I: Validating libstdc++6
I: Retrieving libgdbm3
I: Validating libgdbm3
I: Retrieving gnupg
I: Validating gnupg
I: Retrieving gpgv
I: Validating gpgv
I: Retrieving grep
I: Validating grep
I: Retrieving groff-base
I: Validating groff-base
I: Retrieving gzip
I: Validating gzip
I: Retrieving hostname
I: Validating hostname
I: Retrieving ifupdown
I: Validating ifupdown
I: Retrieving insserv
I: Validating insserv
I: Retrieving iproute
I: Validating iproute
I: Retrieving iptables
I: Validating iptables
I: Retrieving iputils-ping
I: Validating iputils-ping
I: Retrieving isc-dhcp-client
I: Validating isc-dhcp-client
I: Retrieving isc-dhcp-common
I: Validating isc-dhcp-common
I: Retrieving logrotate
I: Validating logrotate
I: Retrieving lsb-base
I: Validating lsb-base
I: Retrieving libept1
I: Validating libept1
I: Retrieving liblocale-gettext-perl
I: Validating liblocale-gettext-perl
I: Retrieving libnfnetlink0
I: Validating libnfnetlink0
I: Retrieving libselinux1
I: Validating libselinux1
I: Retrieving libsepol1
I: Validating libsepol1
I: Retrieving libsigc++-2.0-0c2a
I: Validating libsigc++-2.0-0c2a
I: Retrieving libtext-charwidth-perl
I: Validating libtext-charwidth-perl
I: Retrieving libtext-iconv-perl
I: Validating libtext-iconv-perl
I: Retrieving libtext-wrapi18n-perl
I: Validating libtext-wrapi18n-perl
I: Retrieving libusb-0.1-4
I: Validating libusb-0.1-4
I: Retrieving man-db
I: Validating man-db
I: Retrieving manpages
I: Validating manpages
I: Retrieving mawk
I: Validating mawk
I: Retrieving module-init-tools
I: Validating module-init-tools
I: Retrieving nano
I: Validating nano
I: Retrieving libncurses5
I: Validating libncurses5
I: Retrieving libncursesw5
I: Validating libncursesw5
I: Retrieving ncurses-base
I: Validating ncurses-base
I: Retrieving ncurses-bin
I: Validating ncurses-bin
I: Retrieving net-tools
I: Validating net-tools
I: Retrieving netbase
I: Validating netbase
I: Retrieving netcat-traditional
I: Validating netcat-traditional
I: Retrieving libnewt0.52
I: Validating libnewt0.52
I: Retrieving whiptail
I: Validating whiptail
I: Retrieving libssl0.9.8
I: Validating libssl0.9.8
I: Retrieving libpam-modules
I: Validating libpam-modules
I: Retrieving libpam-runtime
I: Validating libpam-runtime
I: Retrieving libpam0g
I: Validating libpam0g
I: Retrieving perl-base
I: Validating perl-base
I: Retrieving libpopt0
I: Validating libpopt0
I: Retrieving procps
I: Validating procps
I: Retrieving libreadline6
I: Validating libreadline6
I: Retrieving readline-common
I: Validating readline-common
I: Retrieving rsyslog
I: Validating rsyslog
I: Retrieving sed
I: Validating sed
I: Retrieving sensible-utils
I: Validating sensible-utils
I: Retrieving login
I: Validating login
I: Retrieving passwd
I: Validating passwd
I: Retrieving libslang2
I: Validating libslang2
I: Retrieving libsqlite3-0
I: Validating libsqlite3-0
I: Retrieving initscripts
I: Validating initscripts
I: Retrieving sysv-rc
I: Validating sysv-rc
I: Retrieving sysvinit-utils
I: Validating sysvinit-utils
I: Retrieving sysvinit
I: Validating sysvinit
I: Retrieving tar
I: Validating tar
I: Retrieving tasksel-data
I: Validating tasksel-data
I: Retrieving tasksel
I: Validating tasksel
I: Retrieving info
I: Validating info
I: Retrieving install-info
I: Validating install-info
I: Retrieving traceroute
I: Validating traceroute
I: Retrieving tzdata
I: Validating tzdata
I: Retrieving libudev0
I: Validating libudev0
I: Retrieving udev
I: Validating udev
I: Retrieving bsdutils
I: Validating bsdutils
I: Retrieving libblkid1
I: Validating libblkid1
I: Retrieving libuuid1
I: Validating libuuid1
I: Retrieving mount
I: Validating mount
I: Retrieving util-linux
I: Validating util-linux
I: Retrieving vim-common
I: Validating vim-common
I: Retrieving vim-tiny
I: Validating vim-tiny
I: Retrieving wget
I: Validating wget
I: Retrieving libxapian22
I: Validating libxapian22
I: Retrieving liblzma2
I: Validating liblzma2
I: Retrieving xz-utils
I: Validating xz-utils
I: Retrieving zlib1g
I: Validating zlib1g
I: Chosen extractor for .deb packages: ar
I: Extracting libacl1...
I: Extracting libattr1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting libbz2-1.0...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting libdb4.8...
I: Extracting debconf-i18n...
I: Extracting debconf...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting libcomerr2...
I: Extracting libss2...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting findutils...
I: Extracting gcc-4.4-base...
I: Extracting libgcc1...
I: Extracting libstdc++6...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting insserv...
I: Extracting lsb-base...
I: Extracting liblocale-gettext-perl...
I: Extracting libselinux1...
I: Extracting libsepol1...
I: Extracting libtext-charwidth-perl...
I: Extracting libtext-iconv-perl...
I: Extracting libtext-wrapi18n-perl...
I: Extracting mawk...
I: Extracting libncurses5...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libpam-modules...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting perl-base...
I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting login...
I: Extracting passwd...
I: Extracting libslang2...
I: Extracting initscripts...
I: Extracting sysv-rc...
I: Extracting sysvinit-utils...
I: Extracting sysvinit...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma2...
I: Extracting xz-utils...
I: Extracting zlib1g...
W: Failure trying to run: chroot /usr/jails/192.168.72.53 /sbin/ldconfig
W: See /usr/jails/192.168.72.53/debootstrap/debootstrap.log for details
sed: /usr/jails/192.168.72.53/etc/rsyslog.conf: No such file or directory
mv: rename /usr/jails/192.168.72.53/sbin/umount to /usr/jails/192.168.72.53/sbin/umount.prev: No such file or directory
Failed running /usr/local/share/warden/linux-installs/debian-6-squeeze
Changing root password on: 192.168.72.53 FATAL: kernel too old
FAILED!
Reply With Quote
  #3  
Old 02-13-2013, 09:06 AM
Kiore Kiore is offline
Junior Member
 
Join Date: Feb 2013
Location: Auckland, New Zealand
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Second follow-up.

Log from 2nd install attempt. Unfortunately it's too long to post so I've trimmed it down a bit. Hopefully I haven't deleted anything vital.

warning, in file '/var/lib/dpkg/status' near line 4 package 'dpkg':
missing description
Selecting previously deselected package base-files.
dpkg: regarding .../base-files_6.0squeeze6_i386.deb containing base-files, pre-dependency problem:
base-files pre-depends on awk
awk is not installed.
dpkg: warning: ignoring pre-dependency problem!
(Reading database ... 0 files and directories currently installed.)
Unpacking base-files (from .../base-files_6.0squeeze6_i386.deb) ...
Selecting previously deselected package base-passwd.
Unpacking base-passwd (from .../base-passwd_3.5.22_i386.deb) ...
dpkg: base-passwd: dependency problems, but configuring anyway as you requested:
base-passwd depends on libc6 (>= 2.1); however:
Package libc6 is not installed.
Setting up base-passwd (3.5.22) ...
dpkg: base-files: dependency problems, but configuring anyway as you requested:
base-files depends on awk; however:
Package awk is not installed.
Setting up base-files (6.0squeeze6) ...
warning, in file '/var/lib/dpkg/status' near line 45 package 'dpkg':
missing description
dpkg: regarding .../dpkg_1.15.8.13_i386.deb containing dpkg, pre-dependency problem:
dpkg pre-depends on libbz2-1.0
libbz2-1.0 is not installed.
dpkg: warning: ignoring pre-dependency problem!
dpkg: regarding .../dpkg_1.15.8.13_i386.deb containing dpkg, pre-dependency problem:
dpkg pre-depends on libc6 (>= 2.6)
(Repeats severat times)
xz-utils is not installed.
dpkg: warning: ignoring pre-dependency problem!
(Reading database ... 102 files and directories currently installed.)
Preparing to replace dpkg 1.15.8.13 (using .../dpkg_1.15.8.13_i386.deb) ...
Unpacking replacement dpkg ...
dpkg: dpkg: dependency problems, but configuring anyway as you requested:
dpkg depends on libbz2-1.0; however:
Package libbz2-1.0 is not installed.
dpkg depends on libc6 (>= 2.6); however:
Package libc6 is not installed.
(Repeats several times)
Unpacking bash (from .../archives/bash_4.1-3_i386.deb) ...
The bash upgrade discovered that your /bin/sh link points to dash.
As bash for Debian is destined to provide a working /bin/sh (pointing to
/bin/bash) your link will be overwritten by a default link.

If you don't want further upgrades to overwrite your customization, please
read /usr/share/doc/bash/README.Debian.gz for a more permanent solution.

[Press RETURN to continue]
Selecting previously deselected package libbz2-1.0.
Unpacking libbz2-1.0 (from .../libbz2-1.0_1.0.5-6+squeeze1_i386.deb) ...
Selecting previously deselected package coreutils.
dpkg: regarding .../coreutils_8.5-1_i386.deb containing coreutils, pre-dependency problem:
coreutils pre-depends on libacl1 (>= 2.2.11-1)
libacl1 is unpacked, but has never been configured.
dpkg: warning: ignoring pre-dependency problem!
dpkg: regarding .../coreutils_8.5-1_i386.deb containing coreutils, pre-dependency problem:
coreutils pre-depends on libattr1 (>= 2.4.41-1)
libattr1 is unpacked, but has never been configured.

...

dpkg: regarding .../e2fsprogs_1.41.12-4stable1_i386.deb containing e2fsprogs, pre-dependency problem:
e2fsprogs pre-depends on libblkid1 (>= 2.17.2)
dpkg: warning: ignoring pre-dependency problem!
dpkg: regarding .../e2fsprogs_1.41.12-4stable1_i386.deb containing e2fsprogs, pre-dependency problem:
e2fsprogs pre-depends on libcomerr2 (>= 1.34-1)
dpkg: warning: ignoring pre-dependency problem!
dpkg: regarding .../e2fsprogs_1.41.12-4stable1_i386.deb containing e2fsprogs, pre-dependency problem:
e2fsprogs pre-depends on libss2 (>= 1.34-1)
dpkg: warning: ignoring pre-dependency problem!
dpkg: regarding .../e2fsprogs_1.41.12-4stable1_i386.deb containing e2fsprogs,

...

Setting up ncurses-base (5.7+20100313-5) ...
Setting up sensible-utils (0.0.4) ...

...

Current default time zone: 'Etc/UTC'
Local time is now: Wed Feb 13 09:47:59 UTC 2013.
Universal Time is now: Wed Feb 13 09:47:59 UTC 2013.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up passwd (1:4.1.4.2+svn3283-2+squeeze1) ...
Shadow passwords are now on.
Setting up libpam-runtime (1.1.1-6.1+squeeze1) ...
Setting up login (1:4.1.4.2+svn3283-2+squeeze1) ...
Setting up libuuid1 (2.17.2-9) ...
Setting up libblkid1 (2.17.2-9) ...
Setting up mount (2.17.2-9) ...
Setting up initscripts (2.88dsf-13.1+squeeze1) ...
mount: unknown filesystem type 'none'
Setting up util-linux (2.17.2-9) ...
update-alternatives: using /bin/more to provide /usr/bin/pager (pager) in auto mode.
Setting up sysvinit (2.88dsf-13.1+squeeze1) ...
sysvinit: creating /dev/initctl
mkfifo: cannot create fifo `/dev/initctl': Operation not supported
dpkg: error processing sysvinit (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up e2fsprogs (1.41.12-4stable1) ...
Errors were encountered while processing:
sysvinit
printf: missing format character
Reply With Quote
  #4  
Old 02-13-2013, 06:01 PM
GeoffShep GeoffShep is offline
Senior Member
 
Join Date: Jan 2013
Posts: 175
Thanks: 12
Thanked 50 Times in 41 Posts
Default
K,

I think you mis-understand the Debian Jail. What you appear to be trying to do is to produce a Debian Jail that runs a Linux kernel - that is not going to happen. Why? The system within a Jail runs the Host system Kernel, which is why the number of distributions is so limited. Debian has a flavour that runs the FreeBSD kernel, as you observed, and this is the version that is installed, since it runs the Host system kernel, and the remainder of Debian derived from the appropriate repository.

If you want to run Debian Linux as a Guest system under PC-BSD .. Virtualbox is your friend.

I guess the term "Linux Jail" is mis-leading, since they are not "Linux". I can understand the confusion, since that term has taken over from the approved RMS "GNU/Linux". What PC-BSD provides is "GNU/kFreeBSD" as a Jail, not a "Linux Jail".


Rgds
Reply With Quote
  #5  
Old 02-13-2013, 09:00 PM
Kiore Kiore is offline
Junior Member
 
Join Date: Feb 2013
Location: Auckland, New Zealand
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I really hope not.

I'm fully aware that I have the FreeBSD Kernel and am well aware of the difference between Linux and the GNU userland it often runs. I've been running Debian/kFreeBSD in a VirtualBox VM under Debian/Linux for a few months. I might later investigate Debian/kFreeBSD in a pc-bsd jail, but not this week.

What I'm trying to achieve is running userland (and application binaries) compiled for Linux but not the kernel in a jail managed by Warden using the FreeBSD linuxulator, that's why I upgraded PC-BSD to 9.1 so soon after release in the first place. Running Debian/Linux in a VirtualBox VM under FreeBSD would do nothing for me as Debian is already the native OS on my desktop where I'm doing all this.

Are you saying that the FreeBSD linux emulation layer can't be used to make a "Linux" jail?

BTW: Debian isn't my final destination, I just picked it as I'm already very familiar with how to run and administer it.
Reply With Quote
  #6  
Old 02-13-2013, 09:45 PM
GeoffShep GeoffShep is offline
Senior Member
 
Join Date: Jan 2013
Posts: 175
Thanks: 12
Thanked 50 Times in 41 Posts
Default
K,

You're outside my knowledge area with that on the emulation layer. I suspect that you won't have access to the linux emulation facility though since it is a Jail - ie it can't see stuff outside.

Rgds
Reply With Quote
  #7  
Old 02-13-2013, 10:51 PM
Kiore Kiore is offline
Junior Member
 
Join Date: Feb 2013
Location: Auckland, New Zealand
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Except that the Linux emulator is built into the kernel, albeit as installable modules.

According to what I find on the web, FreeBSD supported what I'm trying to do back in 2008 / 2010 but, obviously, without Warden. Running CentOS 5.5 in a (FreeBSD 8) Jail and another Centos attempt from 2008.

I haven't had much luck with manually created jails & Warden is the way I would prefer to go if I can cajole it into doing what I want.

I'll have another go tonight and try translating / merging the information from these pages into the Debian way of doing things.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:23 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.