API: Create KVM with Logical Volume

argonius

Renowned Member
Jan 17, 2012
48
1
71
Hi,

i am trying to create a kvm via PVE API.
For HardDisk I tell PVE to use:
$new_container_settings['ide0'] = "VG_STOR:vm-1234-disk-1,cache=writeback,size=32G";

But if i run my script, proxmox tells me he can not enable die logical volume.
This is true, 'cause the lv does not exist. I wanted pve to create it for me. do i need a seperate
api call to create the lv? Which call is it, 'cause i did not found anything related in the documentation.

thanks,

patrick