VMware ESXi and vSphere Cluster Management
How to Clone a Virtual Machine in Oracle VirtualBox
Learn how to clone a VirtualBox VM, choose full or linked clones, handle MAC addresses, verify the copy, and avoid network and storage problems.
What Is Virtual Machine Cloning?
A virtual machine (VM) is a software-defined computer that runs a guest operating system on a physical host system. Oracle VirtualBox is software for creating and managing these VMs.
Cloning creates a separate VM from an existing source VM. The newly created clone VM has its own VirtualBox configuration and, for a full clone, its own copied virtual disks. After cloning is complete, changes made inside the clone do not change the source VM.
Why Clone a VM?
- Test changes safely: apply a risky update or configuration change to the clone while preserving the original.
- Preserve a known-good state: keep a working baseline available as a rollback point.
- Create a backup-like duplicate: make an independent copy that can be started or moved separately, especially with a full clone.
- Prepare repeatable lab machines: create several training or development systems from one prepared baseline.
Prepare the Source VM
- Identify the source carefully. Confirm the VM name, guest operating system, disk contents, and purpose before starting the wizard.
- Shut down the guest cleanly. A normal guest shutdown gives VirtualBox a consistent disk state. Some VirtualBox versions and VM states allow additional cloning choices, but a powered-off VM is the safest starting point.
- Check host storage. A full clone may need space comparable to the source virtual disks, plus configuration files and any retained snapshot data.
- Review snapshots. A snapshot preserves a VM state and may create associated differencing disks. Decide whether the clone needs only the current state or the snapshot history.
- Review attached resources. Check virtual disks, optical media, shared folders, USB filters, network adapters, and any files stored outside the VM folder.
- Check identity-sensitive software. Operating-system activation, licenses, endpoint-management agents, certificates, and application registrations may require reactivation or identity changes in the clone.
Open the Clone Workflow in VirtualBox Manager
- Open VirtualBox Manager and select the intended source VM.
- Open the VM's context menu and choose the clone action, or use the applicable machine menu in your VirtualBox release.
- Confirm that the selected VM is the source. The wizard will create a new destination VM from it.
The exact labels can vary between VirtualBox releases, but the workflow normally asks for a destination name, location, clone type, snapshot handling, and network identity options.
Name and Place the Clone
Give the destination a unique, descriptive name. Avoid names that could be confused with the source in scripts, backups, or VirtualBox Manager.
Useful naming patterns include:
dev-app-baselinefor a known-good development machinedev-app-update-testfor a temporary update testlab-linux-student-03for a training machinewin-test-2026-08-18for a dated copyproduction-baselinefor a carefully preserved reference VM
When VirtualBox offers a destination folder, select a host location with enough capacity and appropriate backup or access policies. A separate volume can make storage planning and cleanup easier.
Choose MAC Address Handling
Every virtual network adapter has a MAC address, a hardware-style identifier used by Ethernet networking and many virtual network configurations. A cloned adapter can either receive a new MAC address or retain the source identity, depending on the cloning choice and VirtualBox version.
Reinitializing the MAC address means generating a fresh MAC address for the clone's virtual adapters. Enable this option when the source and clone might be powered on or connected to the same network.
Duplicate MAC addresses can cause network conflicts, unpredictable connectivity, confused DHCP leases, and problems identifying the correct machine in monitoring or access-control systems. A new MAC address does not by itself solve duplicate hostnames, static IP addresses, DHCP reservations, or operating-system machine identifiers.
Keeping the original MAC can be intentional for an offline archival copy or a controlled environment that requires identity preservation. Do not connect such a copy to the same network as the source at the same time.
Choose a Full Clone or Linked Clone
A full clone copies the virtual disks and creates an independent VM. A linked clone uses a base VM or snapshot and stores only the changes made by the clone. The installed VirtualBox version must provide linked-clone support for this option to appear.
Choose a full clone for an independent backup-like copy, long-term retention, or moving the duplicate to another host. Choose a linked clone when saving storage and quickly creating dependent test environments matter more than independence.
Understand Snapshot Choices
A VM can contain snapshots and associated disk states. During cloning, VirtualBox may offer a choice between cloning only the current machine state and retaining snapshot history.
- Current state only: creates a clone based on what the VM looks like at the selected point, without preserving the complete snapshot tree.
- Retain snapshot history: copies the relevant snapshot structure when the version and clone mode support it, allowing more historical states to remain available.
Retaining snapshots can increase storage consumption and make the resulting VM more complex to manage. Select the mode that matches the goal: a simple test copy usually needs only the current state, while a recovery or investigation workflow may need snapshot history.
Clone a VM with VirtualBox Manager
- Power off the source VM cleanly.
- Select it in VirtualBox Manager and open the Clone action.
- Enter a unique clone name and choose a destination folder if offered.
- Select whether to copy the current state or retain snapshots.
- Select Full clone for an independent copy, or Linked clone when the dependency and storage trade-off is acceptable.
- Enable reinitialize MAC addresses when source and clone could coexist on a network.
- Start the operation and wait for the virtual disk copy to finish. Do not interrupt the host or move the involved files while the operation is running.
- Locate the new VM in VirtualBox Manager and review its settings before starting it.
Clone a VM from the Command Line
VBoxManage is VirtualBox's command-line administration utility. The exact flags and supported behavior can differ among releases, so check VBoxManage clonevm --help on the host before using a script.
A full clone of the current machine state can be created with a command like this:
VBoxManage clonevm "dev-app-baseline" --name "dev-app-update-test" --basefolder "/path/to/vms" --register --mode machineOmit keepallmacs so VirtualBox can generate new adapter MAC addresses according to the release's default behavior. If a controlled offline copy must retain all MAC addresses and the release supports the option, use:
VBoxManage clonevm "dev-app-baseline" --name "dev-app-offline-copy" --register --mode machine --options keepallmacsTo retain snapshot history when supported, use --mode all instead of --mode machine. A linked clone can be requested with the link option:
VBoxManage clonevm "dev-app-baseline" --name "dev-app-linked-test" --register --mode machine --options linkOption combinations and names can vary by VirtualBox release. Confirm the syntax and the meaning of MAC-related options with VBoxManage clonevm --help before relying on a command in automation.
Verify the Clone Before First Boot
Before starting the clone, open its settings and compare the important values with your plan.
After booting, verify network connectivity only when networking is intended. Confirm that the clone has the expected MAC address, hostname, IP configuration, and access to the required networks.
Isolate and Re-identify the Clone
For risky testing, disconnect the clone's virtual adapters before first boot or choose an intentionally isolated network mode. NAT commonly lets a guest access external networks through the host. A host-only network allows communication between the host and guests on an isolated virtual network. Select the mode based on the test rather than leaving the source's settings unquestioned.
If both systems will coexist, update the clone as appropriate:
- Change the guest hostname.
- Review static IP settings, DHCP reservations, and DNS records.
- Regenerate or generalize operating-system machine identifiers using the guest OS procedure.
- Update endpoint-management registrations, application registrations, certificates, and machine-specific credentials where relevant.
Practical Examples
Test a Risky Software Update
- Clone the known-working development VM.
- Name the copy
dev-app-update-test. - Generate new adapter MAC addresses.
- Use NAT or an isolated test network as appropriate.
- Apply the update only in the clone.
- Keep the original VM untouched as the rollback point.
Create an Independent Backup-Like Copy
- Shut down the source cleanly.
- Create a full clone rather than a linked clone.
- Store it in a separate host location with sufficient capacity.
- Boot the copy once and verify that the guest starts and its disks are available.
- Record the clone's location, VirtualBox version, and any external resources it still requires.
Run Two Copies in One Lab
- Clone the Linux or Windows lab VM with new MAC addresses.
- Start the clone with networking disconnected if identity changes must happen first.
- Change the guest hostname after startup.
- Review static IP addresses and DHCP reservations.
- Choose NAT, host-only, or another deliberate network configuration.
- Reconnect and test communication without creating an address or identity collision.
Create Disposable Training Machines
- Maintain a baseline VM with the required learning tools.
- Clone it for each exercise or learner.
- Use clear names and folders for temporary machines.
- After the exercise, delete each clone and its associated disk files if it is no longer needed.
Delete an Unwanted Clone Safely
In VirtualBox Manager, removing a VM from the list is not always the same as deleting its files. The remove dialog may offer an option to remove only the registration or to delete the associated files. Removing only the registration leaves disks and configuration files on the host; deleting the files frees storage but permanently removes the clone's data.
Before deleting, confirm the VM name, check whether it is a full or linked clone, and verify that no other VM depends on its disks. A linked clone must not be deleted or separated from required base resources casually.
Troubleshooting
The Clone Has No Network Connectivity or Conflicts with Another VM
Likely causes include a duplicate MAC address, a duplicated static IP address, or a DHCP reservation tied to the original identity.
- Power off the affected VM.
- Generate a new MAC address in the clone's network adapter settings, or recreate it with MAC reinitialization enabled.
- Update the guest hostname and network configuration.
- Check DHCP reservations and DNS records.
- Reconnect and test networking.
The Clone Fails Because the Host Is Out of Disk Space
A full clone may require space for a complete virtual disk copy. Existing snapshots can substantially increase the requirement. Free storage, choose a larger destination volume, or use a linked clone only if its dependency model is acceptable.
The Clone Does Not Start or Reports Missing Media
Inspect the clone's Storage settings. Verify that virtual disk files exist and are accessible. Remove obsolete removable-media attachments or attach the correct optical image. Also check whether the clone references an external disk or host path that was not copied.
A Linked Clone Stops Working After Base Changes
A linked clone depends on its base disk or snapshot. Moving, deleting, or altering required base resources can make it unusable. Restore the required resources if possible, use a full clone for independent long-lived copies, and document dependencies before deleting source VMs or snapshots.
Both Machines Have the Same Identity in Management Tools
The guest operating system or an installed application may retain a machine-specific identifier from the source. Follow the operating system and management-platform procedure to generalize or regenerate that identity, then update hostnames, registration records, and credentials before placing both machines in service.
Exam-Relevant Notes
- A clone is a new VM based on a source VM; it is not merely a shortcut or a renamed entry.
- A full clone is independent because its virtual disks are copied.
- A linked clone saves storage but depends on a base VM or snapshot.
- Generate new MAC addresses when source and clone may use the same network.
- Snapshots can affect both storage requirements and the history copied into the clone.
- Changing a MAC address does not automatically change the guest hostname, IP address, or operating-system machine identity.
- Removing a VM from VirtualBox Manager can mean unregistering it or deleting its files; check the selected action.
For related VirtualBox work, continue with the virtual machine cloning workflow and apply the same identity, storage, and verification principles when preparing test copies.