Gentoo Archives: gentoo-user

From: Hans <linux@××××××××××××××.au>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: clone XP-Virtual to a file
Date: Sat, 13 Sep 2014 21:02:52
Message-Id: lv2bck$d36$1@ger.gmane.org
In Reply to: [gentoo-user] clone XP-Virtual to a file by Joseph
1 On 11/09/14 03:37, Joseph wrote:
2 > How to close virtualbox machine (windows xp) to a file?
3 > I need to transfer it to another box.
4 >
5 > I made some notes but they are old so I'm not sure if they are
6 > applicable or there is an easier way.
7 >
8 > ===========
9 > 1) Shut down the virtual machine you would like to copy
10 > 2) In File > Virtual Media Manager, select the virtual machine disk
11 > image you would like to copy, and press the Release button
12 > 3) In a terminal window, issue following command (see virtualbox user
13 > manual):
14 >
15 > VBoxManage clonehd (complete-path)/directory/image1.vdi
16 > (complete_path)/directory/image2.vdi
17 > VBoxManage clonehd /home/thelma/.VirtualBox/HardDisk/xp-clinic.vdi
18 > /home/thelma/xp-clinic.vdi
19 >
20 > 4) In File > Virtualdiskmanager, add the new disk image you've created
21 > in step 3.
22 > 5) In the main virtualbox window, press the New button to create a new
23 > virtual machine, and link it to the new disk image you've created.
24 >
25 > To re-attache the vdi:
26 > Next we have to undo the Release we did before so that we can continue
27 > using our Virtual Machine. In VirtualBox main Window select the Virtual
28 > Machine (1) and press the Settings button (2). Go to Storage (3) IDE
29 > Controller (left window - empty); "right click" on "IDE Controller" and
30 > press the Add Hard Disk button (in the left window (4). Here select your
31 > initial .vdi file (5) and your Virtual Machine will be ok.
32 > ============
33 >
34 > I've noticed there is a "Clone" menu. Do I use it and just tar.gz
35 > entire folder to a new machine?
36 >
37 I use this method without cloning. This means that only one VM can run
38 at a time:
39
40 Shutdown the VM on PC-1.
41 Copy the directory '~/VirtualBox VM's' from PC-1 to PC-2.
42 Import the VM into VirtualBox on PC-2.
43 Start the VM on PC-2.