LoginSignup
0
0

Ubuntu 24.04 で incus を使う

Posted at

Ubuntu 24.04 から incus がパッケージに含まれました。

$ dpkg -l | grep incus
ii  incus                                                       6.0.0-1                                  amd64        Powerful system container and virtual machine manager - daemon
ii  incus-agent                                                 6.0.0-1                                  amd64        Incus guest agent
ii  incus-client                                                6.0.0-1                                  amd64        Powerful system container and virtual machine manager - client

バージョン

$ incus --version
6.0.0

使い方

次のページを参考にしました。
Incusを使う最初のステップ

一般ユーザーで、incus を使えるようにする

sudo adduser uchida incus-admin
newgrp incus-admin

初期化

incus admin init --minimal

イメージのインストール

incus launch images:ubuntu/22.04 first

コンテナが動いていることの確認

$ incus list
+-------+---------+----------------------+-----------------------------------------------+-----------+-----------+
| NAME  |  STATE  |         IPV4         |                     IPV6                      |   TYPE    | SNAPSHOTS |
+-------+---------+----------------------+-----------------------------------------------+-----------+-----------+
| first | RUNNING | 10.158.98.219 (eth0) | fd42:16ef:86e0:dbd7:216:3eff:fe8f:9dcf (eth0) | CONTAINER | 0         |
+-------+---------+----------------------+-----------------------------------------------+-----------+-----------+

ルートのパスワードの設定

incus exec first  -- bash
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0