Thursday, November 27, 2008

Kidde Smoke Detectors Keeps Beeping

VirtualBox.

If we make a copy of an already created virtual machine and the hydraulic / s OS / s already installed / s, use the command VirtualBox provides to clone hard drives . In fact, what is the hard disk cloning and not the entire machine. The new drive can be added to a new machine to be created or an existing machine.

When you create a virtual machine, VirtualBox assigns an identifier to the hard drive added to the machine. If this hard disk is copied, the new hard drive keeps the same identifier as the original, so that in trying to add it to another machine from VirtualBox generates an error because the disk identifier already exists. This is why you need to clone and copy, the hard disk using the utility provided by VirtualBox.

When you clone a hard disk, the disk cloning VirtualBox assigns a new ID and a new MAC address.

When you install VirtualBox creates a hidden directory called . VirtualBox in the directory home user, which contains folders Machines, where you create a folder for each existing machine with log files and their characteristics, and VDI that contains the hard drives created from VirtualBox. Unless otherwise noted, this is the hidden directory used VirtualBox for all operations.

To clone a hard disk use the command VBoxManage clonevdi , which receives as arguments the name of the hard drive to clone and name of the new hard drive. If you run the command VBoxManage from a terminal will display all your options. In support of VirtualBox can see the actions that can be performed with VBoxManage .

As an example, let's clone a hard disk, called Proyecto.vdi in a new hard drive, called Proyecto1.vdi .

The following command displays the original hard disk and its location:

elnuevo coralie @: ~ $ ls .VirtualBox / VDI
Proyecto.vdi

To clone the hard disk using the following order:

coralie @ elnuevo: ~ $ VBoxManage clonevdi Proyecto.vdi Proyecto1.vdi
VirtualBox Command Line Management Interface Version 1.6.0
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

0% ... 10% ... 20% ... 30% ... 40% ... 50% ... 60 %..... 70% ... 80% .. .90% ... 100%

The following command displays the new hard drive and location:

elnuevo coralie @: ~ $ ls .VirtualBox / VDI
Proyecto1.vdi Proyecto.vdi

In this example we see that all actions have been made in the VirtualBox directory used by default. If we use another directory, you must specify the full path in the original hard drive name and the name of the cloned hard disk.

From this point, the cloned hard drive can be added to a new machine without any error and we use all our virtual machines simulating a network, along with the host computer. See article in this blog, to configure the network VirtualBox Linux.

0 comments:

Post a Comment