virtualization – XP KVM stuck in "Boot from hard drive"

Just to see if it could be done (and if so, move other physical machines from XP to VM environments), I took the hard drive of a laptop out of service, captured a WIM of it and applied it to a QCOW2 disk . It can not be started. It is stuck in "Boot from hard drive …". I have already seen this link. The behavior is what I'm seeing, but the solution has suggestions that are already established for this virtual machine, and the machine started as a physical machine that I captured, not as a converted hypervisor machine.

The source unit has Windows XP. The WIM was captured on Windows using gimagex (graphical user interface for imagex). I installed wimtools on an existing Ubuntu Server 18 KVM machine ("US18"). With "US18" turned off, I added a new QCOW2 disk of 40 GB, I started it, I partitioned the disk with fdisk (partition type 7), marked the partition as active and formatted as NTFS.

used to weaken to verify the WIM (& # 39; was good). used to wimapply WinXP.wim / dev / vdb1 to apply the captured WIM to the virtual disk. That went well.

I have set the CPU count and memory at a proper count and size for the XP era. It is not configured to boot using UEFI. You are using "BIOS" and "i440FX". It is stuck in the message of "start …" holder.

I have done everything I can think of. I would prefer to migrate an existing machine instead of installing fresh XP and then move the programs and so on to the virtual machine.

I changed the "Bus type" for the virtual disk to IDE and SATA, without any effect.

Does anyone have any indicators for me?

Below are the complete steps to prepare the disk and apply WIMage.

root @ US18 <01>: ~ # ls -l / dev / disk / by-path
total 0
lrwxrwxrwx 1 root root 9 Nov 23 17:19 pci-0000: 00: 01.1-ata-1 -> ../../sr0
lrwxrwxrwx 1 root root 9 Nov 23 17:19 pci-0000: 00: 07.0 -> ../../vda
lrwxrwxrwx 1 root root 10 Nov 23 17:19 pci-0000: 00: 07.0-part1 -> ../../vda1
lrwxrwxrwx 1 root root 10 Nov 23 17:19 pci-0000: 00: 07.0-part2 -> ../../vda2
lrwxrwxrwx 1 root root 9 Nov 23 17:19 pci-0000: 00: 09.0 -> ../../vdb
lrwxrwxrwx 1 root root 9 Nov 23 17:19 virtio-pci-0000: 00: 07.0 -> ../../vda
lrwxrwxrwx 1 root root 10 Nov 23 17:19 virtio-pci-0000: 00: 07.0-part1 -> ../../vda1
lrwxrwxrwx 1 root root 10 Nov 23 17:19 virtio-pci-0000: 00: 07.0-part2 -> ../../vda2
lrwxrwxrwx 1 root root 9 Nov 23 17:19 virtio-pci-0000: 00: 09.0 -> ../../vdb

root @ US18 <02>: ~ # fdisk -l / dev / vdb
Disk / dev / vdb: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Size of the sector (logical / physical): 512 bytes / 512 bytes
I / O size (minimum / optimal): 512 bytes / 512 bytes

root @ US18 <03>: ~ # fdisk / dev / vdb

Welcome to fdisk (util-linux 2.31.1).
The changes will remain in the memory only, until you decide to write them.
Be careful before using the write command.

The device does not contain a recognized partition table.
Created a new DOS disk label with the disk identifier 0xefae0542.

Command (m for help): n
Partition type
Primary p (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):

Using the default response p.
Partition number (1-4, default 1):
First sector (2048-62914559, default 2048):
Last sector, + sectors or + size {K, M, G, T, P} (2048-62914559, default 62914559):

Created a new partition 1 of type & # 39; Linux & # 39; and size 30 GiB.

Command (m for help): t
Selected partition 1
Hexadecimal code (type L to list all codes): 7
The partition type & # 39; Linux & # 39; a & # 39; HPFS / NTFS / exFAT & # 39;

Command (m for help): a
Selected partition 1
The boot indicator in partition 1 is now enabled.

Command (m for help): p
Disk / dev / vdb: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Size of the sector (logical / physical): 512 bytes / 512 bytes
I / O size (minimum / optimal): 512 bytes / 512 bytes
Type of disc label: two
Disk identifier: 0xefae0542

Device start start size Sectors ID size Type
/ dev / vdb1 * 2048 62914559 62912512 30G 7 HPFS / NTFS / exFAT

Command (m for help): w
The partition table has been altered.
Calling ioctl () to reread the partition table.
Synchronizing discs.

root @ US18 <04>: ~ # mkfs.ntfs -f / dev / vdb1
The cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
mkntfs completed successfully. You have a good day.

root @ US18 <05>: ~ # wimapply WinXP.wim / dev / vdb1 --check
Verifying the integrity of "/root/WinXP.wim": 9 GiB of 9 GiB (100%) done
Applying image 1 ("WIM1") of "/root/WinXP.wim" to the NTFS volume "/ dev / vdb1"
Creating files: 72106 of 72106 (100%) fact
Extract data from the file: 17 GiB of 17 GiB (100%) done
Done the application of the WIM image.

root @ US18 <06>: ~ # mount / dev / vdb1 / mnt /

root @ US18 <07>: ~ # ls -lh / mnt
5.1M total
drwxrwxrwx 1 root root 0 February 12, 2013 1a065bae91d7da681f18ce
-rwxrwxrwx 1 root root 0 Feb 10 2013 AUTOEXEC.BAT
-rwxrwxrwx 1 root root 211 February 19, 2013 boot.ini
-rwxrwxrwx 1 root root 86 Feb 12 2013 chicony.log
-rwxrwxrwx 1 root root 0 February 10, 2013 CONFIG.SYS
drwxrwxrwx 1 root root 4.0K Feb 19 2013 & # 39; Documents and Settings & # 39;
...
drwxrwxrwx 1 root root 24K Nov 21 22:32 temp
drwxrwxrwx 1 root root 256K February 27, 2018 WINDOWS
-rwxrwxrwx 1 root root 956K July 6, 2011 Xtension

root @ US18 <08>: ~ # umount / mnt