diff --git a/README.md b/README.md index 885c951..bd37144 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,24 @@ state/ log/ backup/ runtime data, never touched by updates ```sh mkdir -p -m 0750 /mnt/Daten/extensions/vmmngr && cd /mnt/Daten/extensions/vmmngr -fetch https://git.familie-berner.de/.../vmm-init && chmod +x vmm-init && ./vmm-init -o +fetch https://git.familie-berner.de/Xigmanas/vmmngr/raw/branch/main/vmm-init +chmod +x vmm-init && ./vmm-init -o ``` Then open **Extensions → VM Manager**. +## XigmaNAS specifics worth knowing + +- **Every POST needs an authtoken.** `auth.inc` rejects POSTs without a valid + `authtoken` field with `401` *and destroys the session*. Always + `include 'formend.inc';` inside a form - it emits the hidden field. +- **`/etc/rc.conf` is generated from `/conf/config.xml`** at boot; `sysrc` + changes do not survive. Persist via rc params in the config. +- **PHP runs as root** (lighttpd spawns php-cgi), so the code must be strict + about input handling - all `vm` calls go through `vmm-ctl`. +- **Embedded platforms** keep `/` in RAM: binaries belong in `vendor/`, only + symlinks go into the system, repaired by `vmm-init -p` at boot. + ## Design rules - **Never overlay.** An existing system installation always wins; the bundle only diff --git a/gui/ext/vmmngr/vmmngr.conf b/gui/ext/vmmngr/vmmngr.conf index 5d59930..4adca36 100644 --- a/gui/ext/vmmngr/vmmngr.conf +++ b/gui/ext/vmmngr/vmmngr.conf @@ -1,6 +1,6 @@ { "appname": "VM Manager", - "version": "0.2.2", + "version": "0.2.3", "rootfolder": "/mnt/Daten/extensions/vmmngr", "vm_source": "auto", "bridges": ["ix0bridge"], diff --git a/gui/vmmngr.php b/gui/vmmngr.php index 4be9ae5..75f64b5 100644 --- a/gui/vmmngr.php +++ b/gui/vmmngr.php @@ -173,5 +173,5 @@ vmm_css(); ?> - + diff --git a/gui/vmmngr_config.php b/gui/vmmngr_config.php index 7963c9f..551db3c 100644 --- a/gui/vmmngr_config.php +++ b/gui/vmmngr_config.php @@ -113,5 +113,5 @@ include 'fbegin.inc';
=vmm_h(json_encode($sc, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));?>- + diff --git a/gui/vmmngr_jobs.php b/gui/vmmngr_jobs.php index 534e371..b525938 100644 --- a/gui/vmmngr_jobs.php +++ b/gui/vmmngr_jobs.php @@ -89,5 +89,5 @@ vmm_css(); - + diff --git a/gui/vmmngr_vm.php b/gui/vmmngr_vm.php index b4f1bbf..71860a6 100644 --- a/gui/vmmngr_vm.php +++ b/gui/vmmngr_vm.php @@ -141,5 +141,5 @@ vmm_css(); - + diff --git a/version.txt b/version.txt index ee1372d..7179039 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.2.2 +0.2.3