Move VirtualBox Virtual Machines to another Hard Drive

Source

  1. Use clonehd to create a clone. Open a Terminal window and enter vboxmanage clonehd [original] [clone], replacing [original] with the full paths to the .vdi file you want to clone and [clone] with the location where you want the clone, i.e. vboxmanage clonehd /VM/ubuntu10.10.vdi /Volumes/ExternalDisk/VM/ubuntu10.10.vdi.
    vboxmanage clonehd "C:\Users\Admin\.VirtualBox\HardDisks\Ubuntu 9.1 Karmic Koala.vdi" "E:\VMs\Ubuntu_9.1_Karmic_Koala.vdi"
  2. Open VirtualBox and go to Settings – Storage for the machine.
  3. Remove the disk in the Storage Tree.
  4. Add the cloned disk instead.