create storage for qemu via pvesh

thp

New Member
Nov 12, 2013
8
0
1
Hi,

I try to create a vm via pvesh.

pvesh \
create /nodes/mynode1/qemu \
-vmid 100 \
-memory 1024 \
-boot nc \
-net0 'virtio=<my-mac>,bridge=vmbr23' \
-ostype l26 \
-sockets 1 \
-virtio0 'clvm:vm-100-disk-1,cache=writeback,size=10G' \
-name 'vmguest100'

This works fine, but it does not create logical volume vm-100-disk-1.

How can I create a logical volume vm-100-disk-1 under storage clvm with pvesh?

Viele Gruesse,
thomas.
 
[solved] Re: create storage for qemu via pvesh

my mistake was in follow line:

-virtio0 'clvm:vm-100-disk-1,cache=writeback,size=10G' \

With

-virtio0 'clvm:10,cache=writeback'

it works. I found the solution in a question from 2012 in this forum: http://forum.proxmox.com/archive/index.php/t-12059.html

Would it be possible to update your api documentation?