Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2009 12:29:11 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Geoff Fritz <gfritz@gmail.com>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: Linuxulator, 32-bit executables, and linux-from-scratch
Message-ID:  <20090521122911.00002a24@unknown>
In-Reply-To: <20090520213830.GA13304@dev.null>
References:  <20090520213830.GA13304@dev.null>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 20 May 2009 15:38:30 -0600 Geoff Fritz <gfritz@gmail.com> wrote:


> I have a couple of quesiotns about FreeBSD's linux emulation
> environment.
> 
> Firstly, does the emulation layer handle the 32-bit Linux binaries
> natively, or does it rely on FreeBSD's own 32-bit emulation layer?
> In other words, can I get away with not loading the 32-bit FreeBSD
> libraries?

You do not need the FreeBSD lib32 stuff.

> I've tried searching, but wasn't able to find any relavent infomation
> about this next item.  Has anyone tried a linux-from-scratch
> bootstrap process under Linuxulator to create a custom environment?

Have a look at the gentoo linux_dist ports. This should be similar.

> Are there any low-level problems that may prevent me from doing so?
> And, on a related note, is it possible to have multiple linux trees
> for emulation?  That is, if I mount linsys and linproc correctly in
> another place (other than /compat/linux), will things work as
> expected?

It will only work, if you chroot into those directories.

Notes:
The linux base ports in FreeBSD are designed to play well
together with FreeBSD without chroot, you can not really chroot into
such an environment.

What ever you do with linux from scratch, it will not play as well
out of the box with FreeBSD as the linux base ports. So if you go this
way, I suggest to only use the from scratch stuff with chroot (or in
a linux-only-jail).

> And my last question...  I run 7.2-RELEASE/amd64.  Is it possible yet
> to run a 32-bit WINE environemt under the Linux emulation?  Last I
> heard, the 64-bit kernel was lacking a syscall or two to make this
> possible.  Has this changed?

No, and I don't think someone will spend time to do this. AFAIK wine
makes some very low-level assumptions which are not true in the
linxulator and most probably will never be true there.

Bye,
Alexander.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090521122911.00002a24>