Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] clone XP-Virtual to a file
Date: Thu, 11 Sep 2014 04:09:12
Message-Id: d14f5bfb-396b-4a9d-b478-7f13d0d791f5@email.android.com
In Reply to: Re: [gentoo-user] clone XP-Virtual to a file by "Poison BL."
1 On 11 September 2014 04:47:31 CEST, "Poison BL." <poisonbl@×××××.com> wrote:
2 >On Wed, Sep 10, 2014 at 10:37 PM, Joseph <syscon780@×××××.com> wrote:
3 >> How to close virtualbox machine (windows xp) to a file?
4 >> I need to transfer it to another box.
5 >>
6 >> I made some notes but they are old so I'm not sure if they are
7 >applicable or
8 >> there is an easier way.
9 >>
10 >> ===========
11 >> 1) Shut down the virtual machine you would like to copy
12 >> 2) In File > Virtual Media Manager, select the virtual machine disk
13 >image
14 >> you would like to copy, and press the Release button
15 >> 3) In a terminal window, issue following command (see virtualbox user
16 >> manual):
17 >>
18 >> VBoxManage clonehd (complete-path)/directory/image1.vdi
19 >> (complete_path)/directory/image2.vdi
20 >> VBoxManage clonehd /home/thelma/.VirtualBox/HardDisk/xp-clinic.vdi
21 >> /home/thelma/xp-clinic.vdi
22 >>
23 >> 4) In File > Virtualdiskmanager, add the new disk image you've
24 >created in
25 >> step 3.
26 >> 5) In the main virtualbox window, press the New button to create a
27 >new
28 >> virtual machine, and link it to the new disk image you've created.
29 >>
30 >> To re-attache the vdi:
31 >> Next we have to undo the Release we did before so that we can
32 >continue using
33 >> our Virtual Machine. In VirtualBox main Window select the Virtual
34 >Machine
35 >> (1) and press the Settings button (2). Go to Storage (3) IDE
36 >Controller
37 >> (left window - empty); "right click" on "IDE Controller" and press
38 >the Add
39 >> Hard Disk button (in the left window (4). Here select your initial
40 >.vdi file
41 >> (5) and your Virtual Machine will be ok.
42 >> ============
43 >>
44 >> I've noticed there is a "Clone" menu. Do I use it and just tar.gz
45 >entire
46 >> folder to a new machine?
47 >>
48 >> --
49 >> Joseph
50 >>
51 >
52 >File -> Export Appliance
53 ><copy to the new system>
54 >File -> Import Appliance
55 ><verify that settings carried over right>
56 >
57 >It should carry the configuration over fairly completely, though it's
58 >been a long while since I last used it, and I've not tested it between
59 >overly diverse host hardware.
60
61 This works. Done it myself with 20+ VMs when switching laptops beginning of this year.
62
63 I would advise against the steps Joseph has. Those are outdated and can easily lead to errors.
64
65 The Host hardware does not matter. As long as the target host has (at least) the same virtualisation support as the source host. If it doesn't, you might not be able to start 64bit VMs.
66
67 If the VM has devices assigned to it from the Host. Ensure those get moved along or replaced with similar devices.
68
69 I also have serious concerns over the continued use of Windows XP as this is ancient technology that has, finally, been dumped by its creator. But that is not relecant to the question.
70
71 --
72 Joost
73 --
74 Sent from my Android device with K-9 Mail. Please excuse my brevity.