Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I undefined a domain that led to deletion of domain configuration file. However, the disk image that configuration was referring to still exists. I am wondering if it's possible to recover the deleted file? Alternatively, how can I redefine domain back with reference to existing disk image?

share|improve this question

migrated from Mar 26 '12 at 11:36

This question came from our site for professional and enthusiast programmers.

It depends on the filesystem but I'd say that there is no way to recover the file. It's easier to define the virtual machien again using the disk image that you have. It's not clear what configuration tool are you using to manage VMs. We could help you if you give us that information.

share|improve this answer

you can define the VM again, and instead of creating a new disk image, simply point the new VM to the existing disk. In some cases, it is important to make sure you set up the hardware right though - the NIC types, and especially the disk controller really make a difference here

share|improve this answer

Your Answer


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