Bala's Blog

Linux Binary Compatibility in FreeBSD

September 15 2018
70 words, ~1 min. read
freebsd,  Linux 

FreeBSD provides binary compatibility with Linux. For more details, refer to the FreeBSD documentation.

  1. Try to load the Linux kernel module
# kldload linux64
  1. Verify the kernel was loaded successfully
# kldstat
  1. Install Linux emulator
# pkg install linux_base-c6 # for CentOS 6
# # or
# pkg install linux_base-c7 # for CentOS 7

To enable Linux compatibility at boot time, add the following line in /etc/rc.conf.

linux_enable="YES"

References