API doc for automatic container rootfs initialization

3coma3

New Member
May 1, 2019
2
1
1
49
Hello! I'm using the REST API to create LXC containers, and one problem I had is that I could not find any documentation on how the rootfs parameter should be passed to have PVE to automatically create and format the root volume, and copy the template there.

After some googling, I found on these forums the answer, it was passing the volume string as storage:size (size in GB). However, I could not find it in https://pve.proxmox.com/pve-docs/api-viewer , nor in PVESH.

My question is: where is the official documentation for this parameter formatting?
 
  • Like
Reactions: knotty66
Hi,

The special syntax of <storageid>:<size> is not too well documented, I agree, however you can find the description in the manpage of pct (`man pct` - search for 'Mount Points') - `pct` is the CLI tool for managing containers, and uses the API-definitions itself.

Hope this helps!
 
Thanks Stoiko! The pct manual has the information and is very complete. Hope you can update also the API doc sometime, I have to say that the API doc is also in very good shape. If pct and qm follow the API definitions then I will have in mind to complement the API doc with their manpages when needed.

Regards