VMware ESXi and vSphere Cluster Management
How to Move a Virtual Machine in Oracle VirtualBox
Learn how to safely move an Oracle VirtualBox VM to another folder or computer, including file checks, compatibility, registration, and troubleshooting.
Moving an Oracle VirtualBox virtual machine (VM) means relocating its files and then registering the existing machine from its new location. You can move a VM to another folder on the same host system, or transfer it to a different host computer.
The safest approach is to shut down the guest completely, inventory every referenced file, copy the complete VM structure, register the relocated .vbox definition, and test the copy before deleting the original.
What a VirtualBox VM Contains
A virtual machine is a software-defined computer with virtual hardware and its own guest operating system. The physical computer and its operating system are the host system.
A VM is not just one file. It normally consists of a VirtualBox definition file, one or more virtual disks, logs, optional snapshots, saved-state data, and references to other media. The .vbox file is an XML-based definition that describes the VM's virtual hardware and attached resources.
A successful move preserves the relationship between the definition file and every attached disk or referenced file. Copying only the .vbox file, or only the main virtual disk, can produce an incomplete VM.
Relocating versus transferring
Check Compatibility Before Moving
Before copying a large VM, confirm that the destination can run the guest operating system and the VM's selected architecture.
Moving from a 32-bit-capable source host to a suitable 64-bit host is generally possible. Moving a VM configured for 64-bit operation to a host without supported 64-bit virtualization capability is not a supported architecture downgrade.
Substantially different host hardware, firmware settings, graphics support, available memory, or VirtualBox versions can affect startup. Install VirtualBox before transferring the VM so the destination is ready to register and test it.
Locate and Inventory Every VM File
First identify the VM's main directory. In VirtualBox Manager, select the VM and inspect its settings, especially Storage. Do not assume that every attached file is inside the displayed VM folder.
In Storage settings, record each controller, disk, optical medium, and additional attachment. If a disk path points outside the main VM folder, copy that file separately or plan to attach it from its new location after registration.
Example inventory
VM definition: C:\VM\Windows7\Windows7.vbox
Primary disk: C:\VM\Windows7\Windows7.vdi
Additional disk: D:\VirtualDisks\Data.vdi
Snapshots: C:\VM\Windows7\Snapshots\
Optical medium: C:\Install\Windows.isoThe additional disk, ISO, and every snapshot-related file must be accounted for even though some are outside the main directory.
Prepare the VM for Relocation
Start VirtualBox Manager and identify the VM you will move.
Shut down the guest operating system normally. A full shutdown is different from suspending or saving the VM state.
If the VM is in a saved state, discard that saved state or start the VM and shut it down completely. A saved state contains suspended memory and device information and should not be treated as a clean shutdown for file copying.
Close the VM window and confirm that no VirtualBox process is still using the machine's files.
Check that the disks are not being modified by another backup, synchronization, or disk-management process.
Copy the Complete VM
Copy the complete VM folder to a new local folder, external drive, network share, or destination host. Preserve the directory structure, especially the Snapshots folder and any relative paths.
Copying first is safer than moving immediately because it provides a rollback copy. Delete the original only after the destination has been tested successfully.
Same-host example
Suppose the source folder is C:\VM\Windows7\ and the destination is C:\VM2\Windows7\. With the VM fully shut down, copy all contents from the source folder to the destination folder, including Windows7.vbox, virtual disks, snapshots, and logs.
Source: C:\VM\Windows7\
Destination: C:\VM2\Windows7\Transfer time depends mainly on the size of the virtual disks and the read/write performance of the source and destination storage. A large dynamically allocated disk can still contain a large file, so allow space for its actual file size and snapshot data.
Different-host example
Install a compatible or current VirtualBox release on the destination host.
Copy the complete VM directory using an external drive, network transfer, or another reliable method.
Preserve the copied folder structure rather than extracting disks into unrelated folders.
Copy separately referenced disks and media, or plan to reattach them later.
Register the Relocated VM
Copying files does not automatically make the VM appear in a separate VirtualBox installation. You must register it. Registering means adding an existing VM definition to a particular VirtualBox installation; it does not create a new empty machine.
Open VirtualBox Manager on the host where the copy now resides.
Use the manager's option to add or register an existing machine.
Select the relocated
.vboxfile, such asC:\VM2\Windows7\Windows7.vbox.Confirm that the VM appears in the manager with its expected name and settings.
Open Storage settings and verify that every attached disk and optical medium resolves to an accessible path.
If the VM is already listed because the old registration remains, do not register the same identity as an unrelated duplicate. First remove or unregister the stale entry from VirtualBox Manager without deleting the VM files, then add the definition from its new location. Be careful to choose an option that preserves the files.
Validate the Move
Start the relocated VM and confirm that the guest operating system boots normally.
Check that the expected system and data disks are present inside the guest.
Review the VM's Storage settings if VirtualBox reports inaccessible media.
Check snapshots and confirm that they are visible and usable if the VM used them.
Test networking, including the expected adapter mode and connectivity.
Test shared folders, USB devices, and guest additions where applicable.
Verify host paths, permissions, mounted ISO files, and any other host-dependent integration.
Do not remove the source files until the destination copy works as expected and important guest data has been checked.
Troubleshooting
VirtualBox says a virtual disk cannot be found
The disk may have been stored outside the copied folder, referenced by an absolute path that changed, or omitted from a snapshot chain. Locate the missing disk in the source or backup, copy it to the destination, and use Storage settings to attach the correct file.
The VM is not listed after copying
File copying alone does not register a VM. Open or add the relocated .vbox definition from VirtualBox Manager.
The VM does not start on another computer
Check 64-bit guest support, hardware virtualization, available memory, VirtualBox compatibility, and the VM's System settings. If the destination lacks the required architecture or virtualization capability, use a suitable host rather than attempting an unsupported downgrade.
Snapshot errors appear
Snapshot errors commonly result from missing differencing disks or a changed folder hierarchy. Restore the complete snapshot-related structure from the source or backup. Do not selectively copy only the base disk when snapshots are in use.
Shared folders or USB devices no longer work
The new host may use different folder paths, usernames, device identifiers, or permissions. Update Shared Folders and USB settings on the destination and confirm that the host user has permission to access the resources.
The copied VM reports a lock or state problem
The source may have been copied while running or from a saved state, or the transfer may have omitted files. Return to the intact source, perform a full shutdown, repeat the copy, and keep the original until the replacement passes startup and data checks.
Limitations and Cautions
Host-specific integrations may need reconfiguration after migration.
Network adapter names, shared-folder host paths, USB filters, permissions, and mounted ISO paths can be different on another host.
Graphics behavior can change when the destination hardware or display configuration differs.
A saved state is not equivalent to a clean shutdown for relocation.
A folder move is different from exporting and importing an appliance. OVF/OVA export is a separate portability workflow that packages virtual hardware and disks for transfer.
Avoid manually editing VM configuration files unless there is a clear recovery need and you have a backup.
Quick Checklist
Confirm destination CPU architecture, hardware virtualization, VirtualBox version, RAM, storage, and graphics suitability.
Inspect Storage settings and inventory all disks, snapshots, ISO files, and external attachments.
Perform a full guest shutdown and eliminate any saved state.
Close VirtualBox and ensure no process is holding VM files open.
Copy the complete VM folder while preserving its structure.
Copy or reattach files stored outside the main folder.
Register the relocated
.vboxfile in VirtualBox Manager.Boot the VM and test disks, snapshots, networking, shared folders, USB, and guest additions.
Keep the original until validation is complete.
For the core procedure, see the VirtualBox virtual machine move guide whenever you need to review the relocation steps.