1. How could I get (e.g. in a bash script) the name of disk created after a successfull invocation of
How could I get that vm-201-disk-0 ? (preferably without grep / regex )
(I know the first disk will always be named "disk-0" but what if there are another disks in VM?)
2. There is a way to set the disk name during/after a
E.g. Rename the above disk to vm-201-main-os
Feature request: Add a
qm import disk
?
Bash:
# qm importdisk 201 ubuntu-20.04-server-cloudimg-amd64.img local-zfs
(...)
transferred 2.2 GiB of 2.2 GiB (100.00%)
Successfully imported disk as 'unused0:local-zfs:vm-201-disk-0'
How could I get that vm-201-disk-0 ? (preferably without grep / regex )
(I know the first disk will always be named "disk-0" but what if there are another disks in VM?)
2. There is a way to set the disk name during/after a
qm import disk
?E.g. Rename the above disk to vm-201-main-os
Feature request: Add a
--name
option in qm import disk
?
Bash:
# qm importdisk 201 ubuntu-20.04-server-cloudimg-amd64.img local-zfs --name vm-201-main-os