IQmExecutor

Routes a qm invocation at the Proxmox host. Provisioning normally runs ON the host, where LocalQmExecutor shells qm directly. A dev box (Windows) has no qm and no /usr/bin/env, so it routes through ProxmoxSshQmExecutor instead.

public interface IQmExecutor

1. Methods

1.1. Run(string, string, string, string)

Runs qm {verb} {vmId} [--{optionName} {optionValue}].

QmResult Run(string verb, string vmId, string optionName = null, string optionValue = null)
Table 1. Parameters
Name Type Description

verb

string

qm subcommand, e.g. set / stop / status / start.

vmId

string

Target VM id.

optionName

string

Option name without dashes, or null for none.

optionValue

string

Option value. Ignored when optionName is null.

Returns: QmResult