Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.