295 Commits

Author SHA1 Message Date
MickLesk
9a3cbe754e fix: update Waydroid installation instructions to include Weston and clarify UI startup steps 2026-05-26 13:14:58 +02:00
MickLesk
d021ba8cea fix binder generic 2026-05-26 12:51:55 +02:00
MickLesk
107e016dd2 fix: update CPU type to 'host' for better performance in default and advanced settings 2026-05-26 12:48:08 +02:00
MickLesk
81ed82d406 refactor: update Waydroid installation instructions and streamline VM setup 2026-05-26 11:18:38 +02:00
MickLesk
9e9dafe1db fix debian 2026-05-26 11:08:45 +02:00
github-actions[bot]
027ac0630c chore: update app headers [skip ci] 2026-05-26 08:53:06 +00:00
MickLesk
3f1df3f763 wydroid 2026-05-26 10:52:46 +02:00
MickLesk
6e81aff07e Add support for Proxmox VE 9.2
Update pve_check logic and messages to allow Proxmox VE 9.2 across scripts. Adjusted version bounds (minor <= 2), regex checks (9\.[0-2]), and user-facing error text in misc/core.func, misc/vm-core.func and multiple vm/* scripts (allstarlink, archlinux, cachyos, debian-13, docker-vm-debug, nextcloud, openwrt, opnsense, owncloud, ubuntu2204, ubuntu2404, ubuntu2410, umbrel-os, unifi-os-server). No functional changes beyond expanding supported PVE minor version range and updating messages.
2026-05-21 16:40:30 +02:00
MickLesk
8d42d61f41 feat(netbird): update environment variable names for NetBird configuration 2026-05-19 16:54:35 +02:00
MickLesk
214ef7b45c Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED 2026-05-19 16:17:21 +02:00
MickLesk
323c74695a feat(netbird): add cloud-init function source to netbird server script 2026-05-19 16:17:19 +02:00
github-actions[bot]
6f32e5ba3d chore: update app headers [skip ci] 2026-05-19 08:56:04 +00:00
MickLesk
dfb82fcfeb feat(netbird): add NetBird server configuration and installation script 2026-05-19 10:55:45 +02:00
MickLesk
4ff70ba166 Stop spinner on cleanup & simplify qm set
Call stop_spinner in cleanup() to ensure any active spinner is stopped on exit. Consolidate duplicated qm set branches in ubuntu2604-vm.sh into a single invocation to reduce code duplication and simplify VM disk/serial configuration. Remove the explicit ide2 cloudinit device and redundant cloud-init status messages; setup_cloud_init() is still invoked when USE_CLOUD_INIT is enabled, keeping cloud-init configuration centralized.
2026-05-07 11:24:02 +02:00
MickLesk
2a8c6b260f Add optional Cloud-Init and q35 support
Introduce optional Cloud-Init integration and better machine type handling for VMs. Changes include: loading cloud-init helpers lazily (load_cloud_init_functions), interactive cloud-init prompt/configuration (vm_prompt_cloud_init) and SSH key handling, a cloud icon for UI, and vm_machine_type_label for readable machine type display. Default machine type switched to q35 and displays the label in prompts and summaries. VM creation logic now conditionally attaches the cloudinit drive (ide2) and runs setup_cloud_init when enabled; otherwise it creates the VM without the cloudinit device. Post-install messaging now either shows cloud-init details or a guidance message about manual guest filesystem expansion. Minor UI/output adjustments and defaults updated accordingly.
2026-05-07 10:16:16 +02:00
github-actions[bot]
0c5240302c chore: update app headers [skip ci] 2026-05-07 07:53:22 +00:00
MickLesk
27f256a20f Refactor VM script to use shared vm-core helpers
Introduce a shared vm-core loader and refactor the Ubuntu 26.04 VM script to use reusable helper functions. misc/vm-core.func: add COMMUNITY_SCRIPTS_URL default and load_api_functions to dynamically source API helpers, then call load_api_functions from load_functions. vm/ubuntu2604-vm.sh: switch to sourcing the shared vm-core via COMMUNITY_SCRIPTS_URL, replace many inline UI and utility functions with generic vm_* helpers (vm_confirm_new_vm, vm_prompt_*, vm_select_storage, vm_define_disk_references, set_description, etc.), modernize quoting and pushd usage, simplify disk import/resizing logic, and set START_VM default to yes. Also update repository URLs to ProxmoxVED and adjust some behavior (machine type handling, storage/disk references). Overall this centralizes common functionality, reduces duplication, and prepares scripts to use the shared core utilities.
2026-05-07 09:52:57 +02:00
MickLesk
d1a1c795b7 Create ubuntu2604-vm.sh 2026-05-07 09:36:48 +02:00
github-actions[bot]
850a4cf4b7 chore: update app headers [skip ci] 2026-05-06 07:09:05 +00:00
MickLesk
7376a73337 Refactor AlmaLinux VM installer & lobehub setup
Modernize and simplify VM installer and lobehub installation flows.

Key changes:
- install/lobehub-install.sh: consolidated apt invocation, replaced manual ParadeDB .deb download with fetch_and_deploy_gh_release helper, added postgresql pg_search preload configuration and restart, moved pnpm installation into setup_nodejs via NODE_MODULE, and adjusted build env handling.
- vm/almalinux-10-vm.sh: major refactor to source shared functions from COMMUNITY_SCRIPTS_URL, add load_functions, centralize cloud-init handling (configure_cloudinit_ssh_keys / setup_cloud_init), replace many custom UI/helper functions with standardized helpers and exit_script, update traps and error handling, simplify prompts/defaults, use $STD for apt operations, and streamline image customization and VM creation flow.
- Added vm/headers/almalinux-10-vm containing the VM header art and title.

These changes centralize common logic, improve cloud-init integration, reduce duplicated code, and make maintenance easier.
2026-05-06 09:08:38 +02:00
CanbiZ (MickLesk)
670124b3b7 fix(k3s-vm): make k9s install non-fatal and separate from core customize 2026-04-24 11:34:35 +02:00
CanbiZ (MickLesk)
67f9570981 fix(k3s-vm): upload k9s archive into image during customize 2026-04-24 11:25:00 +02:00
CanbiZ (MickLesk)
4d18972eb4 fix(k3s-vm): make k9s install robust in virt-customize 2026-04-24 10:43:27 +02:00
CanbiZ (MickLesk)
1a42c98e16 Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED 2026-04-24 10:20:40 +02:00
CanbiZ (MickLesk)
25fb91e3eb Update k3s-vm.sh 2026-04-24 10:20:30 +02:00
github-actions[bot]
b644365284 chore: update app headers [skip ci] 2026-04-24 08:13:33 +00:00
CanbiZ (MickLesk)
ae51e1baed Update k3s-vm.sh 2026-04-24 10:07:26 +02:00
CanbiZ (MickLesk)
89095f3d5d trek: seed default admin, fix install and hooks
Seed a default admin account and harden the installer; update symlink behavior and LXC hook argument handling.

- Install: downgrade Node setup to 22, write ADMIN_EMAIL/ADMIN_PASSWORD into /opt/trek/server/.env for initial boot, chmod the file, wait for app health, then remove plaintext creds from the env and print the default admin credentials. Remove previous DB patching script and credentials file generation. Add health-check failure handling.
- ct/trek.sh: check for /opt/trek instead of ~/.trek, run npm ci without --production, and recreate server data/uploads by removing any existing dirs and creating explicit symlinks.
- Installer: mirror symlink strategy used in the container (rm then ln -s) and ensure generated ENCRYPTION_KEY note; add ADMIN_EMAIL default.
- json: set default username to admin@trek.local, update notes about seeded admin, ENCRYPTION_KEY storage, and APP_URL recommendation.
- tools/pve/lxc-prehook.sh: fix append_unique_line_in_ct to pass positional arguments into the bash -c snippet safely (avoid parent-shell expansion).

These changes ensure a reproducible default admin creation flow without leaving plaintext credentials, improve symlink handling, and fix a bug in the LXC prehook.
2026-04-24 09:52:03 +02:00
CanbiZ (MickLesk)
99ff914831 Validation, hostname sanitization, update traps
Improve robustness by adding input validation and sanitization. Replace SIGINT/SIGTERM trap payloads with numeric exit codes (130 and 143). Sanitize hostname to allowed characters and notify the user if it was adjusted. Add validation loops and user messages for CPU cores and RAM (positive integers), MAC address format (XX:XX:XX:XX:XX:XX), VLAN (1-4094 or default), and MTU (576-65520 or default). Minor output ordering tweaks to ensure values are echoed after processing.
2026-03-23 14:54:50 +01:00
CanbiZ (MickLesk)
54bc5559d3 fixes alma linux stp 1 2026-03-23 14:43:38 +01:00
CanbiZ (MickLesk)
b5fbff55ef bump dockervm from ve 2026-03-23 14:43:27 +01:00
CanbiZ (MickLesk)
aaaf18de91 switch urls back to github (due slow gitea syncs) 2026-03-18 14:47:29 +01:00
CanbiZ (MickLesk)
37e53c19ec force gitea sync 2026-03-12 09:18:29 +01:00
CanbiZ (MickLesk)
19cc18037c vm app-deployer 2026-03-12 09:06:41 +01:00
Dereck
7a211fd407 Address third CodeRabbit review feedback
- Remove unused send_line_to_vm function (replaced by virt-customize)
- Quote $VMID and add guard in cleanup_vmid
- Guard cleanup() against unset TEMP_DIR and quote variable
2026-03-12 00:54:39 -04:00
Dereck
1db68f32b5 Address second CodeRabbit review feedback
- Quote $VMID in error_handler for robustness
- Reduce port 11443 wait loop from 15min to 5min and update message
2026-03-12 00:45:49 -04:00
Dereck
3da60ba0a2 Address CodeRabbit review feedback
- Remove unused CLOUDINIT_PASSWORD variable
- Separate local declaration from assignment in get_image_url()
- Add retry loop for apt-get install (matches apt-get update pattern)
- Fix timeout message to match actual loop duration (~5-6 min)
2026-03-12 00:30:01 -04:00
Dereck
afa4e4ef07 Fix and improve UniFi OS Server VM script
Bug fixes:
- Add ~20 missing fi statements throughout advanced_settings(), check_root(),
  arch_check(), ssh_check(), select_os(), start_script(), etc.
- Fix pve_check() missing elif/else/fi structure
- Fix DISK_SIZE unbound variable, initialized before machine type dialog
- Fix error_handler() with ${VMID:-} guard to prevent unbound variable error

Architecture improvement:
- Migrate from send_line_to_vm serial console approach to virt-customize with
  a first-boot systemd service, consistent with other VM scripts
- First-boot service handles: clock sync (NTP + HTTP fallback), package
  installation, swap setup, and UniFi OS installer execution

New features:
- Root password prompt with confirmation
- SSH public key support
- SSH enabled by default
- Cloud-init password override with user-set password
- Port 11443 readiness check after VM boot
- Elapsed time counter during wait loops
2026-03-12 00:22:10 -04:00
CanbiZ (MickLesk)
e5d9a3c5d6 Merge pull request #1486 from Agent-Fennec/almalinux-10-vm
Add AlmaLinux 10 VM
2026-02-23 08:46:59 +01:00
MickLesk
5ab302102b refactor: clean COMMUNITY_SCRIPTS_URL pattern (#1449)
- ct/vm scripts: split to 2-line pattern (variable + source)
- func files: remove redundant inline defaults
- Only entry points keep the default (ct/*.sh, vm/*.sh, build.func,
  install.func, alpine-install.func)
- Downstream sources use $COMMUNITY_SCRIPTS_URL without default
2026-02-22 14:43:08 +01:00
MickLesk
4b9121f41c feat: add configurable COMMUNITY_SCRIPTS_URL for dev sourcing (#1449)
- Replace all hardcoded source URLs with $COMMUNITY_SCRIPTS_URL variable
- Default: https://git.community-scripts.org/.../ProxmoxVED/raw/branch/main
- Override: export COMMUNITY_SCRIPTS_URL=https://.../your-fork/raw/branch/xyz
- Propagates into container via build.func exports
- Updated: 43 ct scripts, 14 deferred, 22 vm scripts, 5 func files
- Document in docs/DEV_MODE.md with usage examples
- Also normalizes legacy GitHub URLs to Gitea canonical URL
2026-02-22 14:36:31 +01:00
Agent-Fennec
4a3e0019ca fix: review feedback 2026-02-20 18:08:01 -05:00
Agent-Fennec
1ec86f7b61 Add AlmaLinux 10 VM 2026-02-20 17:25:35 -05:00
github-actions[bot]
9743e23292 Delete truenas-vm (vm) after migration to ProxmoxVE (#1479)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-19 07:47:12 +00:00
juronja
feabc81cfb missed set truncation to 45 2026-02-17 10:34:06 +00:00
juronja
bfa2a45a54 set truncation to 45 char 2026-02-17 10:29:52 +00:00
juronja
ef54d4fd6c show no tags 2026-02-17 08:19:06 +00:00
juronja
18b70e7c39 truncating longer strings 2026-02-17 08:12:52 +00:00
CanbiZ (MickLesk)
f9628d4935 Merge pull request #1457 from juronja/truenas-vm-fixes
truenas-vm - SERIAL ID and other minor fixes
2026-02-16 12:58:33 +01:00
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