KVM virsh set and get title and description
desc domain [[--live] [--config] | [--current]] [--title] [--edit] [--new-desc New description or title message]
Show or modify description and title of a domain. These values are user fields that allow to store arbitrary textual data to allow easy identification of domains. Title should be short, although it's not enforced. (See also metadata
that works with XML based domain metadata.)
Flags --live
or --config
select whether this command works on live or persistent definitions of the domain. If both --live
and --config
are specified, the --config
option takes precedence on getting the current description and both live configuration and config are updated while setting the description. --current
is exclusive and implied if none of these was specified.
Flag --edit
specifies that an editor with the contents of current description or title should be opened and the contents saved back afterwards.
Flag --title
selects operation on the title field instead of description.
If neither of --edit
and --new-desc
are specified the note or description is displayed instead of being modified.
Examples
Set and get title:
Set and get description:
These changes can also be made with virsh edit domain
.