Importing VirtualBox VMs from a previous installation allows you to restore your virtual machines without reinstalling guest operating systems or reconfiguring settings, preserving your work and environments exactly as they were. This process works by copying the VM’s folder containing its virtual disk and configuration files, then registering it in VirtualBox using the VBoxManage command or the GUI.

What You'll Need

  • Access to the original VirtualBox VM folder (containing the .vbox file and .vdi, .vmdk, or other disk image)A working installation of VirtualBox (same or newer version recommended)Administrator or user permissions to read the VM files and write to the VirtualBox VMs directory(Optional) Command-line access for using VBoxManage if preferred over the GUI

Step-by-Step

  1. Locate the original VM folder from the previous installation. This folder typically contains a file with the .vbox extension (e.g., Windows 10.vbox) and one or more disk image files (.vdi, .vmdk, etc.). If you’re unsure where it is, check common locations like ~/VirtualBox VMs/ (Linux/macOS), %USERPROFILE%\VirtualBox VMs\ (Windows), or wherever you previously stored VMs.
  2. Copy the entire VM folder (not just individual files) to a location accessible by your current VirtualBox installation. For example, copy it to the default VirtualBox VMs directory: ~/VirtualBox VMs/ on Linux/macOS or %USERPROFILE%\VirtualBox VMs\ on Windows. Ensure the folder name contains no special characters that could cause issues (avoid : * ? " < > |).
  3. Open VirtualBox. If the VM does not appear automatically in the manager window, you need to register it manually.
  4. To register via the GUI: Click the "Machine" menu, then select "Add...". Navigate to the copied VM folder, select the .vbox file inside it, and click "Open". The VM will now appear in the VirtualBox Manager list.
  5. Alternatively, register via command line (useful for scripting or headless setups): Open a terminal or command prompt and run: VBoxManage registervm "/full/path/to/your/VirtualBox VMs/VM Name/VM Name.vbox" — replace the path with the actual location of the .vbox file. Use quotes if the path contains spaces.
  6. After registration, verify the VM appears in the VirtualBox Manager. Select it and click "Settings" to confirm that the storage, RAM, CPU, and other configurations are correct. The disk image should be attached under Storage > Controller: SATA (or IDE).
  7. Start the VM by selecting it and clicking "Start". If the guest OS boots successfully, the import was successful. You may need to reinstall VirtualBox Guest Additions if the version differs significantly, but this is rarely required for basic functionality.

Common Mistakes

  • Copying only the disk image (.vdi or .vmdk) without the .vbox file — this causes VirtualBox to have no configuration to load, resulting in a "VM not found" or "settings file not found" error.
  • Placing the VM folder in a path with special characters or spaces without proper quoting in command-line tools, leading to registration failures.
  • Attempting to register a VM while another VM with the same name or UUID already exists in VirtualBox, causing a conflict. VirtualBox will reject duplicates based on UUID.
  • Using an older version of VirtualBox to run a VM created with a newer version — while often backward compatible, some features may not work, and you may see warnings about version mismatches.
  • Assuming the VM will work without checking storage attachments — if the disk image path is broken in the .vbox file (e.g., due to moving files), the VM will fail to boot with a "could not open medium" error.

Tips

  • Always copy the entire VM folder — never split .vbox and disk files — to preserve integrity.
  • Before copying, ensure the VM was cleanly shut down in the previous installation (not saved or paused) to avoid filesystem inconsistencies in the guest OS.
  • If you plan to move VMs frequently, consider storing them in a dedicated, synchronized folder (e.g., inside Dropbox or Nextcloud, but only when VMs are off) to simplify transfers.
  • After importing, take a snapshot immediately if the VM is in a clean state — this gives you a rollback point.
  • To avoid UUID conflicts when cloning or copying, use VBoxManage clonevm instead of manual copying if you need an independent duplicate.
  • Check the VirtualBox log file (Help > Show Log) if the VM fails to start — it often contains precise details about missing files or configuration errors.

Troubleshooting

If the VM does not appear after using "Add...":

  • Confirm you selected the correct .vbox file — not a shortcut, temporary file, or disk image.
  • Check file permissions: the .vbox and disk files must be readable by the user running VirtualBox.
  • Verify the .vbox file is not corrupted — open it in a text editor and look for XML structure; if it’s empty or garbled, the backup may be incomplete.

If the VM appears but fails to start with a "Failed to open a session" or "Could not open medium" error:

  • Go to VM Settings > Storage and check if the hard disk is listed and attached. If it shows "Empty" or a red warning, click the disk icon, choose "Choose Disk", and browse to the .vdi or .vmdk file in the VM folder.
  • Ensure the disk image file actually exists at the path shown — if you moved the folder, update the storage path manually.
  • If the disk is marked as "Inaccessible", it may be locked by another process or have permission issues — restart the host machine and try again.

If you get a UUID conflict error:

  • Open the .vbox file in a text editor, locate the tag, and find the UUID attribute. Generate a new UUID using: VBoxManage internalcommands sethduuid "/path/to/disk.vdi" for the disk, and optionally change the VM UUID in the .vbox file (not recommended unless experienced).
  • Better yet, delete the problematic VM from VirtualBox (right-click > Remove > Delete only, not all files), then re-add it using the .vbox file — VirtualBox will often assign a new UUID on registration if it detects a conflict.

If the guest OS boots but shows hardware errors or missing drivers:

  • Reinstall VirtualBox Guest Additions from the Devices menu — this ensures proper video, mouse, and shared folder support for the current VirtualBox version.
  • Check that the VM’s CPU settings (under System > Processor) are compatible with the host — especially if moving between Intel and AMD hosts or enabling/disabling VT-x/AMD-V.

Frequently Asked Questions

Do I need to export and import using OVA/OVF to move VMs?

No — exporting to OVA/OVF is useful for sharing or backing up, but for direct transfer between installations, copying the VM folder and registering the .vbox file is faster, preserves snapshots and exact state, and avoids conversion steps.

Can I move a VM from Windows to macOS or Linux?

Yes — VirtualBox is cross-platform, and the .vdi, .vmdk, and .vbox formats are portable. Just ensure the guest OS supports the virtual hardware (e.g., Windows may need driver reinstalled after major hardware change, but Linux usually adapts).

What if I only have the disk image and lost the .vbox file?

You can create a new VM in VirtualBox and attach the existing disk image as the hard drive. You’ll need to reconfigure RAM, CPU, boot order, etc., but the guest OS and data will be intact.

Is it safe to run a VM from an external USB drive or network folder?

Technically yes, but not recommended for performance or stability. USB drives may disconnect; network latency can cause delays or corruption. For best results, run VMs from local internal storage.

Will my snapshots still work after moving the VM?

Yes — if you copied the entire VM folder, including the Snapshots subfolder and all .vbox files, snapshots are preserved exactly. Do not separate snapshot files from the main VM folder.

Do I need to reinstall VirtualBox Extension Pack after moving VMs?

No — the Extension Pack is host-level and unrelated to VM portability. As long as it’s installed on the new host, features like USB 2/3, RDP, and NVMe will work.