jails jail / linuxator /gentoo

Would it be possible to:
Create a jail
In this jail run the linuxator
Under this linuxator install gentoo-linux as operating system ?
 
Yes, but it with some issues likes portage not work.

Code:
mkfifo: cannot set permissions of '/var/tmp/portage/app-misc/screenfetch-3.9.1/temp/multijob.rbwYPC': Bad file descriptor

-e536524fd05ed7a.png


See also https://book.bsdcn.org/di-5-zhang-s...uan-jian/di-5.5-jie-linux-jian-rong-ceng.html

Maybe you need Google translate.
 
Probably.
1. see the jail settings (allow.mount.$LOTS) you need so that the linux installer has the permissions needed. I have documented this for Ubuntu here: https://github.com/msimerson/Mail-Toaster-6/wiki/Linux-Jails
2. Refer to the debootstrap scripts. They have within case statements where they make the linux special files and nodes differently on debian/ubuntu vs FreeBSD.
3. If that's not enough, there might be some patching needed for portage.
 
There will be stuff that's not going to work. The linux emulation layer simply isn't Linux and can't provide a full blown Linux kernel.

I remember running Arch Linux in linux jail a while back - everything worked until I attempted to compile and create binary packages for pacman. Thats where fakeroot fell over due to missing primitives and system calls, for example.

It will work for a lot of things but expect issues.
 
Back
Top