This shell script automates the process of creating a new Proxmox VM from a JSON file containing a list of available images. It downloads the selected image, configures the VM, and optionally converts the VM to a template.
- Downloads a list of available images from a JSON file
- Allows user to select an image
- Downloads the selected image and verifies its checksum
- Configures the VM with user-defined settings, such as VM ID, core count, memory size, disk size, and storage location
- Generates a cloud-init config file with the user-defined username and password
- Automatically installs
qemu-guest-agent
for better guest/host integration - Optionally converts the VM to a template
- Proxmox VE installed and configured
- The
jq
,wget
, andqm
commands must be available on the system
- Download the
create-template.sh
script using eithercurl
orwget
.
With curl
:
curl -O https://raw.githubusercontent.com/Tomyail/pve-template-creator/main/create-template.sh
With wget
:
wget https://raw.githubusercontent.com/Tomyail/pve-template-creator/main/create-template.sh
- Make the script executable.
chmod +x create-template.sh
- Run the script.
./create-template.sh
-
Follow the prompts to enter the required information, such as VM ID, core count, memory size, disk size, storage location, username, and password.
-
The script will download the selected image, configure the VM, and create a cloud-init config file with the user-defined username and password.
-
If desired, you can choose to convert the VM to a template.
If you'd like to contribute to this project, please feel free to submit a pull request or open an issue with your suggestions or bug reports.
This project is licensed under the MIT License.