I've been successfully running Windows XP from another hard drive in my machine using VirtualBox.
Anyway, a friend of mine wants to use his install of Windows XP in his new computer (which doesn't work with XP).
It's a laptop and he has one single hard drive (1 TB).
I formatted it, installed Fedora 26 (one of the linux distros I'm familiar with)
and I cloned the old 80 GB PATA Disk to unallocated space of the new hard drive using EASEUS Partition Master.
So, now I have:
/dev/sda1 EFI Linux boot
/dev/sda2 Ext4 boot
/dev/sda3 LVM2
/dev/sda4 NTFS Windows XP (Clone)
/dev/sda5 Ext4 Data
I logged as root and I used the following command to make a vmdk to use in VirtualBox:
Code: Select all
VBoxManage internalcommands createrawvmdk -filename /root/WinXP.vmdk -rawdisk /dev/sda -partitions 4 -relativeI can open and import as IDE disk the very first one (probably the second one it's just a file containing metadata that specify which partition to use).
Anyway, once I try to boot in VirtualBox, it says that there isn't any bootable partition.
Googling, I found out that it may be related to MBR, so I tried with:
Code: Select all
dd if=/dev/sda of=Fedora.mbr bs=512 count=1Code: Select all
VBoxManage internalcommands createrawvmdk -filename /root/WinXP.vmdk -rawdisk /dev/sda -partitions 4 -mbr ./Fedora.mbr -relative
So... what now? It's not mandatory to boot Windows XP as rawdisk, I can convert it to a virtual machine file and my friend wouldn't mind (I think...).
Any suggestions?
Thank you in advance.