env_fork
Create and boot a disposable VM from a golden image in under a minute, with optional revert to initial state. Ideal for testing or isolated work without persistent changes.
Instructions
Create a new environment from a golden image and boot it. Takes under a minute and costs tens of MB of disk. The environment is disposable: anything done inside it is lost on env_rm, and env_revert rewinds it to the state it had right after this call. If the golden has no SSH credentials recorded - env_list shows an empty ssh_user, which is normal for an old or GUI-only system - env_exec will not work on the result. Drive it with env_screenshot, env_type, env_keys and env_click instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpus | No | CPUs, default inherits the golden image | |
| name | Yes | name for the new environment: letters, digits and dashes | |
| golden | Yes | name of the golden image to fork, as reported by env_list | |
| memory_mb | No | memory in MB, default inherits the golden image | |
| ttl_seconds | No | auto-remove the env this many seconds from now; env_gc collects it. Omit for no expiry | |
| share_host_path | No | absolute host directory to mount at /work inside the guest, read-write |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | Yes | ||
| log | No |