Run code and ready-made applications
Run commands inside virtual machines through VMware Tools, and let customers install Docker, cPanel & WHM, Plesk or aaPanel with one click (2.0).
How it works
Everything goes through ESXi’s Guest Operations API (VMware Tools): no SSH, agent or vCenter is needed. The module starts a small program in the server with the login stored on the service (root on Linux and FreeBSD, Administrator on Windows); if the stored user is not root, the code runs with sudo and the password travels in an environment variable, not on the command line.
The output and exit code are written to files only that user can read, and the last 64 KB of output is kept. Runs advance through the WISECP queue job VMware ESXi: code runs and application installs; the page does not wait for the result.
Running code (management page)
Management page → Run Code:
- Target: one virtual machine, or many by a filter (ESXi servers, operating system, template, product, running only). A run reaches at most 500 virtual machines.
- Code: your own code (bash, sh, PowerShell, cmd), built-in snippets (disk usage, package updates, enable / disable SSH root login, Windows licence status and rearm) or Saved Snippets.
- Before a run starts, it shows how many virtual machines it will reach and which are left out; if the targets changed by the time you confirm, it asks again.
- The Runs list shows each machine’s result, exit code and output, with Re-run failed and Stop.
Ready-made applications
Write the applications customers may install in the product’s Installable Applications setting: docker, cpanel, plesk, aapanel (empty = none). Services with a Linux server get the Install Application tool in the client area.
| Application | Systems | Minimum |
|---|---|---|
| Docker + Compose | Ubuntu, Debian, AlmaLinux / Rocky 8-9, CentOS Stream 9 | 512 MB, 5 GB |
| cPanel & WHM | AlmaLinux / Rocky 8-9 | 2 GB, 20 GB, a full host name |
| Plesk | Ubuntu 22.04 / 24.04, Debian 11 / 12, AlmaLinux / Rocky 8-9 | 1 GB, 10 GB |
| aaPanel | Ubuntu, Debian 11 / 12, AlmaLinux / Rocky 8-9 | 1 GB, 10 GB |
The server is checked before an install (system, memory, free disk, installed panels); if it does not fit, the install does not start and the reason is shown. cPanel and Plesk need their own licences. Ready-made Application Install on the management page installs regardless of the product’s list.
Security and limitations
- Running code and installing applications need WISECP’s service operations privilege; viewing results needs the service view privilege.
- Every run is written to the operation log: the SHA-256 hash of the code, not the code. Passwords never enter any log.
- If the login is refused (the customer changed the password inside the server), no other password is tried; update the service’s stored password and run again.
- One run or install per server at a time; a server being moved or busy with another operation gets Busy.
- Virtual Data Centre servers are not reached; a licence is required.