A VMDK file was created in "C:\Program Files\Oracle\VirtualBox" -- so I have to run VirtualBox "as Administrator" or the file can't be written.
I copied the file to a writeable-by-non-Admin directory but can't figure out how to get VirtualBox to change where it thinks the file is.
I was able to move other references by editing the file ~\.VirtualBox\VirtualBox.xml (when VirtualBox was not running) but it does not seem to point to the VMDK file. Where is that pointer so that I can change it?
Thanks for any assistance.
How to move VMDK file
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: How to move VMDK file
First of all, do not edit the XML file by hand unless you know what you are doing! Then go in the VM using the disk, and replace it with the new disk location.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
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: How to move VMDK file
VirtualBox v4.x does not store any media paths in VirtualBox.xml, so best forget about that idea.
Run VBox and go to File|Virtual Media Manager. Select the vmdk and first Release (detach from VM) and then Remove (unregister) it. Now you can shut down VirtualBox and move the VMDK wherever you want. Later on you start VBox again, go to the VM settings | Storage section, and use the little icon beside the correct disk controller to add a new (existing) hard disk attachment.
Run VBox and go to File|Virtual Media Manager. Select the vmdk and first Release (detach from VM) and then Remove (unregister) it. Now you can shut down VirtualBox and move the VMDK wherever you want. Later on you start VBox again, go to the VM settings | Storage section, and use the little icon beside the correct disk controller to add a new (existing) hard disk attachment.
-
virtualbocks
- Posts: 1
- Joined: 14. Mar 2014, 02:39
Re: How to move VMDK file
This works great until snapshots are used. Once differencing disks are based on that file, that disk can no longer be released or removed until the whole hierarchy of differencing disks are released, which I presume renders the snapshots unusable. Is there any way to move a virtual disk if snapshots are being used?mpack wrote:Run VBox and go to File|Virtual Media Manager. Select the vmdk and first Release (detach from VM) and then Remove (unregister) it.
-
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: How to move VMDK file
Practically speaking, no. You can easily move the entire VM, but not just the disk. Not to worry, if this is the worst outcome of your decision to use snapshots then count yourself lucky!.virtualbocks wrote:Is there any way to move a virtual disk if snapshots are being used?