Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Oct 2005 14:45:42 +1000
From:      Michael Christie <michael@christie.org.au>
To:        freebsd-questions@freebsd.org
Subject:   Linux computability
Message-ID:  <435B1576.6060406@christie.org.au>

next in thread | raw e-mail | index | archive | help

Hi all,

Last night I was trying to work out how to get Linux programs to run 
under freebsd. I have worked out how to get Linux programs to run in 
side a jail under freebsd Linux computability.

1, install linux_base on to the host server, edit rc.conf  add 
linux_enable="YES"
2, make a jail using jail tools and or jail tools webmin.  
http://www.the-labs.com/FreeBSD/JailTools/
3, add mounts from the host to the jail

add mount,
mount_nullfs /compat/ /usr/jails/myjailname/compat/
mount_linprocfs linprocfs /usr/jails/myjailname/compat/linux/proc

To Mount at boot time  edit /etc/fstab
 /compat /usr/jails/myjailname/compat             nullfs    rw  0  0
  linproc /usr/jails/myjailname/compat/linux/proc  linprocfs rw  0  0

4 edit rc.conf inside the jail  add  linux_enable="YES"

Now Linux programs run in side of the jail.



Thanks

Michael
www.thebushtelegraph.net



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