Missing 32bit Compatability from amd64 Kernel

Status
Not open for further replies.

Wasurerarenai

Dabbler
Joined
Jun 28, 2011
Messages
15
Back in FreeNAS 7 is had built a 32bit Jail on a FreeNAS amd64 host. The amd64 kernel back then was compiled with 32bit binary execution support in the kernel. FreeNAS 8 amd64 kernel is missing this support and there is no /usr/lib32/ directory that 32bit apps can use. I would simply like the amd64 kernel to be built with the "options COMPAT_FREEBSD32" option so future builds have 32bit compatibility.

I compiled the kernel from SVN with this option and was successfully able to start my jail (which I 32bit recompiled under FreeNAS 8). Without this option compiled into the kernel I get the following error trying to start the jail.
Code:
[root@freenas /]# /etc/rc.d/jail start
Configuring jails:.
Starting jails: cannot start jail "x86_test":
jail: execvp: /bin/sh: Exec format error


Kernel Options for amd64 Kernel:
Code:
https://freenas.svn.sourceforge.net/svnroot/freenas/trunk/nanobsd/FREENAS.amd64


Missing:
Code:
options         COMPAT_FREEBSD32        # Compatible with i386 binaries


Thanks,
Mike
 
J

jpaetzel

Guest
Added in r7082, which will be included in the upcoming 8.0.1-BETA5
 
Status
Not open for further replies.
Top