Page 1 of 1
How to clone vdi on windows Hosts?
Posted: 6. Jan 2009, 07:45
by themoon17
Hi all,
i have windows Host Environment.
How can i clone My VDIs?
i have 1.Ubuntu guest which i want to clone. Is there any better way to clone other than copying?
Somebody help me pls
Thanks in advance
Posted: 6. Jan 2009, 08:38
by Hypnoz
I clone systems like this.
1) Copy the VDI file you want to clone/backup.
2) This file won't boot because it has the same UUID as the first file you copied, so need to use VBoxManage utility to give it a new random UUID.
3) Open command prompt, and change to your Vbox directory with VBoxMange.exe in it. Probably located at C:\Program Files\Sun\xVM VirtualBox\
4) Run this command in command prompt
VBoxManage internalcommands setvdiuuid "D:\My Virtual Machines\VDI\HardDiskName.vdi"
Obviously you would change the above path to point to your
NEW VDI file that you created (not the original).
Hope this helps!

hi again
Posted: 6. Jan 2009, 10:27
by themoon17
thanks Hypnoz.
But can you please what is the internal command in this below line
VBoxManage internalcommands setvdiuuid "D:\My Virtual Machines\VDI\HardDiskName.vdi"
Also, if am running a live server on VBox. will all my data running on the server will come when am copying the vbox to new location?
thanks again
Posted: 6. Jan 2009, 18:10
by TerryE
Hypnoz, a little hint if you don't mind. Instead of just repasting this type of answer, when you see duplicate topics like this one just refer the original poster to the other thread, so that we can then answer multiple posters in one topic.
Themoon17, welcome to our forum. You might want to take this opportunity to browse the
Forum Posting Guide. This contains some useful tips on how to search for VBox knowledge and how to frame Qs. In this case it really is far easier for you to google the forum for
setvdiuuid for answers rather than just asking the Q again.
If you are running a live server then you can't run a copy since the VDI will be open on the host. Copying a VDI is a bit like pulling a disk out of a PC and making an exact image copy. You can put this into another PC to clone your original, but you can't (safely) pull a disk out of a running PC can you?
Posted: 6. Jan 2009, 18:39
by vbox4me2
TerryE wrote:If you are running a live server then you can't run a copy since the VDI will be open on the host. Copying a VDI is a bit like pulling a disk out of a PC and making an exact image copy. You can put this into another PC to clone your original, but you can't (safely) pull a disk out of a running PC can you?
I can and have done so a few times, no problems.
Posted: 7. Jan 2009, 01:57
by TerryE
vbox4me2 wrote:I can and have done so a few times, no problems.
On a windows host?
Also you can't guarantee the integrity of copying an open VDI on the fly even if you could do the snap. OK if you are using Linux LVM or W2K3R2 snapshots, but otherwise ...
cloning with clonehd
Posted: 7. Jan 2009, 11:19
by se_ha
I use "VBoxManage clonehd <infile> <outfile> -format VDI" to clone a virtual box hd image on XP SP3 host. The existing and running hd image has laos XP installed SP3. I created a new VM with the cloned HD as basis. When I start now the VM, the messge I get is "A disk read error occured" and nothing is working any more. I'm using VBox 2.1. What is wrong, any help.
In the description of clonehd there is a -remember option listed but not explained anywhere in the documentation.
Posted: 7. Jan 2009, 14:58
by vbox4me2
TerryE wrote:vbox4me2 wrote:I can and have done so a few times, no problems.
On a windows host?
Also you can't guarantee the integrity of copying an open VDI on the fly even if you could do the snap. OK if you are using Linux LVM or W2K3R2 snapshots, but otherwise ...
Yep, vista host, yes sometimes the copy indicates some ntfs problems but thats easely fixed.
Re: cloning with clonehd
Posted: 7. Jan 2009, 21:44
by Sasquatch
se_ha wrote:I use "VBoxManage clonehd <infile> <outfile> -format VDI" to clone a virtual box hd image on XP SP3 host. The existing and running hd image has laos XP installed SP3. I created a new VM with the cloned HD as basis. When I start now the VM, the messge I get is "A disk read error occured" and nothing is working any more. I'm using VBox 2.1. What is wrong, any help.
In the description of clonehd there is a -remember option listed but not explained anywhere in the documentation.
The clone command is broken in 2.1.0. Please use the alternative
setvdiuuid instead on a normal file copy.