我要评分
获取效率
正确性
完整性
易理解

Commands Supported by libvirt

cVMs can be managed by libvirt. This section describes the libvirt virsh commands for cVMs of the current version.

Table 1 lists the libvirt commands for cVMs:

Table 1 Libvirt commands

virsh Subcommand

Description

Option

Supported on cVMs

Supported on Other VMs

define

Defines a VM domain from a specified XML file.

--validate

undefine

Destroys a VM domain.

--managed-save

x

--storage

--remove-all-storage

--delete-storage-volume-snapshots

x

--wipe-storage

--snapshots-metadata

x

--checkpoints-metadata

x

--nvram

x

--keep-nvram

x

--tpm

x

--keep-tpm

x

start

Starts a defined VM.

--console

--paused

x

--autodestroy

--bypass-cache

--force-boot

x

--pass-fds

x

--reset-nvram

x

destroy

Destroys a running VM.

--graceful

--remove-logs

console

Logs in to a VM through the serial port.

--devname

--force

--resume

x

--safe

create

Creates and starts a VM from a specified XML file.

--console

--paused

x

--autodestroy

--pass-fds

x

--validate

--reset-nvram

x

attach-disk

Attaches drives.

--subdriver

--live

--persistent

detach-disk

Detaches drives.

--live

--persistent

attach-interface

Attaches network interfaces.

--model

--live

--persistent

detach-interface

Detaches network interfaces.

--live

--persistent

attach-device

Attaches devices using an XML file.

--live

--persistent

detach-device

Detaches devices using XML files.

--live

--persistent

tmm

Displays TMM information, including secure memory usage.

--dev

x

--detail

x