Changing the VDI file location

This is for discussing general topics about how to use VirtualBox.
Post Reply
ahai
Posts: 10
Joined: 30. Jan 2010, 15:26
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008

Changing the VDI file location

Post by ahai »

Dear Sirs,

I changed the location of the .vdi file to a different location on the hard disk, so I got an error message, but when I returned the file back to its original location, I got also the same message.

The Question:
How can I reattach this file?
How - usually- change the location of any vdi file I have.

Thank you and Best regards,

Abdul Hai
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Changing the VDI file location

Post by Sasquatch »

When you move a VDI file to a different location, you first have to detach it from the current VM(s), unregister it from the Media Manager, move it, then register it again and attach it to the VM(s) it belongs to.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply