VirtualBox: importing old VDI when installing new Operating system or to another PC

You can move VirtualBox VDI hard drive images from PC to PC or to do an operating system upgrade. Here’s how I moved a VirtualBox 4.2 VDI to VirtualBox 5:

  1. Note the important options of your VirtualBox OS instance. Such as, RAM size, number of CPU, and the like. Perhaps take a few screenshots.
  2. Install the new VirtualBox software on the new/upgraded PC
  3. Create an OS instance with the same options as your old VirtualBox OS instance–when the VirtualBox wizard asked to create the hard drive, “use an existing VDI file” and select your old VDI (it will be several to tens of GB in size).
  4. Start your VirtualBox OS instance and click the “Devices/insert guest additions CD image” to install the latest drivers.