Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using VirtualBox. My host and guest machines are both running Ubuntu. Every time I restart the host computer, one of my virtual machines becomes corrupted (the guest .vdi gets released).

I've found that opening the Virtual Media Manager and dragging the .vdi file for the corrupted machine into it makes everything go back to normal. However, this is a nuisance, and having to do it every time isn't ideal.

I get the same result whether I shut down or save the state of the guest. I always shut down or save the guest before I shut down, suspend or hibernate the host.

How can I make the .vdi stop this behavior and stay connected to the virtual machine?

share|improve this question
    
What is your host operating system? Do you shut down the VM before shutting down the host? –  Mike Rowave Aug 20 '11 at 2:11
    
I made an edit to the original. thanks for pointing it out –  winchendonsprings Aug 20 '11 at 19:25
    
Very strange. Might be something is wrong in the VirtualBox.xml file. Try making another virtual machine with identical virtual hardware characteristics, but specify the existing vdi instead of creating a new virtual disk (and of course, back up the vdi before doing so). –  Mike Rowave Aug 25 '11 at 15:11

1 Answer 1

Add "SHUTDOWN=savestate" to /etc/default/virtualbox on the host. When "/etc/init.d/vboxdrv stop" gets run durring shutdown, all the VMs will be saved.

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.