LocalQmExecutor
Shells qm on the machine running netsetup. Correct when netsetup runs ON the Proxmox host, which is the production case. Default executor - preserves the original call path exactly.
public sealed class LocalQmExecutor : IQmExecutor
1. Constructors
1.1. LocalQmExecutor(ILogger)
Initializes a new instance of the LocalQmExecutor class.
public LocalQmExecutor(ILogger logger)
| Name | Type | Description |
|---|---|---|
logger |
ILogger |
Logger every qm command is written to before it runs. |
2. Methods
2.1. Run(string, string, string, string)
Runs qm {verb} {vmId} [--{optionName} {optionValue}].
public QmResult Run(string verb, string vmId, string optionName = null, string optionValue = null)
| Name | Type | Description |
|---|---|---|
verb |
string |
qm subcommand, e.g. |
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