236 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
1da0d502d7 Simplify VM disk setup in cachyos-vm.sh
Remove storage type detection and explicit pvesm alloc/qm set steps, and inline EFI/disk/CD configuration into the initial qm create call. Uses unified storage refs (efidisk0 ${STORAGE}:1,efitype=4m,pre-enrolled-keys=0 and scsi0 ${STORAGE}:${DISK_SIZE},${DISK_CACHE}${THIN%,}) and sets the ISO via -cdrom local:iso/${FILENAME}. Adds a success message and streamlines VM creation by eliminating per-storage branching and manual allocation logic.
2026-02-16 10:07:29 +01:00
CanbiZ (MickLesk)
d87c93a364 Update cachyos-vm.sh
Some checks failed
Update GitHub Versions (New) / update-github-versions (push) Has been cancelled
Update Versions from GitHub / update-versions (push) Has been cancelled
2026-02-14 15:22:23 +01:00
CanbiZ (MickLesk)
1d3f45f792 Use local ISO cache; remove ISO storage selection
Remove interactive ISO storage detection/selection and associated ISO_PATH logic. Default to a fixed cache directory (/var/lib/vz/template/iso) via CACHE_DIR and update CACHE_FILE and mkdir usage accordingly. Also update VM configuration to reference the local ISO store (local:iso/<file>) instead of the previously selectable storage. This simplifies ISO handling by avoiding pvesm/whiptail prompts; note this hardcodes the ISO location and removes support for alternate ISO storages.
2026-02-14 14:58:11 +01:00
CanbiZ (MickLesk)
fe369825a5
Merge pull request #1456 from heinemannj/truenas-vm
Some checks failed
Update GitHub Versions (New) / update-github-versions (push) Has been cancelled
Crawl Versions from newreleases.io / crawl-versions (push) Has been cancelled
Crawl Versions from github / crawl-versions (push) Has been cancelled
truenas-vm: Refactor pve_check function and update disk listing
2026-02-14 09:12:11 +01:00
CanbiZ (MickLesk)
7d7c6e4096 Add CachyOS VM creation script
Introduce an interactive script (vm/cachyos-vm.sh) to create and configure a CachyOS VM on Proxmox. The script validates Proxmox environment and architecture, offers default and advanced settings via whiptail, detects storage/ISO locations, downloads the CachyOS desktop ISO, allocates EFI and main disks, creates and configures the VM (network, CPU, memory, disks, boot order, OVMF), sets a rich VM description, and optionally starts the VM. Also add an ASCII header file (vm/headers/cachyos-vm) used by the script.
2026-02-13 15:26:17 +01:00
Joerg Heinemann
684ae3e762
Refactor pve_check function and update disk listing
See: https://github.com/community-scripts/ProxmoxVED/issues/1362#issuecomment-3897164396
2026-02-13 14:41:11 +01:00
CanbiZ (MickLesk)
e7057f29d4 Add interactive SSH key selection for cloud-init
Make SSH key provisioning explicit and interactive for cloud-init VMs. Default CLOUDINIT_SSH_KEYS is now empty; new helper functions discover and extract public keys from common host files, count them, and present a whiptail menu (import all host keys, paste one key, specify a file, or none). configure_cloudinit_ssh_keys writes selected keys to a temp file and sets CLOUDINIT_SSH_KEYS accordingly (removing the temp file if empty). setup_cloud_init now only applies --sshkeys when CLOUDINIT_SSH_KEYS is explicitly provided and logs the source, and vm/docker-vm.sh invokes the key selection UI for cloud-init VMs.
2026-02-04 11:16:41 +01:00
CanbiZ (MickLesk)
49318cc629 remove ssh check 2026-02-03 14:11:38 +01:00
CanbiZ (MickLesk)
e91972e02c Enhance VM image customization and auto-login
Add informative status messages and improve image customization flow: install base packages and Docker during virt-customize, enable Docker service, and configure /etc/docker/daemon.json (sets DOCKER_PREINSTALLED on success). Add finalization messages while setting hostname and SSH config. For images without cloud-init, add systemd drop-ins to enable root autologin on serial-getty@ttyS0 and getty@tty1. Also add a trailing newline to nginx-ui.json.
2026-02-03 13:10:52 +01:00
CanbiZ (MickLesk)
b7b988bc75 Remove duplicate qm set; show Cloud-Init output
Collapse duplicated qm set invocation into a single call when attaching the EFI and root disk, removing the duplicate conditional block. Also stop redirecting setup_cloud_init output (remove >/dev/null 2>&1) so Cloud-Init setup logs and errors are visible for debugging. Note: the previous conditional added a --scsi1 "${STORAGE}:cloudinit" only when USE_CLOUD_INIT=yes; that explicit scsi1 assignment is no longer present in this unified call.
2026-02-03 12:17:01 +01:00
CanbiZ (MickLesk)
5037dad561 Update docker-vm.sh 2026-02-03 11:39:23 +01:00
CanbiZ (MickLesk)
044fc85fac Refactor Docker VM: image caching & preinstall
Remove Portainer option and related install/helper functions. Add caching of downloaded OS images to /var/lib/vz/template/cache and use a temporary work qcow2 for customization. Try to preinstall qemu-guest-agent and Docker with virt-customize (marking DOCKER_PREINSTALLED on success) and provide a fallback first-boot install-docker.service script when customization fails. Replace import flow to detect qm disk import vs qm importdisk, import the prepared image into storage, resize the disk, attach EFI/root disks, and simplify VM creation steps. Include various UX/cleanup tweaks (spinner handling, storage import flags, status messages and Cloud-Init/SSH handling).
2026-02-03 11:27:11 +01:00
juronja
162f62daa2 reversed the disk placeholder size 2026-01-30 10:07:10 +00:00
juronja
05416f9fe5 removing iothread and adding serial ID trim for robustness 2026-01-30 09:39:52 +00:00
juronja
e43427548e added disk size placeholder and changed boot diks to sata 2026-01-30 09:31:47 +00:00
juronja
773e748d95 imported disks now have a serial ID. TrueNAS needs it. 2026-01-30 09:18:42 +00:00
juronja
dd60bb0c51 Merge branch 'truenasvm' of https://github.com/juronja/ProxmoxVED into truenasvm 2026-01-29 20:08:28 +00:00
juronja
2c9fb7b6f9 removed comments 2026-01-29 19:01:49 +00:00
juronja
f04946cae8
Adding source in file header
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-01-16 13:20:18 +01:00
juronja
fabeb9f0d6 added comments for custom code specific to truenas 2026-01-16 11:34:48 +00:00
juronja
773d588232 removed info message 2026-01-16 11:26:25 +00:00
juronja
d979edecf1 Fetching iso list msg 2026-01-16 11:16:21 +00:00
juronja
42b192272d testing with 3 sec sleep 2026-01-15 16:19:00 +00:00
juronja
e748ad5a6d added sleep for disk pickup 2026-01-15 16:02:20 +00:00
juronja
9872ea39f3 api func source changed to VED 2026-01-15 15:52:19 +00:00
juronja
0cd7eed276 initial commit 2026-01-15 15:46:35 +00:00
CanbiZ (MickLesk)
eeb93a3f61
Merge pull request #1286 from juronja/debian-hostname-fix
hostname value for debian fix
2026-01-14 18:34:10 +01:00
juronja
9eb59f42e1 hostname value for debian fix 2026-01-14 17:13:44 +00:00
CanbiZ
ed67ef9663 Update unifi-os-server-vm.sh 2026-01-14 17:22:22 +01:00
CanbiZ
b9aa3ec7ab Enhance Piler and UniFi OS VM installation scripts
Added installation steps for Piler WebUI and improved config file handling in piler-install.sh. Updated unifi-os-server-vm.sh to always prompt for VMID, refactored machine type selection, improved storage validation, added swap file setup for stability, and increased VM IP detection attempts for reliability.
2026-01-14 17:17:04 +01:00
CanbiZ
f8e8050634 fix headers 2026-01-13 11:30:27 +01:00
CanbiZ
4f5e9d893f add missing headers and add windows version of app headers 2026-01-13 11:22:29 +01:00
CanbiZ
b09d6de681 ram 2026-01-07 17:54:29 +01:00
CanbiZ
e4c30ebca5 ip 2026-01-07 17:53:40 +01:00
CanbiZ
6173f5316e Update unifi-os-server-vm.sh 2026-01-07 17:35:58 +01:00
CanbiZ
2c348d4d94 Automate VM provisioning via serial console
Replaces SSH-based installation with serial console automation using a new send_line_to_vm function. The script now logs in, installs Podman, downloads and installs UniFi OS Server, and retrieves the VM IP address directly via the console. This simplifies the process and removes SSH and sshpass dependencies.
2026-01-07 17:23:36 +01:00
Tobias
5d7084c0bb chore: refactor update messages 2026-01-06 17:05:47 +01:00
Tobias
7c27cceec6 some more copyright 2026-01-06 12:43:41 +01:00
Tobias
c5786b9210 happ new year - well a bit late :D 2026-01-06 12:36:02 +01:00
CanbiZ
786be2d8c8 test unifi 2025-12-19 14:40:29 +01:00
CanbiZ
b6e08003be Update docker-vm.sh 2025-12-05 11:05:18 +01:00
CanbiZ
2d264911d7 Update docker-vm.sh 2025-12-05 10:39:48 +01:00
CanbiZ
fa9e9fe4fe Refactor Docker VM script and modularize header
Refactored vm/docker-vm.sh for improved modularity, maintainability, and clarity. Moved ASCII header to a new vm/headers/docker-vm file, streamlined variable and function organization, and enhanced script structure for Docker VM creation with optional Portainer support. Improved error handling, storage selection, and image customization logic.
2025-12-05 09:56:22 +01:00
CanbiZ
3971eb49c7 Indent shell functions for consistency
Updated all function bodies in debian-13-vm.sh and vm-manager.sh to use consistent indentation. This improves readability and maintainability of the scripts without changing their logic or behavior.
2025-12-04 14:54:10 +01:00
CanbiZ
90880c5d20 Update vm-manager.sh 2025-12-03 18:41:51 +01:00
CanbiZ
f77c19be52 Add universal VM template manager script
Introduces vm-manager.sh, a comprehensive Bash script for Proxmox VE to create, deploy, and list VM templates with optional cloud-init and post-install automation. Supports multiple Linux distributions, customizable resources, and post-install options for Docker, Podman, and Portainer.
2025-12-03 18:04:12 +01:00
CanbiZ
62ac9e9470 Update unifi-os-server-vm.sh 2025-12-03 17:41:27 +01:00
CanbiZ
8693adbeb3 Update unifi-os-server-vm.sh 2025-12-03 17:32:11 +01:00
CanbiZ
db2a6e1e20 Update unifi-os-server-vm.sh 2025-12-03 17:29:20 +01:00
CanbiZ
53fb32e50d Update unifi-os-server-vm.sh 2025-12-03 17:18:06 +01:00