AS5402T Test VM: a disposable ADM to test and build on, without touching your real NAS
I made this app so you can try things on a NAS without polluting it. It runs a complete copy of ADM (this model and version) inside a sandboxed virtual machine on your own NAS. Install apps, change settings, compile software, break things, and then reset the VM’s disk to start clean. Your real ADM, data and apps are not touched.
Why
Developers Corner lets developers choose which ADM versions an app supports, but hardly anyone has every NAS model and ADM version on their desk. This app closes part of that gap: Asustor owners can check how an app installs and behaves on the AS5402T model before it goes live.
How it works
A switch in the app flips between Real NAS and Test NAS. In Test NAS mode, the test ADM answers on the NAS’s own service and app ports (SSH, FTP, Plex, …) and on its own web ports (default 8000/8001). The NAS’s own services are stopped for that time and return when you switch back.
The VM has no access to your volumes or shares. It gets its own virtual disks, kept on your NAS disks, either persistent or reset at every start.
Settings are available for CPU, memory, network card, kernel (including a build for testing VM or Docker apps inside the test ADM), disks, and an optional copy of your NAS certificate.
There is a command line (testvm) and SSH-key access for scripts, so tests can be automated.
The Test NAS runs in a sandboxed VM environment, so it can’t touch your Real NAS.
Good to know
It is a copy of ADM for the AS5402T only, so it can’t reproduce other models’ hardware.
Hardware acceleration (KVM) gives near-native speed; If choose not to make use of it, the VM is about ten times slower.
Plan for roughly 2 GB of free RAM while the test ADM runs.
It’s a first version, and since VM’s don’t have hardware, ADM functions that rely on hardware to be present might not function in the test VM, however building and testing your apk’s will work smoothly.
Other thoughts
Since Asustor doesn’t have a category “Developers” in the App Central, I’m not sure to what category to submit it to in Developers Corner and if Asustor would want this app to be published. I don’t think this app is particularly useful, except for Developers developing apk’s for AS5402T, so in my view it shouldn’t show up for regular users.
I don’t seem to be allowed to share the link to the APK, so send me a private message and I will send you the link to where it is on google drive.
Anyone has another model and want to help with building a similar apk for your model?
