Summary
I’m not able to use the lxc
command line utility to get information about a storage volume for an LXD virtual machine.
Repro Steps
- Initialize LXD with default configuration (ZFS storage pool).
lxd init
- Next, create an LXD VM
lxc launch --vm images:ubuntu/23.04 u01
- Get the list of storage volumes from the default (zfs) storage pool:
- Attempt to get details for a specific volume
# lxc storage volume list default --columns etndcuL
+-----------------+------------------------------------------------------------------+-------------+--------------+---------+
| TYPE | NAME | DESCRIPTION | CONTENT-TYPE | USED BY |
+-----------------+------------------------------------------------------------------+-------------+--------------+---------+
| image | bba7d5687f728e476f38ffe611cf4de3aadfafde651eccffbb186af7d04457ab | | block | 1 |
+-----------------+------------------------------------------------------------------+-------------+--------------+---------+
| virtual-machine | u01 | | block | 1 |
+-----------------+------------------------------------------------------------------+-------------+--------------+---------+
# lxc storage volume show default u01
Error: Storage pool volume not found
# lxc storage volume show default bba7d5687f728e476f38ffe611cf4de3aadfafde651eccffbb186af7d04457ab
Error: Storage pool volume not found
This is confusing, because the volumes are listed by the lxc storage volume list
command, but then I am unable to get details about them using volume show
or volume info
commands.
How can I get details about the rootfs volume for an LXD VM?