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.

The other day my VM crashed and now I am unable to boot it into Windows. I just snagged a new one to continue working and I forgot about it.

I have some work stored on there that I want to copy to my new VM.

How can I get my files off of the old one?

share|improve this question
    
How does one determine whether it is the easiest? Have you tried opening its virtual hard disk? –  Tom Wijsman Sep 28 '12 at 22:33
    
You made this yourself when you set up the VM, hence you should know the answer to the first two questions you asked me, we can't tell you where you stored it. As you would know what kind of file it is you should also be able to figure out how to open it, it ain't rocket science; and yes, we once again can't answer to that as we don't know what kind of virtual hard disk files you made... –  Tom Wijsman Sep 28 '12 at 22:44
add comment

1 Answer

up vote 5 down vote accepted

The virtual machine has an (actually, potentially any number of) associated virtual disk(s), each of which in turn is one or more (generally very large) file(s) which, taken together, correspond to the "physical" hard disks that the operating system installed inside the VM sees.

Just like you can move a physical hard disk from one computer to another, you can attach a virtual hard disk to more than one VM, to copy files to and from it. In principle you can attach a single virtual disk to multiple VMs that are running simultaneously, but in practice it's a bad idea to run more than one VM at a time that uses a single virtual disk.

Since I don't have VMware in front of me, I can't tell you which menu options to pick, but it's there in the virtual machine properties somewhere. Look for IDE and SATA mappings; those will almost certainly name the disk file's location. Just copy that as a secondary disk into the other VM's settings, make sure the old VM is shut down, and start the new one. If you are lucky, the disk will show up without any further effort on your part and you can just copy files to and from it.

If it doesn't show up immediately, look in Windows' Disk Manager in the new VM after you have attached the disk to it, to see if the partition needs to be assigned a drive letter (sometimes it doesn't happen automatically, particularly if something broke). Also note that you will probably need to be logged in as administrator to be able to access the files.

The above assumes that you weren't running file-system-level or full-disk encryption on the old VM. If you were, you need to try to repair the old VM to get your files out.

share|improve this answer
    
Thanks Michael, this is really helpful. –  Biff MaGriff Sep 28 '12 at 22:51
    
I'm glad I was able to help. –  Michael Kjörling Sep 28 '12 at 22:55
add comment

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.