LinuxCommandLibrary

virsh-undefine

Remove libvirt domain definition

TLDR

Undefine domain

$ virsh undefine [domain]
copy
Undefine and remove storage
$ virsh undefine [domain] --remove-all-storage
copy
Undefine NVRAM domain
$ virsh undefine [domain] --nvram
copy

SYNOPSIS

virsh undefine domain [options]

DESCRIPTION

virsh undefine removes a domain definition from libvirt. Domain must be shut off. By default keeps disk images; use --remove-all-storage to delete them.

PARAMETERS

--remove-all-storage

Delete associated volumes.
--nvram
Remove NVRAM file.
--keep-nvram
Preserve NVRAM file.
--snapshots-metadata
Remove snapshot metadata.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community