183 Commits

Author SHA1 Message Date
CanbiZ
b9d6b47014 Switch UniFi OS VM installer to Cloud-Init automation
Replaces manual first-boot installer injection with a Cloud-Init user-data configuration for fully automated UniFi OS Server setup. Cloud-Init is now always enabled and required, simplifying image preparation and installation monitoring. Updates messaging and installation flow to reflect Cloud-Init usage and removes legacy non-Cloud-Init support.
2025-12-03 13:58:16 +01:00
CanbiZ
31dbc4dc9e Update unifi-os-server-vm.sh 2025-12-03 13:40:10 +01:00
CanbiZ
f3829b732c Update unifi-os-server-vm.sh 2025-12-03 13:32:29 +01:00
CanbiZ
c961dffcf1 Fix base package pre-installation check in UniFi VM script
Update the logic for detecting errors during base package pre-installation in unifi-os-server-vm.sh by checking for 'error' in the output. Also correct URLs in cloud-init.func to use the correct repository path.
2025-12-03 13:28:30 +01:00
CanbiZ
02b0f196a1 Update unifi-os-server-vm.sh 2025-12-03 13:20:45 +01:00
CanbiZ
ab98e0f17d unifi 2025-12-03 13:16:48 +01:00
CanbiZ
9e8437b7e0 Refactor Docker install script for Portainer support
The install-docker.sh script is now generated with Portainer installation logic only if INSTALL_PORTAINER is set to 'yes'. The previous placeholder and sed replacement approach has been removed for clarity and maintainability. This change improves script generation and conditional handling for Portainer installation.
2025-11-28 13:03:52 +01:00
CanbiZ
ef765a7d3f Refactor Portainer installation in docker-vm.sh
Replaces inline Portainer installation with a separate script when requested. Updates install-docker.sh to call the new script, improving maintainability and logging.
2025-11-28 12:29:44 +01:00
CanbiZ
cb1bb74a8c Update docker-vm.sh 2025-11-28 11:55:55 +01:00
CanbiZ
366e04d1d2 Service-Fix 2025-11-28 11:38:22 +01:00
CanbiZ
eae593c14b Update docker-vm.sh 2025-11-28 11:37:39 +01:00
CanbiZ
3b366dc098 readd portainer 2025-11-28 11:32:44 +01:00
CanbiZ
dbaa41584b remove portainer 2025-11-24 15:04:09 +01:00
CanbiZ
b7430c20fe Update remaining pve_check functions to support Proxmox 9.0 and 9.1 2025-11-19 16:42:59 +01:00
CanbiZ
9e22bee07e Extend PVE support to version 9.0 and 9.1 in all pve_check functions 2025-11-19 16:39:05 +01:00
CanbiZ
16951b4a73 Update unifi-os-vm.sh 2025-11-14 15:04:15 +01:00
CanbiZ
6d17f99731 Improve error handling in UniFi OS VM installer
Enhanced the installation script to provide clearer success and error messages, added exit on critical failures, and improved verification steps for package installation, Podman, and UniFi OS installer. Also refined the startup sequence and logging for better troubleshooting.
2025-11-14 14:37:10 +01:00
CanbiZ
3b5890d796 Update unifi-os-vm.sh 2025-11-14 14:14:02 +01:00
CanbiZ
cb65805cd2 Improve VM setup and installation feedback
Enhanced error handling and user feedback during base package installation, Podman configuration, and UniFi OS VM startup. Added clearer status messages, improved retry logic, and more informative progress updates for VM boot and UniFi OS installation steps.
2025-11-14 12:01:58 +01:00
CanbiZ
6ec7f5ca33 Update unifi-os-vm.sh 2025-11-14 11:37:21 +01:00
CanbiZ
abafd33249 Update unifi-os-vm.sh 2025-11-14 10:36:28 +01:00
CanbiZ
64a7482cf4 Update unifi-os-vm.sh 2025-11-14 09:50:28 +01:00
CanbiZ
a35ee59b20 Update unifi-os-vm.sh 2025-11-14 09:40:42 +01:00
CanbiZ
5433dc6213 Simplify VM boot and UniFi OS install checks
Replaces complex QEMU guest agent and fallback IP detection with a simpler method using a fixed wait and direct IP query. Streamlines UniFi OS installation monitoring by checking port 11443 instead of script existence, and suppresses libguestfs random seed warnings in virt-customize commands.
2025-11-13 15:48:25 +01:00
CanbiZ
9d5041e71b Improve VM setup and IP detection logic
Suppress libguestfs warnings, enable and start QEMU Guest Agent during first boot, and enhance VM IP address detection by waiting for the guest agent to become available and adding a fallback method. These changes improve reliability and provide better feedback during VM initialization.
2025-11-13 15:29:38 +01:00
CanbiZ
3840620bca Update unifi-os-vm.sh 2025-11-13 15:21:55 +01:00
CanbiZ
b42e61dbc1 Update unifi-os-vm.sh 2025-11-13 15:07:54 +01:00
CanbiZ
b30dcbb599 Update unifi-os-vm.sh 2025-11-13 14:47:49 +01:00
CanbiZ
c1aa45e3d5 Update unifi-os-vm.sh 2025-11-13 14:34:19 +01:00
CanbiZ
58aacbb37c remove cache 2025-11-13 14:22:41 +01:00
CanbiZ
c470dc7e5e Add OS and Cloud-Init selection to UniFi OS VM script
This update introduces interactive selection of operating system (Debian 13 or Ubuntu 24.04) and Cloud-Init support for VM creation. The script now fetches the latest UniFi OS Server installer dynamically, configures VM settings based on user choices, and injects the installer into the appropriate cloud image. Cloud-Init configuration is handled automatically for Ubuntu and optionally for Debian, improving flexibility and automation.
2025-11-13 14:17:42 +01:00
CanbiZ
9b5b9a21bc Create docker-vm-debug.sh 2025-11-12 11:45:43 +01:00
CanbiZ
d763ae2f04 Update docker-vm.sh 2025-11-11 15:42:28 +01:00
CanbiZ
3dc784029b Update docker-vm.sh 2025-11-11 15:15:06 +01:00
CanbiZ
072cc6ad3a Update docker-vm.sh 2025-11-11 14:40:35 +01:00
CanbiZ
585d2f5e6c Update docker-vm.sh 2025-11-11 14:23:15 +01:00
CanbiZ
978fe863c9 Update docker-vm.sh 2025-11-11 14:16:01 +01:00
CanbiZ
8790e50daf Update docker-vm.sh 2025-11-11 14:08:49 +01:00
CanbiZ
b95ab4e7fb Update docker-vm.sh 2025-11-11 13:51:01 +01:00
CanbiZ
5ade2b2237 Refactor Docker-VM 2025-11-11 13:45:03 +01:00
CanbiZ
d8eb17710c Update docker-vm.sh 2025-11-11 13:19:40 +01:00
CanbiZ
b8bb9c20be Update docker-vm.sh 2025-11-11 10:43:27 +01:00
CanbiZ
76f36f5662 Update docker-vm.sh 2025-11-11 10:16:40 +01:00
CanbiZ
4b74b73468 Update docker-vm.sh 2025-11-11 10:14:46 +01:00
CanbiZ
bfafa3335b Improve Docker VM setup and error handling
Updated default machine type to Q35 and improved user messaging for machine selection. Enhanced Docker and base package installation with DNS configuration and fallback to cloud-init if installation fails. Refactored Portainer installation logic and improved status reporting for Docker setup.
2025-11-11 10:03:48 +01:00
CanbiZ
97f63f5189 Add Cloud-Init helper and refactor Docker VM script
Introduces misc/cloud-init.sh, a universal Cloud-Init helper library for Proxmox VM scripts. Refactors vm/docker-vm.sh to source the new Cloud-Init library, reorganizes variable initialization, improves OS and configuration selection logic, and enhances user interaction for VM creation. Also adds a backup of the previous docker-vm.sh as docker-vm.sh.bak.
2025-11-11 09:55:05 +01:00
CanbiZ
eba99e7d45 Update docker-vm.sh 2025-09-30 16:40:03 +02:00
CanbiZ
3304f973fc Add SSH key or password authentication for VM creation
Introduces logic to detect SSH public keys on the host and prompt the user to use them for root login in new VMs. If no keys are found or declined, prompts for a root password with confirmation. Refactors authentication setup into a dedicated function and updates VM creation flow to configure authentication accordingly.
2025-09-30 16:37:01 +02:00
CanbiZ
6512d645bb Update docker-vm.sh 2025-09-30 16:15:20 +02:00
CanbiZ
843fe1802d Update docker-vm.sh 2025-09-30 16:12:18 +02:00