LXD: "default" 存储池不存在

LXD: The "default" storage pool doesn't exist

我在尝试编辑默认 lxc 配置文件时遇到以下错误:

The "default" storage pool doesn't exist

/snap/bin/lxd init

lxd init

解决了这个问题,但是 select 是以下问题:

Do you want to configure a new storage pool? (yes/no) [default=yes]:

然后您可以使用以下命令和输出进行确认:

/snap/bin/lxc storage list

+---------+-------------+--------+--------------------------------------------+---------+
|  NAME   | DESCRIPTION | DRIVER |                   SOURCE                   | USED BY |
+---------+-------------+--------+--------------------------------------------+---------+
| default |             | zfs    | /var/snap/lxd/common/lxd/disks/default.img | 1       |
+---------+-------------+--------+--------------------------------------------+---------+

以下 this 文档会有所帮助。