[Solved] Move one of two .vdi files save?

This is for discussing general topics about how to use VirtualBox.
Post Reply
alex::oracle
Posts: 13
Joined: 6. Feb 2015, 15:40

[Solved] Move one of two .vdi files save?

Post by alex::oracle »

Hi,

I created a virtual box, using 2 storage (.vdi) files on a windows guest on c:.
My system is running low on diskspace, therefore I'd like to move ONE of the files to d: (d has not enough space for both).

When intending to move both, I understand that cloning tho whole vm would be the best approach.
I read that it could cause problems to have the .vdi nonlocal. Is this true?

Could I move one of the .vdi files and adapt the settings in.vbox using an absolute path:

Code: Select all

<MediaRegistry>
      <HardDisks>
        <HardDisk uuid="{6fa7c97e-c967-4aa1-9d67-a23effe70b0f}" location="deb1.vdi" format="VDI" type="Normal"/>
        <HardDisk uuid="{8f64ad19-345b-4043-800c-4118549f07e0}" location="deb64d2.vdi" format="VDI" type="Normal"/>
as it is done for the .iso images

Code: Select all

<DVDImages>
        <Image uuid="{e3bc6848-4559-4a6b-96c1-01b0c1101558}" location="C:/pod2si/Disc.iso"/>
How could I determine HardDisk uuid?

Is this a safe approach?

Thx
Alex
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Move one of two .vdi files save?

Post by loukingjr »

Moving a VM

I posted the link in case you want to move the entire VM.
Last edited by loukingjr on 20. Feb 2015, 17:35, edited 1 time in total.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Move one of two .vdi files save?

Post by mpack »

If you have two disks attached to a VM and you want to relocate one of them, then the way to do it is to use File|Virtual Media Manager to Release and then Remove the selected disk image from the VM. Make sure you answer "No" when asked if you want to delete the physical files. It should then be possible to shut down VirtualBox, move the file, and re-register it using the Storage settings of the VM.

As to whether having media files "nonlocal" is a problem: if all the VM files are in one folder then they are easy to manage. If they are scattered all over the place then they become harder to manage - you have to remember this fact when creating backups etc. Whether this will be an actual problem for you - nobody knows but you. Personally I would suggest getting a big secondary drive to store your complete VMs.
alex::oracle
Posts: 13
Joined: 6. Feb 2015, 15:40

Re: Move one of two .vdi files save?

Post by alex::oracle »

@ mpack:
that was it exactly, thanks a lot and sorry for the delay...

Alex
Post Reply