xen-delete-image8
Delete previously created xen instances.
Usage
xen-delete-image [options]
[--hostname]
imageName1
[--hostname]
imageName2
Options
--dirSpecify the output directory where images were previously saved.
--evmsSpecify the EVMS container where images were previously saved.
--helpShow help information.
--hostnameSpecify the hostname to delete.
--lvmSpecify the LVM volume group where images were previously saved.
--zpoolSpecify the ZFS pool where images were previously saved.
--manualRead the manual for this script.
--testDo not complain, or exit, if the script is not executed by the root user. (Only works in conjunction with --dir.)
--versionShow the version number and exit.
Overview
xen-delete-image is a simple script which allows you to deleteXen instances which have previously been created by xen-create-image.You must be root to run this script as it removes the Xen configurationfile from /etc/xen and potentially removes LVM and EVMS volumes.(When invoked with the '--test' flag the script will continue running,but will fail to remove anything which the user does not have permissionto delete.)
Loopback example
Assuming that you have three images 'foo', 'bar', and 'baz', storedbeneath /home/xen the first two may be deleted via:xen-delete-image --dir=/home/xen foo barYou may also delete them by running:xen-delete-image --dir=/home/xen --hostname=foo --hostname=bar(The matching Xen configuration files beneath /etc/xen will also beremoved.)
LVM example
Assuming that you have the volume group 'skx-vol' containing threeXen instances 'foo', 'bar', and 'baz' the first two may be deleted via:xen-delete-image --lvm=skx-vol foo barThis will remove the volumes 'foo-disk', 'foo-swap', 'bar-disk',and 'bar-swap'.Note that if the images were created with "--noswap" then the swapvolumes will not be present, so will not need to be deleted.The Xen configuration files will also be removed from beneath /etc/xen.
Evms example
Assuming that you have the container 'mycontainer' containing threeXen instances 'foo', 'bar', and 'baz' the first two may be deleted via:xen-delete-image --evms=lvm2/mycontainer --hostname=foo --hostname=barThis will remove the volumes 'foo-disk', 'foo-swap', 'bar-disk',and 'bar-swap'.Note that if the images were created with "--noswap" then the swapvolumes will not be present, so will not need to be deleted.The Xen configuration files will also be removed.
History
- Debian 12 (Bookworm): the text shown here
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Debian 9 (Stretch)
- Debian 8 (Jessie)
- Debian 7 (Wheezy)
- Debian 6.0 (Squeeze)
- Debian 5.0 (Lenny)
- Debian 4.0 (Etch)