Incus - 次世代のシステムコンテナおよび仮想マシン管理ツール
本家: Linux Containers - Incus - Introduction
Incusは、システムコンテナと仮想マシンを管理するためのオープンソースツールです。
LXD(Canonicalが開発していたコンテナ管理ツール)からフォークされ、Linux Containersプロジェクトが2023年に開発を引き継いだもの。
LXC(Linux Containers)とQEMU(仮想マシン)をバックエンドに使い、軽量で柔軟なコンテナおよび仮想マシン管理を提供します。
Podmanとは異なり、システム全体(OS環境)を動かすことに特化している。
主な特徴
- システムコンテナ: フルOS環境(例: Ubuntu 24.04やFedora 42)をコンテナとして実行。Docker/Podmanのアプリコンテナより重厚。
- 仮想マシン: QEMUを使って仮想マシンも管理可能(例: WindowsやLinuxのVM)。
- ルートレス/ルートフル: デフォルトはroot権限で動作だが、ルートレスも設定次第で可能。
- REST API: クライアント(incus-client)がREST API経由でサーバーと通信。リモート管理も簡単。
- 機能:
- コンテナ/VMの作成、起動、停止、削除
- スナップショット、ライブマイグレーション、クラスタリング
- ストレージプール、ネットワークブリッジのカスタマイズ
- ネストコンテナ(例: Incus内でPodman)対応
- ライセンス: Apache 2.0
by Grok
インストール
$ sudo dnf install -y incus
リポジトリの更新を読み込み中: リポジトリを読み込みました。 Package Arch Version Repository Size Installing: incus x86_64 6.15-1.fc42 updates 68.1 MiB Installing dependencies: cowsql x86_64 1.15.9-1.fc42 updates 195.7 KiB incus-client x86_64 6.15-1.fc42 updates 22.5 MiB incus-selinux noarch 6.15-1.fc42 updates 10.2 KiB lxc-libs x86_64 6.0.5-1.fc42 updates 2.5 MiB lxc-templates x86_64 6.0.5-1.fc42 updates 48.6 KiB lxcfs x86_64 6.0.5-1.fc42 updates 226.8 KiB raft x86_64 0.22.1-3.fc42 fedora 222.2 KiB xdelta x86_64 3.1.0-22.fc42 fedora 185.6 KiB Installing weak dependencies: incus-agent x86_64 6.15-1.fc42 updates 18.0 MiB Transaction Summary: Installing: 10 packages パッケージサイズ 34 MiB 、ダウンロードサイズ 27 MiB 。 完了後、112 MiB のサイズが利用されます(インストール 112 MiB、削除 0 B)。 [ 1/10] incus-client-0:6.15-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/10] xdelta-0:3.1.0-22.fc42.x86_64 100% | 160.4 KiB/s | 90.6 KiB | 00m01s [ 3/10] cowsql-0:1.15.9-1.fc42.x86_64 100% | 50.9 KiB/s | 88.2 KiB | 00m02s [ 4/10] raft-0:0.22.1-3.fc42.x86_64 100% | 87.5 KiB/s | 107.0 KiB | 00m01s [ 5/10] lxcfs-0:6.0.5-1.fc42.x86_64 100% | 18.4 KiB/s | 95.5 KiB | 00m05s [ 6/10] lxc-templates-0:6.0.5-1.fc42.x86_64 100% | 13.3 KiB/s | 21.6 KiB | 00m02s [ 7/10] incus-selinux-0:6.15-1.fc42.noarch 100% | 9.5 KiB/s | 21.9 KiB | 00m02s [ 8/10] lxc-libs-0:6.0.5-1.fc42.x86_64 100% | 41.3 KiB/s | 1.0 MiB | 00m25s [ 9/10] incus-agent-0:6.15-1.fc42.x86_64 100% | 56.9 KiB/s | 5.7 MiB | 01m42s [10/10] incus-0:6.15-1.fc42.x86_64 100% | 84.6 KiB/s | 19.8 MiB | 04m00s -------------------------------------------------------------------------------------------------------------------------- [10/10] Total 100% | 113.7 KiB/s | 26.9 MiB | 04m02s トランザクションを実行中 [ 1/12] パッケージ ファイルを検証 100% | 19.0 B/s | 10.0 B | 00m01s [ 2/12] トランザクションの準備 100% | 8.0 B/s | 10.0 B | 00m01s [ 3/12] インストール中 lxc-libs-0:6.0.5-1.fc42.x86_64 100% [==================] | 8.6 MiB/s | 2.5 MiB | 00m00s >>> %triggerin scriptlet を実行中: filesystem-0:3.18-47.fc42.x86_64 Symlinking /usr/sbin/init.lxc -> /usr/bin/init.lxc [ 3/12] インストール中 lxc-libs-0:6.0.5-1.fc42.x86_64 100% | 3.5 MiB/s | 2.5 MiB | 00m01s [ 4/12] インストール中 lxc-templates-0:6.0.5-1.fc42.x86_64 100% | 882.9 KiB/s | 50.3 KiB | 00m00s [ 5/12] インストール中 lxcfs-0:6.0.5-1.fc42.x86_64 100% | 1.0 MiB/s | 229.6 KiB | 00m00s [ 6/12] インストール中 incus-selinux-0:6.15-1.fc42.noarch 100% | 236.0 B/s | 10.4 KiB | 00m45s [ 7/12] インストール中 raft-0:0.22.1-3.fc42.x86_64 100% | 898.3 KiB/s | 223.7 KiB | 00m00s [ 8/12] インストール中 cowsql-0:1.15.9-1.fc42.x86_64 100% | 1.0 MiB/s | 197.1 KiB | 00m00s [ 9/12] インストール中 xdelta-0:3.1.0-22.fc42.x86_64 100% | 1.1 MiB/s | 187.1 KiB | 00m00s [10/12] インストール中 incus-client-0:6.15-1.fc42.x86_64 100% | 15.7 MiB/s | 22.6 MiB | 00m01s >>> sysusers scriptlet を実行中: incus-0:6.15-1.fc42.x86_64 >>> sysusers scriptlet を実行完了: incus-0:6.15-1.fc42.x86_64 >>> scriptlet 出力: >>> Creating group 'incus' with GID 964. >>> Creating group 'incus-admin' with GID 963. >>> [11/12] インストール中 incus-0:6.15-1.fc42.x86_64 100% | 30.3 MiB/s | 68.1 MiB | 00m02s [12/12] インストール中 incus-agent-0:6.15-1.fc42.x86_64 100% | 493.4 KiB/s | 18.0 MiB | 00m37s 完了しました!