Home » Computer Guides » Virtual Computer Guides » How To Import VHD File Into VirtualBox

How To Import VHD File Into VirtualBox

How to import (attach) a VHD file into VirtualBox to use as a virtual machine.

A VHD file (Virtual Hard Disk) is a disk image file format that acts like a physical hard drive. It can contain everything found on a real hard drive, including disk partitions, operating system and a file system (like NTFS or FAT), files, and folders.

If you’re trying to virtualise an older PC using VirtualBox, then this is for you.

Setup VHD Image In VirtualBox

To get started you’ll need to have VirtualBox and its accompanying Extension Pack (Guest Additions) installed on your host computer. How To Install VirtualBox On A Windows PC.

To use a VHD file open VirtualBox and click the New button to setup a new VM.

Add a name for the virtual machine in the Name field. The Folder field is going to be the location that the new virtual machine will be stored. You can change that if you wish by using the drop down arrow and selecting a different folder.

Make sure the ISO Image field is set to Not Selected. The rest of the options can be left as is. Click Next.

VirtualBox home screen. The New button is being clicked.
To import (attach) a VHD file, click the New button.
A name has been entered for the attached VHD image. All other settings are left at default.
Enter a name for the VM and click Next.

Note

If you’re VHD file is still on an external drive (USB drive), then copy and paste it to the host computer before you begin attaching it.

While it is possible to attach an image file from an external drive, it’ll be extremely slow. So copy it over onto the host PC before you begin.

For the hardware settings, try to match those of the VHD file.

Use the slider to adjust both the amount of RAM and CPUs.

Select Enable EFI if the VHD file is from a Windows 10 or Windows 11 PC then click Next

RAM and CPU settings in VirtualBox.
Adjust the amount of RAM and number of CPUs. Enable EFI for Windows 10 and Windows 11 VHDs.

Selecting EFI

For most Windows 10 and Windows 11 VHD images, you’ll have to use EFI. However that’s a generality that may not be true for you.

Some older computers running Windows 10 may not have had EFI enabled.

Attaching The VHD File To VirtualBox

The next screen is the Virtual hard Disk screen.

  1. To attach a VHD image to VirtualBox select Use An Existing Virtual Hard Disk File. Then click the browse button.
  2. Click the Add button in the top left corner of the next screen.
  3. Navigate to and select your VHD file.
  4. Finally click the Choose button.
Use an existing VHD file is selected.
Select “Use a existing virtual hard disk file”. Then browse for the file.
Adding a VHD image to VirtualBox.
Click Add.
VHD image selected.
Select your VHD image file.
Choose button marked.
Click the Choose button.
  1. With the VHD image selected, click Next.
  2. On the VirtualBox summary screen, check your settings and click Finish.
  3. The attached VHD image will appear as a virtual machine. To run it (boot it up), select it in the left hand panel and then click the Start button.
  4. After several restarts and reboots you eventually have a working virtual machine.
VHD file location
The VHD file is loaded and you’re all set to import it to VirtualBox. Click Next.
Summary screen. Finish button is indicated.
Summary. Click Finish.
Start button highlighted in VirtualBox.
Click the Start button to boot up your imported VHD file.
VM running in VirtualBox.
And after much ado you should arrive at your old desktop.

It Can Take Some Time To Import The VHD File To VirtualBox

During the first boot you’ll see the VM restart several times. You might also see a few error messages appear. This is normal. Be patient and let VirtualBox get on with the job in hand.

Install VirtualBox Guest Additions

Now that you’ve successfully imported the VHD file into VirtualBox you’ll need to instal the Guest Additions (Expansion Pack).

The Guest Additions is a set of virtual drivers for your new virtual PC.

  1. On the VirtualBox toolbar click Devices then click Insert Guest Additions CD Image.
  2. Double left click on the virtual CD drive to launch the Guest Additions installer.
  3. Then simply follow the onscreen prompts.
Installing Guest Additions onto VBox VM.
Click Devices and then Insert Guest Additions CD Image.
Virtual CD drive
Open File Explorer and run the Guest Additions virtual drive.
Guest Additions setup.
Follow the on screen prompts.

Summary.

Hopefully that’ll all just work for you and you’ll have successfully imported your VHD file into VirtualBox. Every setup is different so there aren’t any guarantees, but following these guides is a good start.

Related Posts

Convert An Old Windows 10 PC Into A Virtual Machine
Create a VHD image file from an old Windows 10 PC to run as a virtual computer.

How To Import VHDX File Into Microsoft Hyper V
If you find VirtualBox isn’t working out for you, then try Hyper V. You’ll need to have a Pro version of Windows, but other than that it’s free.

Scroll to Top