Add interactive install.sh: newest Ubuntu LTS, storage probe, N templates with sizes

This commit is contained in:
steffen committed 2026-10-30 10:02:18 +01:00
1 parent c8f9576225
commit b92d4f6924
3 files changed
+374 -10

No files matched your search

+33 -10
View File
@@ -1,18 +1,41 @@
# To run the image maker make all the script able to run
Open the console or ssh in to your Proxmox node.
# prox-mal: Proxmox templates from the newest Ubuntu LTS
Open the console or SSH into your Proxmox node as root:
```sh
apt install git
git clone https://gitlab.skui.io/Hawolex/prox-mal
apt install -y git
git clone https://git.skui.io/steffen/prox-mal
cd prox-mal/
chmod +x all.sh
./all.sh
bash install.sh
```
## Image Medium and Large
Docker and Docker Compose comes pre installed from the Docker github repo. \
If not wanted, you can comment out line 12 in Large and Medium.sh
The installer:
1. Finds the newest supported Ubuntu LTS that has a cloud image (from `changelogs.ubuntu.com/meta-release-lts`), then downloads it and checks its SHA256 checksum.
2. Asks for a template name (default e.g. `ubuntu-26-04`).
3. Lists the active storage that can hold VM disks and lets you pick one.
4. Asks how many templates to build. For each one you set the name suffix, VM ID, vCPU, RAM, disk size and whether to install Docker. Templates 1-3 default to small / medium / large:
| Preset | vCPU | RAM | Disk | Docker |
|---|---|---|---|---|
| small | 2 | 2 GB | 32 GB | no |
| medium | 2 | 4 GB | 50 GB | yes |
| large | 4 | 8 GB | 100 GB | yes |
5. Shows a summary and asks before it creates anything.
Each template is built from its own copy of the image. Every template gets `qemu-guest-agent`, cloud-init (DHCP) and an empty machine-id. VM IDs that are already in use anywhere in the cluster are rejected.
Optional environment variables: `BRIDGE` (default `vmbr0`) and `WORKDIR` (image cache, default `/var/tmp/prox-mal`).
Requires Proxmox VE 7.2 or newer (`import-from`).
After cloning a template, set a user and key before the first boot:
```sh
qm clone 9000 200 --name my-vm --full
qm set 200 --ciuser ubuntu --sshkeys ~/.ssh/id_rsa.pub
```
## Legacy scripts
`all.sh`, `Ubuntu-LTS-*.sh`, `Ubuntu-22-04-LTS.sh` and `Debian.sh` are the old fixed-size scripts (hard-coded storage `rust`/`local-lvm` and IDs). They are kept for reference. Use `install.sh` instead.
<details>
<summary>Source Doc </summary>