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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!