/proc/ is not mounted, but required for successful operation of systemd-tmpfiles. Please mount /proc/. Alternatively, consider using the --root= or --image= switches.

Mario Marietto marietto2008 at gmail.com
Fri Nov 1 14:21:24 UTC 2024


---> Jails are FreeBSD's containers. Jails runs a FreeBSD native app in an
isolated container. You cannot run Linux in a jail. Linux is an OS in its
own right. It does not run under FreeBSD. You can run Linux in a bhyve VM
but not in a jail.

This is what I'm doing right now. I've enabled linux_enable="YES" in
rc.conf :

/etc/rc.conf :
linux_enable="YES"

and I've mounted the following mount points inside the jail and I'm running
Ubuntu 24.04 with the Linuxulator without problems.

nano /etc/jail.conf.d/noble.conf

    mount += "devfs            $path/dev                devfs           rw
                     0       0";
    mount += "tmpfs            $path/dev/shm            tmpfs
rw,size=1g,mode=1777    0       0";
    mount += "fdescfs          $path/dev/fd             fdescfs
rw,linrdlnk             0       0";
    mount += "linprocfs        $path/proc               linprocfs       rw
                     0       0";
    mount += "linsysfs         $path/sys                linsysfs        rw
                     0       0";
    mount += "/tmp             $path/tmp                nullfs          rw
                     0       0";
    mount += "/home            $path/home               nullfs          rw
                     0       0";
    mount += "/root            $path/root               nullfs          rw
                     0       0";
    mount += "/var/run/user/   $path/run/user/          nullfs          rw
                     0       0";



On Fri, Nov 1, 2024 at 11:04 AM Liam Proven <lproven at gmail.com> wrote:

> On Fri, 1 Nov 2024 at 01:46, Mario Marietto <marietto2008 at gmail.com>
> wrote:
> >
> > I've found the trick to fix that problem here :
> >
> >
> https://superuser.com/questions/1803992/getting-this-error-failed-to-take-etc-passwd-lock-invalid-argument#comment2829160_1803992
>
> Again, this is unconnected.
>
> It's about fixing an error on Windows. You said you were using FreeBSD.
>
> > let's see if it works  :
> >
> > [root at marietto /compat]==> ./start-noble-jail-bash
>
> Jails are FreeBSD's containers. Jails run a FreeBSD native app in an
> isolated container. You cannot run Linux in a jail. Linux is an OS in
> its own right. It does not run under FreeBSD.
>
> You can run Linux in a bhyve VM but not in a jail.
>
> Also: on mailing lists, your reply should be BELOW the trimmed text
> you are replying to. Press the Ctrl+A key in Gmail's web interface,
> trim, write below.
>
>
> --
> Liam Proven ~ Profile: https://about.me/liamproven
> Email: lproven at cix.co.uk ~ gMail/gTalk/FB: lproven at gmail.com
> Twitter/LinkedIn: lproven ~ Skype: liamproven
> IoM: (+44) 7624 227612: UK: (+44) 7939-087884
> Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>


-- 
Mario.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20241101/9ceeaf91/attachment.html>


More information about the ubuntu-users mailing list