Project

General

Profile

Support #937

Updated by Daniel Curtis over 6 years ago

This is a guide for setting up Linux emulation on FreeBSD 11. 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 pkg update && pkg upgrade 
 </pre> 

 h2. Install Linux base 

 * Load the Linux kernel module: 
 <pre> 
 kldload linux 
 </pre> 
 #* Check that it was loaded: 
 <pre> 
 kldstat 
 </pre> 

 * Install the CentOS 7 Linux base: 
 <pre> 
 pkg install linux-c7 
 </pre> 

 * Edit /etc/fstab: 
 <pre> 
 vi /etc/fstab 
 </pre> 
 #* And add the following: 
 <pre> 
 linprocfs     /compat/linux/proc 	 linprocfs 	 rw 	 0 	 0 
 linsysfs      /compat/linux/sys 	 linsysfs 	 rw 	 0 	 0 
 tmpfs      /compat/linux/dev/shm 	 tmpfs 	 rw,mode=1777 	 0 	 0 
 linsysfs      /compat/linux/sys 	 linsysfs 	 rw 	 0 	 0 
 </pre> 

 * Mount the Linux filesystems: 
 <pre> 
 mount /compat/linux/proc 
 mount /compat/linux/sys 
 mount /compat/linux/dev/shm 
 </pre> 

 h2. Resources 

 * https://fleximus.org/howto/setup-linux-emulation-in-freebsd 
 * https://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html

Back