Workaround for cloning disks - only one problem left

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Matthias70
Posts: 4
Joined: 15. Jan 2009, 18:36

Workaround for cloning disks - only one problem left

Post by Matthias70 »

Hi,
clonehd in Virtualbox 2.1 does not work! The machine does not start, when cloned with clonehd :-(
So I cloned my vdi file with this code:

Code: Select all

"F:\VirtualBox\VBoxManage.exe" clonehd -format VMDK disk_1.vdi disk_2.vdi
The new machine with the cloned drive works perfect.

There is only on difference in the virtual media manager!
The format of the vdi file is vmdk although the fileextension is .vdi?

Does anyone know if this could be a problem?
And does anyone know how to convert the vdi file to format vdi without losing data?

Thanks
Matthias
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Post by baf »

Try instead:
Copy oldfile newfile
VBoxManage internalcommands sethduuid <filepath>

And see how that works.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Matthias70
Posts: 4
Joined: 15. Jan 2009, 18:36

Post by Matthias70 »

Thanks, it works :-)
Matthias
Kahuna
Posts: 16
Joined: 20. Jan 2009, 17:01

Post by Kahuna »

baf wrote:Try instead:
Copy oldfile newfile
VBoxManage internalcommands sethduuid <filepath>

And see how that works.
I'm having similar problems with clonevdi - could you expand on your reply please 'baf' (nOOb speak please Bud).

Cheers
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Kahuna wrote:
baf wrote:Try instead:
Copy oldfile newfile
VBoxManage internalcommands sethduuid <filepath>

And see how that works.
I'm having similar problems with clonevdi - could you expand on your reply please 'baf' (nOOb speak please Bud).

Cheers
Copy the VDI you want to clone to a new location. Now you have that, open a command prompt. Change it's location so you're in the VB install folder (cd c:\program files\sun xvm virtualbox by default). Then run the VBoxManage command provided by baf. Like this:

Code: Select all

vboxmanage.exe internalcommands setvdiuuid c:\temp\clone.vdi
Where of course the last part is the full path of the VDI file you copied. After that, change it's name so you know it's the clone and register it in VB.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Kahuna
Posts: 16
Joined: 20. Jan 2009, 17:01

Post by Kahuna »

Thanks Sasquatch - I'll try that today.

Cheers
Kahuna
XP SP2
VBox 2.1.2
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

The new release should fix the cloning issue.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply