Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know what happened to the "delete" subcommand in the xm tool for managing virtual machines on CentOS (5.3)? How do you delete a domain without it?

share|improve this question

You have two options to remove a virtual machine depending on what you're trying to accomplish.

If you're looking to really delete the machine for good:

  • If the machine is running then stop the machine with "xm destroy "
  • Delete any disk images, remove any lvm volumes, or iSCSI targets associated with the machine. You can find what the virtual machine was pointing too by looking at the configuration file in /etc/xen/.
  • Finally you can delete the configuration file /etc/xen/

This process should be easy to automate with a script.

If you want to hang onto the virtual machine but do not want it to auto start when the Dom0 machine is booted then all you need to do is remove the symbolic link to the virtual machine's config file from the /etc/xen/auto/ directory.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.