how do i copy vdi

Discussions related to using VirtualBox on Windows hosts.
Post Reply
tony10111
Posts: 44
Joined: 2. Apr 2018, 07:22

how do i copy vdi

Post by tony10111 »

hi i copy vdi from my lapto to my pc am geting this error
Attachments
grub33.PNG
grub33.PNG (8.48 KiB) Viewed 974 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: how do i copy vdi

Post by mpack »

You don't move a VDI on its own.

Howto: Move a VM.
Dan P
Posts: 36
Joined: 23. Dec 2019, 18:33

Re: how do i copy vdi

Post by Dan P »

Everything mpack said... clearly.

I use Robocopy on Windows 10 for simple backup of .vhd / .vhi files.

Something like this, in an elevated Command Prompt window:
FromDir - source dir.
ToDir - destination dir
FileVhd - file name of .vhd virtual disk.

Code: Select all

Robocopy %FromDir% %ToDir% %FileVhd% /Z /copyall /secfix /timfix /V /TS /FP

Code: Select all

Example: robocopy   d:\utiluso\virtbox\vhds\    d:\test\   popos_lnx.vdi  /Z /copyall /secfix /timfix /V /TS /FP
Hope this helps. If not moderator please delete....

..
tony10111
Posts: 44
Joined: 2. Apr 2018, 07:22

Re: how do i copy vdi

Post by tony10111 »

in which path do i run this
Robocopy %FromDir% %ToDir% %FileVhd% /Z /copyall /secfix /timfix /V /TS /FP
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: how do i copy vdi

Post by mpack »

I would ignore the RoboCopy advice, it just adds extra things to go wrong. I already gave you a link to the FAQ: I suggest you follow that.
tony10111
Posts: 44
Joined: 2. Apr 2018, 07:22

Re: how do i copy vdi

Post by tony10111 »

i also just what to copy what dose clone do
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: how do i copy vdi

Post by mpack »

Is English a second language? If yes then it might be better if you asked your questions in your native language, which would allow you to give more information and to be clearer about your goals.

Moving a VM from a laptop to a desktop PC an example of MOVING. The FAQ covers this.

A clone is a copy of the VM with various IDs changed, making it possible to have original and cloned VMs running at the same time on one PC, licenses permitting. Your first post gave no indication that this was your intention.

Cloning, when what you should have done was MOVE, would as mentioned result in changed IDs. Among other things this could indeed cause a grub boot fail, if grub happens to be configured to look for the boot disk based on its UUID instead of a slot number on the controller.

Note that exporting to OVA and then importing on the target PC also counts as cloning, as that too results in a new VM with changed IDs.

The best solution either way is to scrap the clone and complete the move as described in the FAQ.
Post Reply