Project

General

Profile

Support #937

Setup Linux Emulation on FreeBSD

Added by Daniel Curtis over 6 years ago. Updated almost 3 years ago.

Status:
Suspended
Priority:
Normal
Assignee:
Category:
Jails / Containers
Target version:
Start date:
05/23/2018
Due date:
% Done:

0%

Estimated time:
1.00 h

Description

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

Prepare the Environment

  • Make sure the system is up to date:
    pkg update && pkg upgrade
    

Install Linux base

  • Load the Linux kernel module:
    kldload linux
    
    • Check that it was loaded:
      kldstat
      
  • Install the CentOS 7 Linux base:
    pkg install linux-c7
    
  • Edit /etc/fstab:
    vi /etc/fstab
    
    • And add the following:
      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
      
  • Mount the Linux filesystems:
    mount /compat/linux/proc
    mount /compat/linux/sys
    mount /compat/linux/dev/shm
    

Resources

Also available in: Atom PDF