OS : Windows (7, Vista, XP)
This process looks more complicated than it seems, but thanks to the fact that I found a post loaded on My-guide.net , I quickly made the copy of my virtual machine and did not have to wait to install everything again
In order to be able to clone our virtual disk we have to …
- Is this virtualbox running? If the answer is NO , open it-execute it , then release the virtual disk that we want to clone / copy.
- Let’s go to the File menu or Ctrl + D
- Click Virtual media manager
- Then select the disk to copy and click on Release.
- Now let’s go to our Windows command console
- We can run it in the Windows RUN with the command CMD or in the menu → home → all the programs → accessories → Command Prompt .
- Then we go to the path of the folder of Vitualbox writing in the console the following command.
- Cd c:\program files\oracle\virtualbox
- Since we are inside ~ Virtualbox we can execute the command (vboxmanage clonevdi) that would allow us to copy, clone our virtualdisk.
- We write the command as follows:
- Vboxmanage clonevdi “d:\virtualw2k3s1.vdi” “d:\virtualw2k3s1.vdi”
- When it is finished it will tell us that it creates a ‘VID’ ‘UUID’ formatted disk of the cloned disk, which will be different from the original disk.
- Then we create a new virtual machine, and in view of choosing: create new disk, choose an existing one, and look for our previously cloned disk.
In the Vboxmanage clonevid command (” original virtualdisk path and its name with the VDI extension in quotation marks”) (” cloned virtualdisk path and its name with the VDI extension in quotation marks”)