Shared lib.sh builder: pvebox storage/bridge defaults, self-downloading scripts, Debian 13

This commit is contained in:
steffen committed 2026-11-04 20:47:19 +01:00
1 parent 3306959dcd
commit 24e624234b
8 files changed
+122 -105

No files matched your search

+26 -3
View File
@@ -9,9 +9,32 @@ cd prox-mal/
```
## 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
Or build a single template: `./Ubuntu-LTS-Small.sh`
## Templates
| Script | VM ID | Docker |
|---|---|---|
| Ubuntu-LTS-Small.sh | 2000 | no |
| Ubuntu-LTS-Medium.sh | 3000 | yes |
| Ubuntu-LTS-Large.sh | 4000 | yes |
| Debian.sh (Debian 13) | 9998 | yes |
| Ubuntu-22-04-LTS.sh | 9999 | yes |
Each script only sets its sizes and image; the build itself is in `lib.sh`. Set `DOCKER=0`
in a script to skip Docker. The image is cached in `/var/lib/vz/template/cloud` and each
script works on its own copy, so they can run in any order.
## Where the templates land
Defaults fit pvebox: storage `ssd`, network `vmbr1` (VM-Ekstern). Override per run:
```sh
STORAGE=tank BRIDGE=intern ./Ubuntu-LTS-Large.sh
```
A script stops if its VM ID already exists. Remove the old template first:
`qm destroy 2000 --purge`
<details>
<summary>Source Doc </summary>