<div dir="ltr"><div>---> 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.</div><div><br></div><div>This is what I'm doing right now. I've enabled linux_enable="YES" in rc.conf :<br></div><div><br></div><div>/etc/rc.conf :</div><div></div><div>linux_enable="YES"</div><div><br></div><div>and I've mounted the following mount points inside the jail and I'm running Ubuntu 24.04 with the Linuxulator without problems.</div><div><br></div><div>nano /etc/jail.conf.d/noble.conf</div><div><br></div><div>  Â  mount += "devfs Â  Â  Â  Â  Â  Â $path/dev Â  Â  Â  Â  Â  Â  Â  Â devfs Â  Â  Â  Â  Â  rw Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â 0 Â  Â  Â  0";<br>  Â  mount += "tmpfs Â  Â  Â  Â  Â  Â $path/dev/shm Â  Â  Â  Â  Â  Â tmpfs Â  Â  Â  Â  Â  rw,size=1g,mode=1777 Â  Â 0 Â  Â  Â  0";<br>  Â  mount += "fdescfs Â  Â  Â  Â  Â $path/dev/fd Â  Â  Â  Â  Â  Â  fdescfs Â  Â  Â  Â  rw,linrdlnk Â  Â  Â  Â  Â  Â  0 Â  Â  Â  0";<br>  Â  mount += "linprocfs Â  Â  Â  Â $path/proc Â  Â  Â  Â  Â  Â  Â  linprocfs Â  Â  Â  rw Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â 0 Â  Â  Â  0";<br>  Â  mount += "linsysfs Â  Â  Â  Â  $path/sys Â  Â  Â  Â  Â  Â  Â  Â linsysfs Â  Â  Â  Â rw Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â 0 Â  Â  Â  0";<br>  Â  mount += "/tmp Â  Â  Â  Â  Â  Â  $path/tmp Â  Â  Â  Â  Â  Â  Â  Â nullfs Â  Â  Â  Â  Â rw Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â 0 Â  Â  Â  0";<br>  Â  mount += "/home Â  Â  Â  Â  Â  Â $path/home Â  Â  Â  Â  Â  Â  Â  nullfs Â  Â  Â  Â  Â rw Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â 0 Â  Â  Â  0";<br>  Â  mount += "/root Â  Â  Â  Â  Â  Â $path/root Â  Â  Â  Â  Â  Â  Â  nullfs Â  Â  Â  Â  Â rw Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â 0 Â  Â  Â  0";<br>  Â  mount += "/var/run/user/ Â  $path/run/user/ Â  Â  Â  Â  Â nullfs Â  Â  Â  Â  Â rw Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â 0 Â  Â  Â  0";<br> </div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 1, 2024 at 11:04 AM Liam Proven <<a href="mailto:lproven@gmail.com">lproven@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 1 Nov 2024 at 01:46, Mario Marietto <<a href="mailto:marietto2008@gmail.com" target="_blank">marietto2008@gmail.com</a>> wrote:<br>
><br>
> I've found the trick to fix that problem here :<br>
><br>
> <a href="https://superuser.com/questions/1803992/getting-this-error-failed-to-take-etc-passwd-lock-invalid-argument#comment2829160_1803992" rel="noreferrer" target="_blank">https://superuser.com/questions/1803992/getting-this-error-failed-to-take-etc-passwd-lock-invalid-argument#comment2829160_1803992</a><br>
<br>
Again, this is unconnected.<br>
<br>
It's about fixing an error on Windows. You said you were using FreeBSD.<br>
<br>
> let's see if it works  :<br>
><br>
> [root@marietto /compat]==> ./start-noble-jail-bash<br>
<br>
Jails are FreeBSD's containers. Jails run a FreeBSD native app in an<br>
isolated container. You cannot run Linux in a jail. Linux is an OS in<br>
its own right. It does not run under FreeBSD.<br>
<br>
You can run Linux in a bhyve VM but not in a jail.<br>
<br>
Also: on mailing lists, your reply should be BELOW the trimmed text<br>
you are replying to. Press the Ctrl+A key in Gmail's web interface,<br>
trim, write below.<br>
<br>
<br>
-- <br>
Liam Proven ~ Profile: <a href="https://about.me/liamproven" rel="noreferrer" target="_blank">https://about.me/liamproven</a><br>
Email: <a href="mailto:lproven@cix.co.uk" target="_blank">lproven@cix.co.uk</a> ~ gMail/gTalk/FB: <a href="mailto:lproven@gmail.com" target="_blank">lproven@gmail.com</a><br>
Twitter/LinkedIn: lproven ~ Skype: liamproven<br>
IoM: (+44) 7624 227612: UK: (+44) 7939-087884<br>
Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>