Hello, I’m trying to install Haiku on a partition on a 64-bit EUFI machine and run it within qemu-kvm. I’ve set the partition type to 42465331-3BA3-10F1-802A-4861696B7521 and performed the build, apparently without errors.
The build host is Gentoo. The partition is /dev/sda3 and (obviously) has ownership and permissions which allow me to write to it.
The qemu command is:
qemu-system-x86_64 -m 512M -cpu host -enable-kvm -nodefaults -smp 1,cores=1 -vga std -net nic -net user -device virtio-scsi-pci,id=scsi -drive file=/dev/sda3,format=raw,media=disk
The error is that the Haiku boot loader can’t find and boot volumes. I’ve also tried to install by running:
qemu-system-x86_64 -m 512M -cpu host -boot order=d -enable-kvm -nodefaults -smp 1,cores=1 -vga std -net nic -net user -drive if=virtio,id=disk.0,file=haiku-qemu.image,format=raw,media=cdrom,index=1 -device virtio-scsi-pci,id=scsi -drive if=virtio,file=/dev/sda3,format=raw,media=disk,index=0
which boots from the created CD-ROM image and allows me to perform an installation to the HDD, again apparently without any warning messages or complaints.
So why is it that I can never boot from the hard disk image/partition?
Is it because the built Haiku system is 32-bit? In which case, why doesn’t the CD build fail?
The boot loader log ends with:
...
add_partitions_for(0x001058f8, mountFS = yes)
add_partitions_for(fd = 2, mountFS = yes)
0x00106088 Partition::Partition
0x00106088 Partition::Scan()
check for partitioning_system: GUID Partition MaScan()
check for partitioning_system: Intel Partition MaScan()
priority: 500
check for partitioning_system: Intel Extended Partition
0x00106088 Partition::_Mount check for file_system: BFS Filesystem
PackageVolumeInfo::SetTo()
PackageVolumeInfo::_InitState(): failed to parse activated-packages: No such file or directory
PackageVolumeInfo::SetTo(): failed to open administrative directory: No such file or directory
../../source/src/system/boot/loader/file_systems/packagefs/packagefs.cpp: 846: Bad data
PackageVolumeInfo::SetTo()
PackageVolumeInfo::_InitState(): failed to parse activated-packages: No such file or directory
PackageVolumeInfo::SetTo(): failed to open administrative directory: No such file or directory
../../source/src/system/boot/loader/file_systems/packagefs/packagefs.cpp: 846: Bad data
If I qemu boot with the CD-ROM image, I can mount and explore the HDD partition. But I can’t boot from it. Why not?