【问题标题】:Create LXC Containers On Proxmox With KeyCtl and Nesting使用 KeyCtl 和嵌套在 Proxmox 上创建 LXC 容器
【发布时间】:2020-01-17 23:17:19
【问题描述】:

我已成功创建 Ansible 剧本和角色,以在 Proxmox 上创建和配置 LXC 容器。我现在正在寻找使用 Ansible 来运行 docker-compose 文件,最好能够启动 LXC 以首先运行它们。

我已经使用 Ansible 成功创建了非特权容器,但是在能够在 LXC 上使用 docker 之前,我需要在物理上更改容器的功能,例如

keyctl =1
nesting =1 

有人知道通过 Ansible 角色这样做吗?

【问题讨论】:

    标签: ansible lxc proxmox


    【解决方案1】:

    查看https://pve.proxmox.com/wiki/Linux_Container 进行匹配:

    features: [fuse=<1|0>] [,keyctl=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]
    

    在您的 /etc/pve/lxc/VMID.conf 中

    【讨论】:

      猜你喜欢
      • 2019-09-12
      • 2018-06-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-31
      • 1970-01-01
      • 1970-01-01
      • 2022-11-11
      相关资源
      最近更新 更多