To move a virtual disk from point A to point B:
- Ensure the virtual machine(s) owning the disk are powered off.
- Open the settings for the virtual machine(s) owning the disk.
- Go to "Storage", select the disk, and click the Remove icon. Then click OK.
- Repeat for each associated VM as necessary
- From the main VirtualBox panel, select File->Virtual Media Manager
- Click on the Virtual Disk image, verify the Location, and that it is not attached to any VMs.
- Click the Remove icon along the top *
- Click Close.
- Now, from the commandline or file manager, move the newly-freed VirtualImage.* files from point A to point B.
- Finally, back in VirtualBox, select the virtual machine configuration and select "Settings".
- Go to "Storage" and select the Controller where the virtual disk used to be.
- Click on the Add Attachment icon and select Add Hard Disk.
- Select Choose existing disk, navigate to point B, and select your virtual disk.
This also has the nice benefit that *you're never going to be prompted to delete the files from disk. (And if I'm misremembering that and you are prompted, but sure to select NO.) You may be able to select "Detach" from the Virtual Media Manager instead of going through each configuration, but I'd recommend doing it the hard way so you can be sure to take notes and verify what you're doing as you do it.
No comments:
Post a Comment
Some HTML tags are accepted, SomeLink, bold and italic seem to be it.