Wener Notes

LXD

约 1 分钟阅读
  • lxc/lxdGitHublxc/lxd-> lxc/incus · Apache 2.0 · community fork of Canonical's LXD · lxc/lxd · canonical/lxd · AGPL-3.0, Go · canonical 从 Linux Container community takeover, 修改 License 为 AGPLv3笔记:LXD
  • canonical/lxdGitHubcanonical/lxd-> lxc/incus · Apache 2.0 · community fork of Canonical's LXD · lxc/lxd · canonical/lxd · AGPL-3.0, Go · canonical 从 Linux Container community takeover, 修改 License 为 AGPLv3笔记:LXD
    • AGPL-3.0, Go
    • canonical 从 Linux Container community takeover, 修改 License 为 AGPLv3
    • 对 LXC 的封装 - 管理容器运行
    • 运行 daemon 暴露 rest 接口
    • 支持 kvm
    • 能管理 LXC 和 QEMU
  • lxd package content
  • images.linuxcontainers.org - Image server for LXC and LXD
  • vs LXC
    • 因为有了 daemon 因此更方便管理使用
    • 使用 Go 实现
    • lxc 命令包含了很多功能而不是之前 lxc-* 之类的命令
    • lxd 安装后 150MB,lxc 安装后 15 MB
  • 参考
  • lxd 的核心命令是 lxc
    • 集成了之前 lxc-* 的功能
    • 类似于 2.0
bash
# 等同于 root 权限
usermod -a -G lxd $USER

# tuna 镜像
lxc remote add tuna-images https://mirrors.tuna.tsinghua.edu.cn/lxc-images/ --protocol=simplestreams --public
lxc image list tuna-images:

KVM in LXC/LXD

ini
# /dev/kvm
lxc.cgroup.devices.allow = c 10:232 rwm
bash
lxc config device add CONTAINER kvm unix-char path=/dev/kvm

关联信息

反向链接、本文链接的其他页面和外部资料。

References

GitHub3 条
其他外链3 条
最近更新commit e27c7f5Edit

On this page