How to Clone a Virtual Machine in VirtualBox on Windows 11 & 10

Quick Insight

You can copy a full VM in VirtualBox without reinstalling the guest system. Right-click the source machine in the library and pick Clone to start the tool. Choose Full Clone to create a standalone copy that shares no disk space with the original. Then set the MAC address rule to generate new ones for all adapters to avoid IP fights on your network. That gives each student or tester an exact twin of the master setup for safe, separate work with no extra build time.

Are you using Oracle VM VirtualBox software and considering replicating a virtual machine? So, in this guide, I will explain the Clone feature to duplicate any virtual system for you.

With the clone structure, you can quickly replicate your Windows, Linux, or macOS virtual operating systems. You can either create a complete copy or a linked copy to the primary VM. Using these types, you will not need to reinstall operating systems!

Cloning a Virtual Machine in VirtualBox

How to Copy a Virtual Machine using Clone on Oracle VM VirtualBox

If you use Oracle Type-2 hypervisor software on your computer and know virtual machines well. In that case, you can save time by copying a guest VM straight instead of setting it up again and again.

Therefore, thanks to the Clone feature, which has been offered to VirtualBox, a free and excellent software developed by Oracle, from the beginning, you can quickly make a copy of your virtual systems and avoid installing an additional OS.

Before you get a clone, you can create multiple VMs from the same VM after professionally configuring the operating system installed in the virtual machine. The benefit of this process is that it creates an exact copy of the existing VM instead of making the VMs you include in your projects from scratch.

However, things start to change if you don’t have a VM to clone. Then you need to go back to the first step and lay the foundation. To be clear, learning the steps to create a virtual machine from scratch shouldn’t be difficult at all. Once you grasp this basics, cloning becomes child’s play.

This way, you can contain more than one guest operating system in your projects, and you won’t encounter any problems because the MAC addresses change on the network.

Pro Note: The user account may have a SID number conflict after cloning a VM. You might have to delete the current user and establish a new account. Suppose you want the SID number to change automatically. In that case, you need to run Sysprep in the Windows OS, and then you can replicate this VM by Clone.

What Are Its Types?

  1. Full Clone: This build creates an exact copy of the source machine and retains its original features and configurations. In this way, it makes a separate virtual PC and completely copies the disk space of the source system.
  2. Linked Clone: It is a highly efficient build that effortlessly generates a new copy of a machine, all while conserving a portion of the disk space from the original system. This way, it creates a separate disk space for the changes made and saves disk space.

The most fundamental difference between Full and Linked structures is disk usage. Because the first type copies the entire disk of the host and works completely independently, while the second type only creates disks as much as the changes made and are interconnected.

When to Use Clones?

For example, in a classroom, students are using the same program and developing projects together.

If the instructor is demonstrating the program on a virtual machine, they can replicate the settings using Full Clone. By distributing these replicated VMs to the students, they save time.

This allows all students to make any changes they want on this VM and work independently of the main machine. When the instructor updates the program, the VMs used by the students will not be affected.

Let’s examine the Linked Clone structure with the same example. In distance learning, students connect to the main computer. In this case, you must create a separate virtual machine for each person.

The instructor uses the same version of the program for instruction. Therefore, we recommend that the instructor use a linked structure.

How to Copy a VM with Full Clone

To duplicate a virtual machine in VirtualBox, follow the stages below. Moreover, you can easily copy the required files from where the virtual device is installed and paste them into a new location to make an identical replica.

Copying and pasting files sounds very simple. But how will you see that copy in VirtualBox later? The secret lies in a manual sign-up process. In short, you can re-add an existing virtual machine to the library.

You can follow the actions below to back up or duplicate a Windows, Linux, or macOS system you currently use with a clone.

Step 1

To clone an operating system in the VirtualBox virtualization program, right-click on the desired operating system located in the left panel, also known as the virtual machine library. From there, choose the “Clone” option among the available selections that appear.

Creating a Clone for a Virtual Machine

Step 2

After opening the New Machine Name and Path window, type a suitable name according to your preference in the Name field. In the MAC Address Policy section, select Generate new MAC addresses for all network adapters to prevent IP conflicts of the VMs you will connect to the network.

Let’s explain the options in the MAC Address Policy section:

  1. Include all network adapter MAC addresses: This feature copies the MAC addresses of all network adapters in the primary virtual machine to the cloned machine during the cloning process.
  2. Include only NAT network adapter MAC addresses: This feature copies the host’s only NAT adapter’s MAC address to the cloned machine.
  3. Generate new MAC addresses for all network adapters: This feature generates the MAC addresses of all adapters on the host as new addresses for the cloned VM.

New Virtual Machine Name and Path

Step 3

After setting the MAC address, decide whether you want to keep the host’s disk names and hardware IDs, the same values for the cloned VM, and make the relevant setting in the Additional Options section.

Let’s explain the additional options Keep Disk Names and Keep Hardware UUIDs:

  1. Keep Disk Names: This option keeps the disk names of the created clone VM host and ensures that the disk configuration remains the same as the host.
  2. Keep Hardware UUIDs: This option keeps the hardware UUIDs of the copied VM host and ensures that the hardware configuration remains the same.

Generate New MAC Addresses for All Network Adapters

Step 4

For a healthier VM cloning process, you must choose one of the methods we specified in the Clone Type window after continuing without ticking additional options. Check Full Clone and click Finish for a complete standalone VM replication.

Choosing the Type

Step 5

Wait while VirtualBox copies your Windows 10 or another virtual system for a complete clone.

Copying Virtual Machine

Step 6

When you complete the virtual machine copying process, open the host and VM network settings, and compare the MAC addresses, you can see that the VirtualBox software assigns a new address according to the settings you selected in the MAC policy section.

