[PR #7669] [MERGED] Improve OpenWrt VM boot and readiness check #6984

Closed
opened 2026-02-26 15:33:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/7669
Author: @MickLesk
Created: 9/16/2025
Status: Merged
Merged: 9/16/2025
Merged by: @CrazyWolf13

Base: mainHead: openwrt_optimize


📝 Commits (4)

  • dd64aca Improve OpenWrt VM boot and readiness check
  • 721bd27 Update openwrt-vm.sh
  • 902dcfa Add VM running check before configuring OpenWrt network
  • 2cee17a Enable and update VM cleanup logic in openwrt-vm.sh

📊 Changes

1 file changed (+24 additions, -11 deletions)

View changed files

📝 vm/openwrt-vm.sh (+24 -11)

📄 Description

✍️ Description

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.
Sometimes it doesnt reboot correctly and get an [ERROR] in line 179: exit code 255: while executing command qm sendkey $VMID "$character"
This happens not everytime, but so it should be improved

Link: #

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/7669 **Author:** [@MickLesk](https://github.com/MickLesk) **Created:** 9/16/2025 **Status:** ✅ Merged **Merged:** 9/16/2025 **Merged by:** [@CrazyWolf13](https://github.com/CrazyWolf13) **Base:** `main` ← **Head:** `openwrt_optimize` --- ### 📝 Commits (4) - [`dd64aca`](https://github.com/community-scripts/ProxmoxVE/commit/dd64acad454fbced05f0ede70a14ed829393154c) Improve OpenWrt VM boot and readiness check - [`721bd27`](https://github.com/community-scripts/ProxmoxVE/commit/721bd27a4e32bf3cc00b4fb54ad35492e90ca465) Update openwrt-vm.sh - [`902dcfa`](https://github.com/community-scripts/ProxmoxVE/commit/902dcfaed0633dc36394bc815fae8c350094a387) Add VM running check before configuring OpenWrt network - [`2cee17a`](https://github.com/community-scripts/ProxmoxVE/commit/2cee17af00dadeb4576093cd567efb8e41ff0785) Enable and update VM cleanup logic in openwrt-vm.sh ### 📊 Changes **1 file changed** (+24 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `vm/openwrt-vm.sh` (+24 -11) </details> ### 📄 Description <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description 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. Sometimes it doesnt reboot correctly and get an [ERROR] in line 179: exit code 255: while executing command qm sendkey $VMID "$character" This happens not everytime, but so it should be improved ## 🔗 Related PR / Issue Link: # ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [x] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [ ] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 15:33:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#6984
No description provided.