Add qemu guest agend to image. Do migration via chroot instead of qemu. Add grateful shutdown and reboot.

This commit is contained in:
Albrecht Lohofener
2024-02-21 00:10:28 +01:00
parent 1059e211c5
commit 71e00a6966
15 changed files with 82 additions and 93 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
{
"title": "Openwrt control",
"title": "OpenWrt control",
"port": "5000",
"access": {
"allowed_users": "*",
"admin_users": "*"
"allowed_users": "*"
}
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "98 Hard reboot",
"description": "Hard reboot of OpenWrt VM",
"script_path": "/run/qemu_qmp.sh -r"
}
@@ -0,0 +1,6 @@
{
"name": "6 Reboot",
"description": "Reboot OpenWrt VM",
"script_path": "/run/qemu_qmp.sh -R"
}
-6
View File
@@ -1,6 +0,0 @@
{
"name": "98 Reset",
"description": "Hard reset of OpenWrt VM",
"script_path": "/run/qemu_qmp.sh -r"
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "5 Stop",
"description": "Stop OpenWrt VM",
"script_path": "supervisorctl stop openwrt"
"script_path": "/run/qemu_qmp.sh -S"
}