I'm an idiot and i've f'd up my VM. pls help

Discussions about using Windows guests in VirtualBox.
Post Reply
y2k1
Posts: 3
Joined: 12. Dec 2010, 00:20
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: xp

I'm an idiot and i've f'd up my VM. pls help

Post by y2k1 »

Ok so i'm on my laptop and my C drive memory is just 70gb and I allocated allot to the VM-too much, anyway i was getting errors that the host had too little memory and I had to close it down and so i had a brilliant idea of transferring the files to an external hard drive (the folder .virtual machine which contains the hard disks vdi file). I then deleted the one on the host OS (win7) but it didn't work, oh well so i tried copying and pasting the folder.virtual machine back to its original place, however I get the error:

'could not open the medium 'C:\users\user\.virtualbox\hard disks\xpvdi'

VD: error VERR PATH NOT FOUND opening image file 'C\Users\user\.virtualbox\harddisks\xp.vdi'
(VERR_PATH NOT FOUND)

I would simply reinstall VB but there is data on the disk that i need.

Thanks for help in advance
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: I'm an idiot and i've f'd up my VM. pls help

Post by Sasquatch »

Did the VDI file transfer properly to the external drive? If so, then you can simply tell VB to use the VDI in that location from now on. They don't have to be in the default location.
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.
y2k1
Posts: 3
Joined: 12. Dec 2010, 00:20
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: xp

Re: I'm an idiot and i've f'd up my VM. pls help

Post by y2k1 »

Hi tyvm for the reply. I thinki've fixed it. What I did was I deleted all the files with VB except the HD file and reinstalled and selected the pre existing disk. It's a long way round tho. Thanks again realy fast reply!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: I'm an idiot and i've f'd up my VM. pls help

Post by mpack »

I'm curious as to why you ran out of space on the host drive. With a 70GB host drive and assuming typical consumption, you probably had about half that free for use right? A typical dynamic VDI would have been just a few GB when created - unless you were crazy enough to choose fixed instead of dynamic, for no known good reason (plenty of myth around tho...).

Keeping the VDI on an external drive is not a good long term solution IMHO. First of all performance will be much worse, second there is the danger of absent mindedly unplugging the external drive before you have shut down the VM, i.e. likely to cause drive corruption.
Post Reply