Merge dev: interactive install.sh (newest Ubuntu LTS)

This commit is contained in:
steffen committed 2026-11-04 20:59:03 +01:00
commit 5a564aaa47
3 files changed
+378 -7

No files matched your search

+37 -7
View File
@@ -1,15 +1,45 @@
# Run the image maker
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://git.skui.io/steffen/prox-mal.git
apt install -y git
git clone https://git.skui.io/steffen/prox-mal
cd prox-mal/
./all.sh
bash install.sh
```
Or build a single template: `./Ubuntu-LTS-Small.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.
## Fixed templates (all.sh)
The older per-distro scripts are still here. `./all.sh` builds them all, or run one, e.g. `./Ubuntu-LTS-Small.sh`.
## Templates