515 Commits

Author SHA1 Message Date
CanbiZ
09055bf73e Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-24 09:29:42 +02:00
CanbiZ
721ba24191 Update build.func 2025-09-24 09:29:36 +02:00
CanbiZ
bcddaaba41 Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-24 08:57:11 +02:00
CanbiZ
09c2308b35 Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-24 08:56:59 +02:00
CanbiZ
fed24086ea Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-24 08:51:14 +02:00
CanbiZ
dfa6bcf9c7 Improve storage selection logic in build script
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Adds checks to ensure the default.vars file exists before storage selection. Updates LXC container creation to skip storage selection if variables are already set, improving efficiency and reliability.
2025-09-24 08:42:53 +02:00
CanbiZ
3a49db2b9a Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-23 15:23:34 +02:00
CanbiZ
22118056ca Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-23 15:19:28 +02:00
CanbiZ
6b40cf6feb Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-23 15:00:41 +02:00
CanbiZ
9d39569bda Refactor device detection in build_container function
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces glob loops with compgen for detecting VAAPI and NVIDIA devices in /dev. This improves robustness and avoids issues when no matching devices are present.
2025-09-23 14:53:26 +02:00
Michel Roegl-Brunner
8f98298b68
Clean up diagnostics comments in build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Removed commented lines related to diagnostics information.
2025-09-23 14:50:22 +02:00
CanbiZ
d0f6818386 Move and improve ssh_check and shell_check functions
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
The ssh_check function was moved from build.func to core.func and enhanced to allow an override and to skip warnings for localhost connections. The shell_check function was simplified to directly check for Bash and provide clearer messaging. These changes centralize environment checks and improve user experience.
2025-09-23 14:39:39 +02:00
CanbiZ
1d5601af6f Add GPU and USB passthrough support to LXC build
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Introduces automatic detection and configuration of GPU (VAAPI/NVIDIA) and USB passthrough for LXC containers, including userland package installation and verification. Refactors and expands hardware passthrough logic, adds support for Coral TPU, and improves network and gateway checks. Removes deprecated storage menu and diagnostics code.
2025-09-23 14:27:35 +02:00
CanbiZ
66792ea9d7 Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-23 14:05:23 +02:00
CanbiZ
82c6e6e6fb Refactor GPU and USB passthrough setup in container scripts
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Introduced a unified gpu_inside_setup function in build.func to handle VAAPI and NVIDIA userland installation inside containers. Replaced bracket conditionals with if statements in passthrough.func for improved readability and maintainability, and made minor logic clarifications for privileged container checks.
2025-09-23 13:51:46 +02:00
CanbiZ
ac85426b7a Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-23 13:00:10 +02:00
CanbiZ
f11d455d5a Improve network string construction in build_container
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Refactored the build_container function to handle MAC, gateway, VLAN, and MTU parameters more robustly, allowing for both direct and preformatted input. This change ensures correct formatting and prevents duplicate parameter prefixes in the network string.
2025-09-23 12:54:12 +02:00
CanbiZ
8dec778dff Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 14:51:52 +02:00
CanbiZ
da1c78e295 Refactor GPU passthrough selection and setup logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces direct USB and GPU passthrough configuration in build.func with a unified select_hw_passthrough function. Refactors passthrough.func to add interactive selection for VAAPI and NVIDIA devices, streamlines device detection, and updates userland installation functions for both VAAPI and NVIDIA. Cleans up and simplifies device mapping and group ID logic.
2025-09-22 14:27:21 +02:00
CanbiZ
7dd84a1c99 Move VAAPI and NVIDIA setup to debian-install.sh
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
The VAAPI and NVIDIA setup functions are now called directly in debian-install.sh instead of within the LXC container customization block in build.func. The related code in build.func has been commented out to avoid duplicate execution.
2025-09-22 14:14:35 +02:00
CanbiZ
ddf5781e55 Refactor VAAPI and NVIDIA passthrough setup for LXC
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Consolidates and simplifies VAAPI and NVIDIA passthrough logic by introducing unified GPU app detection and moving userland package installation into dedicated *_inside_setup functions. Updates build.func to use new function names and ensures setup is only performed for relevant apps and non-Alpine containers. Improves maintainability and clarity of passthrough.func.
2025-09-22 14:09:59 +02:00
CanbiZ
333ac1edcd Automate VAAPI and NVIDIA setup inside LXC containers
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Added direct installation of VAAPI and NVIDIA drivers inside LXC containers during setup, removing reliance on custom in-container scripts. The process now ensures required packages are installed and user permissions are set, improving automation and compatibility for supported distributions.
2025-09-22 13:59:34 +02:00
CanbiZ
8aae603267 Refactor VAAPI passthrough to external script
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces the inlined VAAPI passthrough logic in misc/build.func with calls to an external passthrough.func script, streamlining and centralizing hardware passthrough handling. Adds a new misc/passthrough.func file and introduces a hwaccel_setup_in_ct helper in misc/tools.func for hardware acceleration setup inside containers.
2025-09-22 13:17:20 +02:00
CanbiZ
1f8a76e8e2 Refactor VAAPI passthrough device selection logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces legacy VAAPI device detection and selection with a modular, more robust approach. Adds helpers for group ID resolution, device deduplication, and dynamic whiptail dialog sizing. Improves user prompts, error handling, and fallback logic for both privileged and unprivileged containers. The new implementation is more maintainable and user-friendly.
2025-09-22 13:06:12 +02:00
CanbiZ
5b6bbd1ed0 Improve LXC network wait and gateway check logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Refactors the LXC container network initialization to simplify IP wait logic, reduce gateway ping attempts from 20 to 10, and provide clearer status messages. Now warns instead of failing if the gateway is unreachable but the container has an IP, improving robustness in network checks.
2025-09-22 12:41:26 +02:00
CanbiZ
00750681ed Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 12:35:24 +02:00
CanbiZ
44e64d8b98 Improve LXC network readiness and DNS fallback logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Refactors the LXC network wait loop to use a for-loop with up to 20 attempts, providing clearer warnings and early exits when network and DNS are ready. Adds more robust handling for DNS failures by applying a fallback resolv.conf only after repeated failures, improving reliability and user feedback during container setup.
2025-09-22 11:38:22 +02:00
CanbiZ
6373e16d44 Refactor network string construction in build_container
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Improves readability and flexibility by building the NET_STRING variable incrementally, using parameter expansion to include only set values for MAC, GATE, VLAN, and MTU. This change makes the network configuration more robust and easier to maintain.
2025-09-22 11:34:44 +02:00
CanbiZ
2db707079b Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 11:31:19 +02:00
CanbiZ
a03d46f5b2 Update build.func 2025-09-19 11:03:21 +02:00
CanbiZ
d2e2b33c83 Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 09:09:17 +02:00
CanbiZ
b840a8aa32 Replace init_error_traps with catch_errors in scripts
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces all occurrences of the 'init_error_traps' function with 'catch_errors' across container and install scripts for consistency in error handling. Also adjusts indentation and formatting in some scripts for improved readability.
2025-09-19 08:53:49 +02:00
CanbiZ
17cb74a8f0 Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:28:10 +02:00
CanbiZ
864e63c04d Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:27:08 +02:00
CanbiZ
271665dfef Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:26:22 +02:00
CanbiZ
afecb023cc Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:23:41 +02:00
CanbiZ
ff0e6794d4 Update build.func 2025-09-18 13:07:07 +02:00
CanbiZ
7101291349 Update build.func 2025-09-18 13:04:11 +02:00
CanbiZ
65bc905cff Update build.func 2025-09-17 17:08:52 +02:00
CanbiZ
776c39b8fc Update build.func 2025-09-17 17:07:56 +02:00
CanbiZ
82707ce199 Improve whiptail menu UI in install_script function
Updated the whiptail menu in the install_script function to enhance usability. Changes include adjusting the backtitle, adding --fb and --notags options, updating the menu prompt with navigation instructions, and increasing the menu width for better display.
2025-09-17 17:00:39 +02:00
CanbiZ
699aaefdb5 Update build.func 2025-09-17 16:57:55 +02:00
CanbiZ
8cd3defbd5 Update build.func 2025-09-17 16:57:08 +02:00
CanbiZ
a0b9bdbbec Improve settings menu instructions in build script
Updated the settings menu prompt to include navigation instructions for users, clarifying how to use TAB, Arrow keys, and ENTER to select options.
2025-09-17 16:56:43 +02:00
CanbiZ
f36f1b3132 Update whiptail menu titles and dimensions
Changed menu titles to reference 'Community-Scripts' instead of generic 'SETTINGS' and adjusted menu width from 60 to 40 in install_script for improved clarity and UI consistency.
2025-09-17 16:55:06 +02:00
CanbiZ
95171c5025 Update build.func 2025-09-17 16:17:11 +02:00
CanbiZ
322fd681cb Refactor install_script menu and preset handling
Simplifies the install_script function by replacing the PRESET environment variable logic with direct CLI argument support for preset selection. Updates the whiptail menu options, streamlines case handling, and improves error handling for invalid options. This refactor makes the script interface more intuitive and reduces code complexity.
2025-09-17 16:13:02 +02:00
CanbiZ
c7456236a0 Refactor settings menu and exit handling in build.func
Simplifies the menu item logic for settings and app defaults, updates the whiptail menu to use custom button labels, and replaces direct exit calls with the exit_script function for consistent script termination.
2025-09-17 16:02:42 +02:00
CanbiZ
92b1328f89 Update build.func 2025-09-17 15:56:56 +02:00
CanbiZ
b9b52a6642 Remove diagnostics and storage menu options
Eliminates the diagnostics and storage options from the install_script function, consolidating the menu and redirecting the diagnostics option to settings_menu. This simplifies the script's menu structure and removes unused or deprecated functionality.
2025-09-17 15:49:12 +02:00