LXCのカーネルコンパイルオプションの調査-続き

カーネルをコンパイルするとき、LXCにどのコンパイルオプションを設定する必要がありますか?menuconfigの位置でCONFIG_VLAN_8021Qオプションを探しているときに、誤っwiki.gentoo.orgで詳細な説明を見つけました。抜粋は、次のとおりです。

wiki.gentoo.org/wiki/LXC

  • 一般的なオプション

    General setup  --->
    [*] Control Group support  --->
      [*]   Freezer cgroup subsystem 
      [*]   Device controller for cgroups
      [*]   Cpuset support
      [*]     Include legacy /proc/<pid>/cpuset file
      [*]   Simple CPU accounting cgroup subsystem 
      [*]   Resource counters 
      [*]     Memory Resource Controller for Control Groups
      [*]       Memory Resource Controller Swap Extension
      [*]         Memory Resource Controller Swap Extension enabled by default
      [*]   Enable perf_event per-cpu per-container group (cgroup) monitoring
      [*]   Group CPU scheduler  --->
      [*]   Group scheduling for SCHED_OTHER 
      [*]   Group scheduling for SCHED_RR/FIFO   
      <*>   Block IO controller
    -*- Namespaces support
      [*]   UTS namespace
      [*]   IPC namespace
      [*]   User namespace (EXPERIMENTAL)
      [*]   PID Namespaces
      [*]   Network namespace 
    [*] Configure standard kernel features (expert users)  
    [*] Networking support  --->
          Networking options  --->
          <M> 802.1d Ethernet Bridging
          <M> 802.1Q VLAN Support 
    Device Drivers  --->
          [*] Network device support  --->
          <M>   MAC-VLAN support (EXPERIMENTAL)
          <M>   Virtual ethernet pair device
          Character devices  --->
          -*- Unix98 PTY support
          [*]   Support multiple instances of devpts
    
    • 名前空間

      General Setup 
      -> Namespaces support 
      CONFIG_NAMESPACES / "Namespaces" ('General Setup -> Namespaces support')
      CONFIG_UTS_NS / "Utsname namespace" ('General Setup -> Namespaces Support / UTS namespace')
      CONFIG_IPC_NS / "Ipc namespace" ('General Setup -> Namespaces Support / IPC namesapce')
      CONFIG_USER_NS / "User namespace" ('General Setup -> Namespaces Support / User namespace (EXPERIMENTAL)')
      CONFIG_PID_NS / "Pid namespace" ('General Setup -> Namespaces Support / PID Namespaces')
      CONFIG_NET_NS / "Network namespace" ('General Setup -> Namespaces Support -> Network namespace')
        Device Drivers 
      -> Character devices 
      -> Unix98 PTY support -> ...
      CONFIG_DEVPTS_MULTIPLE_INSTANCES / "Multiple /dev/pts instances" ('Device Drivers -> Character devices -> Unix98 PTY support -> Support multiple instances of devpts')
      KERNEL control groups
      
    • 対照群

      #  -> General Setup -> Control Group support -> ...
      CONFIG_CGROUPS / "Cgroup" ('General Setup -> Control Group support')
      CONFIG_CGROUP_DEVICE / "Cgroup device" ('General Setup -> Control Group support -> Device controller for cgroups') 
      CONFIG_CPUSETS / "Cgroup cpuset"
      
  • 冷凍庫のサポート

    CONFIG_CGROUP_FREEZER / "Freeze/thaw support" ('General Setup -> Control Group support -> Freezer cgroup subsystem')
    
  • スケジュールオプション

    CONFIG_CGROUP_SCHED / "Cgroup sched" ('General Setup -> Control Group support -> Group CPU scheduler')
    FAIR_GROUP_SCHED / "Group scheduling for SCHED_OTHER" ('General Setup -> Control Group support -> Group CPU scheduler -> Group scheduling for SCHED_OTHER')
    CONFIG_BLK_CGROUP / "Block IO controller" ('General Setup -> Control Group support -> Block IO controller')
    CONFIG_CFQ_GROUP_IOSCHED / "CFQ Group Scheduling support" ('Enable the block layer -> IO Schedulers -> CFQ I/O scheduler -> CFQ Group Scheduling support')
    
  • メモリ/スワップアカウンティング

    ゲストのリソース使用率を測定するには…

    CONFIG_CGROUP_MEM_RES_CTLR / "Cgroup memory controller" ('General Setup -> Control Group support -> Resource counters -> Memory Resource Controller for Control Groups')
    

    スワップ使用率もカウントするには、…を選択します。

    CONFIG_CGROUP_MEM_RES_CTLR_SWAP / "Memory Resource Controller Swap Extension(EXPERIMENTAL)" ('General Setup -> Control Group support -> Resource counters -> Memory Resource Controller for Control Groups -> Memory Resource Controller Swap Extension')
    
  • CPUアカウンティング

    CONFIG_CGROUP_CPUACCT / "Cgroup cpu account" ('General Setup -> Control Group support -> Simple CPU accounting cgroup subsystem')
    
  • ネットワークオプション

    CONFIG_BRIDGE / "802.1d Ethernet Bridging" ('Networking support -> Networking options -> 802.1d Ethernet Bridging')
    CONFIG_VETH / "Veth pair device"
    CONFIG_MACVLAN / "Macvlan"
    CONFIG_VLAN_8021Q / "Vlan"
    

おすすめ

転載: blog.csdn.net/hylaking/article/details/90604020