Skip to content

Automate the creation and configuration of Proxmox VMs using a simple shell script

License

Notifications You must be signed in to change notification settings

Tomyail/pve-template-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Proxmox VM Template Creator

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.

Features

  • 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

Prerequisites

  • Proxmox VE installed and configured
  • The jq, wget, and qm commands must be available on the system

Usage

  1. Download the create-template.sh script using either curl or wget.

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
  1. Make the script executable.
chmod +x create-template.sh
  1. Run the script.
./create-template.sh
  1. Follow the prompts to enter the required information, such as VM ID, core count, memory size, disk size, storage location, username, and password.

  2. The script will download the selected image, configure the VM, and create a cloud-init config file with the user-defined username and password.

  3. If desired, you can choose to convert the VM to a template.

Contributing

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.

License

This project is licensed under the MIT License.

About

Automate the creation and configuration of Proxmox VMs using a simple shell script

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages