Linux Format

Answers

Neil Bothwick believes he

was a supercomputer in a former life.

Q Going virtual

I have a WinXP SP3 installation with all the updates on a hard disk from a PC that has broken down. Is it possible somehow to import that installation into a virtual machine on VirtualBox?

Of course, I could reinstall WinXP and SP3 in a virtual machine, but the above solution would benefit from having all updates (and settings) in place.

Jørn Pedersen

A It is possible to boot a virtual machine from a real hard drive. VirtualBox expects to find virtual disks in VMDK or VDI files, so you have to create a special one of these to point to the real hard disk. Assuming the Windows disk is connected as /dev/sdb, run this command: $ VBoxManage createmedium disk --filename /path/to/winxp.vmdk --format=VMDK --variant RawDisk --property RawDrive=/dev/sdb

The --filename option gives the name of the VMDK file to be created – this must be an absolute path. Then add this disk to your list of virtual disks from the Media submenu of the Tools button in the left pane of VirtualBox. Now you can create a WinXP virtual machine in VirtualBox using this ‘virtual disk’. It should work whether the XP disk is internally connected to a SATA port on your computer’s motherboard or put into an enclosure and plugged in externally via USB or eSATA.

You should be able to boot, but there are some potential issues. First, Windows will see that the drive isnetwork card is based on generic kit.

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format5 min read
Tips For Managing Docker Containers
Everyone knows how containers revolutionised application building and deployment. Using a E disposable stack of containers that make up an app that aren’t using the docker-compose command to manage the stack are missing a trick. It allows the shippin
Linux Format1 min read
Installation Complications
The Linux Mint system package for Timewarrior was out of date, so we installed the latest version from Snap. The Hamster package in the distribution repository was the latest stable release (which is quite old), but we could also have installed via F
Linux Format3 min read
Drauger OS 7.6
We love the idea of a gaming-specific version of Linux, but Drauger fails to deliver. Given the setup/kernel issues, you’re far better off installing Ubuntu, then adding gamingspecific packages yourself. CPU: 1.8GHz (2GHz suggested) Mem: 1GB (6GB sug

Related Books & Audiobooks