9 Commits

Author SHA1 Message Date
CanbiZ
1860f4b2ee
Improve OpenWrt VM boot and readiness check (#7669)
* Improve OpenWrt VM boot and readiness check

Replaces the fixed sleep and repeated configuration attempts with a loop that waits for the VM to be ready using 'qm agent ping'. Configuration commands are now sent only after OpenWrt is confirmed to be ready, improving reliability and startup efficiency.

* Update openwrt-vm.sh

* Add VM running check before configuring OpenWrt network

Wrapped network configuration commands in a check to ensure the VM is running before sending commands. This prevents errors if the VM is not active and provides appropriate success or error messages.

* Enable and update VM cleanup logic in openwrt-vm.sh

Uncommented and updated the cleanup_vmid function to stop and destroy the VM if it exists. Also enabled its invocation in the error handler to ensure proper resource cleanup on errors.
2025-09-16 11:40:05 +02:00
CanbiZ
634386ea50 destroy vm revert openwrt 2025-09-16 11:00:28 +02:00
CanbiZ
dffb291a4f
OpenWrt: Refactor and increase root-partition (#7653)
* move openwrt to correct naming

* Add disk size configuration for OpenWrt VM

Introduces a DISK_SIZE variable to allow setting disk size for OpenWrt VM in both default and advanced settings. Updates VM creation logic to use the specified disk size and improves output formatting for clarity.

* Update openwrt-vm.sh

* Update openwrt-vm.sh

* Update openwrt-vm.sh

* Add newline before loading message in openwrt-vm.sh

Prepends a newline to the loading message for improved output formatting in the openwrt-vm.sh script.

* Update openwrt-vm.sh

* rename vm

* Improve OpenWrt VM network configuration logic

Refactored network interface configuration to use a loop for more robust VM status checking and command delivery. Enhanced bridge interface setup with clearer messaging and improved variable handling. Minor shell syntax improvements for consistency.

* Update openwrt-vm.sh
2025-09-15 13:17:45 +02:00
tteckster
299fc5c827
Rename openwrt-vm.sh to openwrt.sh 2023-05-23 07:45:13 -04:00
tteckster
86286fdb5f
Update openwrt-vm.sh
code refactoring
2023-05-23 07:36:27 -04:00
tteckster
6a7cd6b956
Update openwrt-vm.sh
shfmt
2023-05-22 07:40:19 -04:00
tteckster
c5ee4993c8
Update openwrt-vm.sh
tweak
2023-05-22 07:36:05 -04:00
tteckster
7e5206239a
Update openwrt-vm.sh
tweak
2023-05-22 07:25:27 -04:00
Jon "The Nice Guy" Spriggs
6a108a06ce
Add script to create an OpenWRT virtual machine (#1434) 2023-05-22 06:54:10 -04:00