MickLesk 2f5a5771b0 Add interactive VM prompts and error handling
Introduce interactive whiptail-based helpers and robust error handling for VM creation.

- Add error_handler() to report failures (calls post_update_to_api if available), print contextual error info, and call cleanup_vmid.
- Ensure TEMP_DIR is removed in cleanup().
- Replace brittle pve_check with version parsing that supports Proxmox VE 8.0–8.9 and 9.0–9.1 (exits with code 105 on unsupported versions).
- Add ssh_check() to warn users running the script over SSH.
- Add sanitize_vm_hostname() and a suite of vm_* helper functions to prompt and validate interactive settings via whiptail: vm_confirm_new_vm, vm_choose_settings_mode, vm_prompt_vmid, vm_prompt_machine_type, vm_apply_machine_type, vm_prompt_disk_size, vm_prompt_disk_cache, vm_prompt_hostname, vm_prompt_cpu_model, vm_prompt_cpu_cores, vm_prompt_ram, vm_prompt_bridge, vm_prompt_mac, vm_prompt_vlan, vm_prompt_mtu, vm_prompt_start_vm.
- Add storage helpers: vm_select_storage, vm_apply_storage_layout, vm_define_disk_references to detect storage pools, set formats/extensions and prepare disk refs.
- Use APP/NSAPP for description title by introducing local description_title in set_description().

These changes centralize validation and interactive flow, improve UX, and harden error reporting and cleanup.
2026-05-07 09:45:45 +02:00
2026-04-28 10:56:16 +02:00
dfv
2026-05-06 08:35:07 +02:00
2026-04-29 13:08:25 +02:00
2026-05-07 09:36:48 +02:00
2026-04-25 22:37:05 +02:00
2025-07-14 15:04:29 +00:00
2025-04-28 09:29:12 +02:00
2025-03-03 10:10:57 +01:00
2025-03-03 10:10:57 +01:00

🚧 ProxmoxVED Helper-Scripts (Development Repository)

Warning: This repository is under active development and is not intended for production use. Changes may occur at any time!


🔧 What is this?

This repository contains a collection of scripts for managing and automating Proxmox Virtual Environment (Proxmox VE). Originally created by tteck, the project is now community-driven and continues to evolve.


Want to help?

Follow here to see our Documentations.


🚀 Development Status

  • ⚠️ Unstable: Features may be incomplete or subject to change.
  • 📢 Community-driven: Contributions and feedback are welcome.
  • 🔄 Frequent updates: Active development means rapid iterations and fixes.

💬 Get Involved

Join the discussion, contribute code, or report issues:

📜 License

This project is licensed under the MIT License.



Proxmox® is a registered trademark of Proxmox Server Solutions GmbH.

Description
No description provided
Readme 18 MiB
Languages
Shell 100%