LXD:“默认”存储池不存在

时间:2019-02-06 18:03:45

标签: lxd

当我尝试编辑默认的lxc配置文件时出现以下错误:

  

“默认”存储池不存在

1 个答案:

答案 0 :(得分:0)

/snap/bin/lxd init

lxd init

解决了该问题,但为以下内容选择是:

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文档会有所帮助。