Create multiple Proxmox containers via script


There are times when I need to create a number of OpenVZ containers in Proxmox at once, which would take way too long via the user interface.  There are a number of ways to accomplish this programmatically, but the most straightforward (assuming you have root access) is via  pvectl .

Below is an example script which creates identical containers.  Adjust the container IDs to ones that are available, as well as any other parameters you need.  If you need more advanced options, the man page can be found at https://pve.proxmox.com/wiki/Pvectl_manual .

Your output will be something like:

 

 

Leave a comment

Your email address will not be published. Required fields are marked *