vnc_enable
Enables the built-in VNC console on a powered-off VM by editing RemoteDisplay.vnc.* in its .vmx file (with backup), so you can start it headless and connect via VNC.
Instructions
Enable the built-in VNC console for a powered-off VM by editing RemoteDisplay.vnc.* in the .vmx (backup .vmx.bak kept). After enabling, start the VM with vm_power action=start gui=false — starting from the Player GUI overrides VNC to FALSE.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vmx": "<vmx>"
},
"name": "vnc_enable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmx | Yes | ||
| bind | No | Listen IP, default 127.0.0.1 (keep loopback for safety) | |
| port | No | 5901-6001 recommended; auto-picked when omitted | |
| password | No | Optional, max 8 characters (VNC auth, sent unencrypted) |