Checking the MAC Address of the Cloned VM

Step 7

Click Start from the tool menu to run your copied virtual computer.

Operating the Guest Machine

Step 8

Upon reviewing the provided screenshot, it becomes evident that the cloned virtual system functions seamlessly.

If your clone starts up with no problems, there is another reason to be glad. Based on my experience, installing Guest drivers greatly betters the user experience. Mouse linking and display drivers are fixed right away.

The Copied Virtual Computer Runs Without Problems

How to Create a Linked Clone

You can use the linked clone feature to save disk space on your host computer or create a layout that suits your needs. In this way, you can transfer essential changes from the host to the guest machines connected to it.

Step 1

Likewise, open the Clone wizard on the VM you want to replicate and click Next after making the relevant settings.

Creating a Linked Clone

Step 2

Tick the Linked version of the Clone versions this time and continue.

Choosing the Linked Clone Type

Step 3

Run and test the guest operating system you copied as a link.

Testing a Linked Cloned VM

Step 4

After taking a clone on VirtualBox, you can better understand the difference between Full and Linked from the disk sizes when you examine the file sizes of the folders in the installation locations of the virtual machines.

Comparing the Size of All VMs on the Disk

How to Delete Clones from VirtualBox

You copied and included a specific virtual computer in your projects. However, if you want to delete these duplicate VMs when you’re done and keep only the master VM, the process is straightforward.

Step 1

When removing a virtual PC, identify the one you desire to delete and right-click on it. From there, opt for the “Remove” option in the pop-up window. To ensure all files related to the virtual system are gone, hit the “Delete All Files” button in the following step.

Deleting Clone

Step 2

Next, click the three-line icon to delete the snapshot backup created on the primary VM, select the Linked one, and then click Delete.

You should be careful when deleting your snapshot backup. In fact, another feature comes into play here. VirtualBox’s snapshot feature offers a great way to undo changes. Therefore, you should always take a clean snapshot before cloning. This way, you always have a chance to recover the main machine.

Deleting Snapshot

Step 3

To ensure the effectiveness of the primary virtual machine, execute it and thoroughly examine for any potential issues.

Checking the Smooth Operation of the Host Virtual Machine

Video

Video Thumbnail
Watch on YouTube

The 6 Most Asked Things About Cloning in VirtualBox

Can you explain the difference between Full Clone and Linked Clone in a snap?

Full Clone copies the entire disk of the parent machine one-to-one. A brand new, independent virtual computer is born. There is no connection left with the original system.
Linked Clone, on the other hand, shares most of the disk with the parent machine. It only takes up space as much as the changes you will make. So you save a serious amount of disk space.
Honestly, Linked Clone is ideal for training labs. But if you need a portable copy that will work on its own, Full Clone is a must.

Why should I care about the MAC address setting during cloning?

If two machines on the same network have the same MAC address, an IP conflict is unavoidable. The cloned system cannot get on the network or constantly throws errors. However, the solution is very simple.
It is enough to check the ‘Generate new MAC addresses for all network adapters’ option in the VirtualBox wizard. The software assigns a brand new identity to each network card.
Because skipping this small box can lead to hours of network problems. Especially if you are going to run more than one clone, never skip this step.

I cloned my Windows virtual machine but I get strange errors when logging in. What could be the reason?

The culprit is most likely an SID number conflict. In Windows systems, each installation and user account carries a special security identity. Cloning copies this identity as it is.
The secret lies in using the Sysprep tool. Before duplicating the machine, you should run Sysprep inside it and do a generalization. This process resets the SID.
In the end, when the new copy first opens, Windows goes through a mini setup. It generates a brand new SID just for you and all problems disappear.

Will my parent machine get damaged when I delete a linked clone?

No, your parent machine stays completely safe. But you need to do the deletion in the right order. First, right-click the copy virtual computer and say ‘Remove’.
Then clean the leftovers with the ‘Delete All Files’ option. The last step is very important. You must also go to the parent machine’s snapshots menu and delete the linked clone backup there.
This way no unneeded connections are left on the disk. Your parent system keeps running with its first-day cleanliness.

Is there a practical way other than cloning to copy a virtual system in VirtualBox?

Yes, copying at the file level also works. Find the virtual machine’s hard disk file and the settings file with the .vbox extension. Move both together to a new folder.
Then click the ‘Add’ button on the VirtualBox main screen. Point to the .vbox file inside the folder you moved. The machine is added to your library right away.
However, this method copies the MAC addresses. Do not forget to generate a new address from the network settings before running it. Otherwise, you will have a conflict on the network.

My disk space is low. Which clone type makes more sense for me?

If your storage space is limited, go for Linked Clone with your eyes closed. This method only saves your changes. The huge size of the parent disk is not added to the cloned machine.
What is more, critical updates you make on the parent machine instantly reflect on all linked clones. You kill two birds with one stone.
But do not forget this. Never delete or move the disk file of your parent virtual system. Otherwise, all your linked clones become unable to open.

Conclusion

As a result, if you are using Oracle VM VirtualBox, I strongly recommend that you take advantage of the Clone feature. Because it takes time to set up a new system one by one, in order to focus on your projects, you should quickly multiply your virtual machines. At this point, the Clone feature comes into play and makes your job easier.

This way, you don’t have to reinstall the operating systems, and you can create a complete copy. Additionally, whether you use the Full or Linked type, you can benefit from the advantages of both features. In short, you can safely copy your virtual machines by following the steps I explained. As a result, you can easily manage your projects.

They'll Thank You for Discovering This Guide!

Ready to do your loved ones a huge favor with just one click? Knowledge grows as it is shared.

Be the first to share your comment