Deleting/Removing fully virtualised Xen Guest
Halt/shutdown the Xen Guest/Virtual Machine to be decommissioned. This should 'power' it down. On a Linux Guest console (not the host) use shutdown -h now for a Linux system or, for a Windows system, RDP and shutdown the machine.
- SSH into the Dom0 (the host machine).
xm list | grep <DomU>
where <DomU> is the short hostname of the virtual machine, e.g. yoyodyne. The DomU to be decommissioned should not be listed. If it is, execute
xm destroy <DomU>
This command force shutdowns the VMRemove the auto-boot symlink:
rm /etc/xen/auto/<DomU>.cfg
Remove the Xen domain configuration:
rm /etc/xen/<DomU>.cfg
Remove all logical volumes associated with the domU. In most cases this will consist of a single LV:
lvremove /dev/<Dom0>/<DomU>-<device>
For example:
lvremove /dev/dom0server/yoyodyne.example.com-hda
Other pages in similar categories
VPS/Comparison_of_virtualisation_technologies, VPS/Migration_from_physical_host_to_virtual_machine, VPS/Monitoring_VMware_ESX_System_Health_and_Hardware, VPS/VMware_ESX_Server_Security, VPS/VPS_Implementation, VPS/Virtual_Private_Server_Buying_Guide, VPS/Virtualisation_Overview, VPS/templating_with_windows_on_esx, VPS/xen, xen/DeleteFullyVirtualisedGuest