VirtualBox for Beginners: Save, Clone, Restore!

Listen to this Post

Featured Image
VirtualBox is a powerful, open-source virtualization tool that allows you to run multiple operating systems on a single machine. Whether you’re testing software, learning cybersecurity, or experimenting with different OS environments, mastering VirtualBox can save you time and effort. Below, we cover essential commands, steps, and best practices for saving, cloning, and restoring VirtualBox virtual machines (VMs).

You Should Know:

1. Saving (Pausing) a Virtual Machine

Instead of shutting down a VM, you can save its current state and resume later.

Command Line (VBoxManage):

VBoxManage controlvm "VM_Name" savestate

GUI Method:

  • Click Machine → Close → Save the machine state.

2. Cloning a Virtual Machine

Cloning creates an exact copy of a VM, useful for backups or testing.

Full Clone (Independent Copy):

VBoxManage clonevm "Original_VM" --name "Cloned_VM" --register --mode all

Linked Clone (Saves Disk Space):

VBoxManage clonevm "Original_VM" --name "Linked_Clone_VM" --register --mode machine

3. Restoring a Virtual Machine

If a VM gets corrupted, you can restore from a snapshot.

List Snapshots:

VBoxManage snapshot "VM_Name" list

Restore a Snapshot:

VBoxManage snapshot "VM_Name" restore "Snapshot_Name"

4. Exporting & Importing VMs (OVF Format)

Export:

VBoxManage export "VM_Name" -o "Backup.ova"

Import:

VBoxManage import "Backup.ova" --vsys 0 --vmname "Restored_VM"

5. Useful VirtualBox Commands

  • Start a VM in Headless Mode (No GUI):
    VBoxManage startvm "VM_Name" --type headless
    
  • Modify VM RAM & CPU:
    VBoxManage modifyvm "VM_Name" --memory 4096 --cpus 2
    
  • Enable Shared Folders (Host ↔ Guest):
    VBoxManage sharedfolder add "VM_Name" --name "Share" --hostpath "/path/to/folder" --automount
    

What Undercode Say

VirtualBox is a must-have tool for IT professionals, cybersecurity learners, and developers. By mastering VM management—saving, cloning, and restoring—you ensure efficient workflows and disaster recovery.

Additional Linux & Windows Commands for VirtualBox Users

Linux:

  • Check VirtualBox version:
    VBoxManage --version
    
  • List all VMs:
    VBoxManage list vms
    
  • Delete a VM:
    VBoxManage unregistervm "VM_Name" --delete
    

Windows (PowerShell):

  • Start a VM:
    & "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm "VM_Name"
    
  • Take a snapshot:
    & "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" snapshot "VM_Name" take "Snapshot_Name"
    

Expected Output:

A fully functional VirtualBox setup with saved, cloned, and restorable VMs, ready for cybersecurity labs, software testing, or multi-OS experimentation.

🔗 Relevant Links:

References:

Reported By: Chuckkeith Virtualbox – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 Telegram