Hi
I'd like to deploy a vm where I got a qcow2 image file, but need to create and attach two more disks. As I want to automate this, using the GUI is no option.
As far as I understand reading the manuals, the
Well,
I already tried some modifications like
.. but all the same :-(
Of course, there's a workaround by creating the disk using
So: What did I wrong? How does the correct command look like?
Thanks
Bjørn
I'd like to deploy a vm where I got a qcow2 image file, but need to create and attach two more disks. As I want to automate this, using the GUI is no option.
As far as I understand reading the manuals, the
pvesm
command should do so. But when I issue it I got an error:
Code:
pvesm alloc fastpool 830 vm-830-disk-1 500G --format qcow2
unable to parse volume filename 'vm-830-disk-1'
Well,
fastpool
is a valid storage id:
Code:
pvesm list fastpool
Volid Format Type Size VMID
fastpool:100/vm-100-disk-0.raw raw rootdir 8589934592 100
fastpool:102/vm-102-disk-0.qcow2 qcow2 images 34359738368 102
fastpool:104/vm-104-disk-1.qcow2 qcow2 images 214748364800 104
fastpool:104/vm-104-disk-2.qcow2 qcow2 images 137438953472 104
...
fastpool:830/vm-830-disk-0.qcow2 qcow2 images 86973087744 830
I already tried some modifications like
Code:
pvesm alloc fastpool 830 vm-830-disk-1.qcow2 500G --format qcow2
pvesm alloc fastpool 830 830/vm-830-disk-1 500G --format qcow2
pvesm alloc fastpool 830 images/830/vm-830-disk-1 500G --format qcow2
pvesm alloc fastpool 830 /fast/pool/images/830/vm-830-disk-1 500G --format qcow2
Of course, there's a workaround by creating the disk using
qemu-img
and then import the disk -- but I think pvesm alloc
should work better.So: What did I wrong? How does the correct command look like?
Thanks
Bjørn