protect zone
Manage the zones.
protect zone <COMMAND>Commands:
attachAttach to the zone console.listList zone information.launchLaunch a new zone.destroyDestroy a zone.execExecute a command inside the zone.logsView the logs of a zone.metricsRead metrics from the zone.topDashboard for running zones.watchWatch for zone changes.update-resourcesUpdate the available resources to a zone.
attach
protect zone attach <ZONE>Arguments:
<ZONE>Zone to show logs for, either the name or the uuid.
list
protect zone list [OPTIONS] [ZONE]Arguments:
[ZONE]Limit to a single zone, either the name or the uuid.
Options:
-o, --output <OUTPUT>Output format [default: table] [possible values: table, json, json-pretty, jsonl, yaml, key-value, simple].-l, --selector <SELECTOR>A selector for filtering the result set. Currently only supports ‘=’ and the ‘status.state’ field. Supported states include ‘creating’, ‘created’, ‘ready’, ’exited’, ‘destroying’, ‘destroyed’ and ‘failed’, with or without the ‘zonestate’ prefix. (for example--selector status.state=failedor--selector status.state=ZONE_STATE_FAILED).
launch
protect zone launch [OPTIONS]Options:
--pull-overwrite-cacheOverwrite image cache on pull.--pull-updateUpdate image on pull.-n, --name <NAME>Name of the zone.-C, --max-cpus <MAX_CPUS>Maximum vCPUs available for the zone [default: 4].-c, --target-cpus <TARGET_CPUS>Target vCPUs for the zone to use [default: 1].-M, --max-memory <MAX_MEMORY>Maximum memory available to the zone, in megabytes [default: 1024].-m, --target-memory <TARGET_MEMORY>Target memory for the zone to use, in megabytes [default: 1024].-D, --device <DEVICE>Devices to request for the zone.-a, --attachAttach to the zone after zone starts, implies –wait.-W, --waitWait for the zone to be ready, implied by –attach.-k, --kernel <KERNEL>OCI kernel image for zone to use.-I, --initrd <INITRD>OCI initrd image for zone to use.-w, --working-directory <WORKING_DIRECTORY>. Working directory.--kernel-verboseEnable verbose logging on the kernel.--kernel-cmdline-append <KERNEL_CMDLINE_APPEND>Additional kernel cmdline options.--assume-network-reservation <ASSUME_NETWORK_RESERVATION>Assume an already allocated network reservation.--retain-network-reservationRetain network reservation after zone destruction.-R, --resource-adjustment-policy <RESOURCE_ADJUSTMENT_POLICY>Resource adjustment policy [possible values: static, dynamic].-V, --virt-backend <VIRT_BACKEND>Virtualization backend [possible values: pv, pvh].
destroy
protect zone destroy [OPTIONS] <ZONE>Arguments:
[ZONE]Limit to a single zone, either the name or the uuid.
Options:
-W, --waitWait for the destruction of the zone to complete.-A, --allDestroy all zones matching the input.-l, --selector <SELECTOR>A selector for filtering the result set. Currently only supports ‘=’ and the ‘status.state’ field. Supported states include ‘creating’, ‘created’, ‘ready’, ’exited’, ‘destroying’, ‘destroyed’ and ‘failed’, with or without the ‘zonestate’ prefix. (for example--selector status.state=failedor--selector status.state=ZONE_STATE_FAILED).
exec
protect zone exec [OPTIONS] <ZONE> [COMMAND]...Arguments:
<ZONE>Zone to exec inside, either the name or the uuid.[COMMAND]...Command to run inside the zone.
Options:
-e, --env <ENV>Environment variables.-w, --working-directory <WORKING_DIRECTORY>Working directory.-t, --ttyAllocate tty.
logs
protect zone logs [OPTIONS] <ZONE>Arguments:
<ZONE>Zone to show logs for, either the name or the uuid.
Options:
-f, --followFollow output from the zone.
metrics
protect zone metrics [OPTIONS] <ZONE>Arguments:
<ZONE>Zone to show logs for, either the name or the uuid.
Options:
-o, --output <OUTPUT>Output format [default: tree] [possible values: tree, json, json-pretty, yaml, key-value].
top
protect zone topwatch
protect zone watch [OPTIONS]Options:
-o, --output <OUTPUT>Output format [default: simple] [possible values: simple, json, key-value].
update-resources
protect zone update-resources [OPTIONS] <ZONE>Arguments:
<ZONE>Zone to update resources of, either the name or the uuid.-C, --max-cpus <MAX_CPUS>. Maximum vCPUs available to the zone (0 means previous value) [default: 0].-c, --target-cpus <TARGET_CPUS>Target vCPUs for the zone to use (0 means previous value) [default: 0].-M, --max-memory <MAX_MEMORY>. Maximum memory available to the zone, in megabytes (0 means previous value) [default: 0].-m, --target-memory <TARGET_MEMORY>. Target memory for the zone to use, in megabytes (0 means previous value) [default: 0].-p, --adjustment-policy <ADJUSTMENT_POLICY>Adjustment policy [possible values: static, dynamic].
Last updated on