Boot Windows 10 dump in VirtualBox?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Garfieldwxg55
Posts: 5
Joined: 13. Feb 2022, 01:48

Boot Windows 10 dump in VirtualBox?

Post by Garfieldwxg55 »

Hi, I recently downloaded VirtualBox as I had a MySQL server database on a backup of my old computer that I need to backup and transfer to my new computer. However, I'm very new to using virtual machines, so I was curious as to how I would boot the backup of my computer in the virtual machine. The backup seems to be of the main Windows(C:) drive, and include all of the system files as far as I can tell (Program Files, Windows, Users etc). So, does anyone know how I would boot this backup in VirtualBox? Any help would be greatly appreciated!
AndyCot
Posts: 300
Joined: 29. Feb 2020, 03:04

Re: Boot Windows 10 dump in VirtualBox?

Post by AndyCot »

Garfieldwxg55
Posts: 5
Joined: 13. Feb 2022, 01:48

Re: Boot Windows 10 dump in VirtualBox?

Post by Garfieldwxg55 »

Hi, I just took a look at the link, and it seems to be quite old, plus there were a few programs mentioned which I'm not sure if they've been superseded or are outdated. Will this still work on a Windows 11 machine attempting to run Windows 10, or is some of the information outdated? Many thanks
AndyCot
Posts: 300
Joined: 29. Feb 2020, 03:04

Re: Boot Windows 10 dump in VirtualBox?

Post by AndyCot »

No idea.
Garfieldwxg55
Posts: 5
Joined: 13. Feb 2022, 01:48

Re: Boot Windows 10 dump in VirtualBox?

Post by Garfieldwxg55 »

Ok thanks, all I was really looking to do was boot the backup from my files (it seemed to ask for a single .ovf file), so I'll look into it more and see if that's possible, thanks
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Boot Windows 10 dump in VirtualBox?

Post by mpack »

You don't give any information on what backup tool was used, or whether it was even a whole disk backup rather than just a backup of the C:\ partition.

If it's a whole disk backup then boot the VM from the recovery disk and restore the backup image onto the VM's virtual primary drive. The backup image can be accessed from a USB stick, from a network share or from an ISO image of an CD drive.

The "migration" FAQ is as current as it was when it was written, i.e. the guy had Linux blinkers on and thinks that DD deserves to exist. So ignore that section of the FAQ. The main points are to use the restore feature of your preferred backup restore tool to restore onto a VM drive. Make sure the VM drive is large enough for the image and choose other VM settings to approximate the original PC.

The FAQ was written with XP migration in mind. XP was from an era that didn't anticipate radical changes in motherboard hardware. Windows 10 will be much more forgiving, so you don't need to worry about the MergeIDE stuff or the other complications.

What you will need to worry about is licensing: Win10 will detect that the hardware has changed and will need to be reactivated. If the same license has already been used to install Win11 then you'll have a problem keeping both activated. You may need to purchase and install a new product key in one.
Garfieldwxg55
Posts: 5
Joined: 13. Feb 2022, 01:48

Re: Boot Windows 10 dump in VirtualBox?

Post by Garfieldwxg55 »

Thanks, I'll look into that, I assume that if it's just a backup of the C:\ partition then that can't be booted in Virtual Box? You see, sadly I wasn't the one to make the backup, the person who upgraded my computer did, so I have no idea how the backup was made. I'll assume that the backup is of the whole disk for now and try to boot the VM from the recovery disk. But, as I'm very new to this, I was just wondering what options I'll have to choose to boot my recovery disk in the VM. Thanks for the much appreciated help :D
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Boot Windows 10 dump in VirtualBox?

Post by mpack »

If it isn't a whole disk backup then it doesn't have boot sectors or a boot manager partition, so it can't easily be booted. If you had enough expertise you might be able to create a new bootable Win10 drive and then just overwrite the contents of the C: volume.

The recovery disk needs to be on a CD or DVD, or an ISO of same. In an ideal world the backup would be done using something good like Macrium Reflect, and not something awful like WinDD or Windows Backup. Macrium makes it very easy to create recovery disks and it also caters for differences between original and new PCs. It also lets you mount backup images as virtual disks on your new host, so if all you wanted was easy access to old files then you wouldn't even need to restore the image anywhere. Hopefully whatever backup tool was used offers similar options.

Also, you could tell us something about the backup image, e.g. the file extension (of the largest file if there's more than one). That might tell us what the backup tool was.
Garfieldwxg55
Posts: 5
Joined: 13. Feb 2022, 01:48

Re: Boot Windows 10 dump in VirtualBox?

Post by Garfieldwxg55 »

Looking at the backup, the largest file seems to be a file called "Image.bin", everything else just seems do be the normal contents of a regular C: drive with Windows installed. In hind site I would have done the backup myself (or just backed up the MySQL server). Also, does the recovery disk need to be an optical disk, or can it be on a HDD? Thanks again :)
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Boot Windows 10 dump in VirtualBox?

Post by mpack »

Garfieldwxg55 wrote:Looking at the backup, the largest file seems to be a file called "Image.bin"
Well, that's very generic and could be anything, I can't imagine a dedicated tool choosing that so it's probably just a raw WinDD dump and a filename chosen by a human. You could confirm by looking at the first few sectors with a hex editor. A raw disk dump will have a first 512 byte sector ending in "55 AA", some recognizable error strings e.g. "Invalid partition" (see picture) and a file size equal to the old PC drive size. If the file size is considerable less than that then either it's just a partition dump and so nearly useless, or it's compressed and you'll need the original backup.

If you didn't create the backup can you not at least speak to the guy who did? Seriously, having a backup that you don't know how to restore doesn't sound like the best possible backup strategy.
Garfieldwxg55 wrote:Also, does the recovery disk need to be an optical disk, or can it be on a HDD?
[BUT SEE NOTE BELOW] It has to be something you can boot the VM from, and you'll be overwriting the VM's HDD. So yes, it has to be a bootable ISO, i.e. an image of a bootable CD.

NOTE: if it turns out to be a raw disk image then you can convert it directly into a VDI using VBoxManage. But note, that it must be raw (no header, no compression) and it must be a whole disk image or the result will be garbage.

Image below show hex dump of a first disk image sector. The tool is used is not important: other hex viewers will show the same.
Attachments
Capture.PNG
Capture.PNG (178.17 KiB) Viewed 1432 times
Post Reply