Some time ago Alexander Bluhm replied to my bug report giving me one
useful hint, thanks!

I've finally been able to work a bit more on this.

As you no doubt know the installer wants to configure an interface
before it gets around to doing any sets unpacking, so I was just trying
to use it that way.  I had not considered ignoring this step.

I am installing from the ".img" file, so I've skipped configuring an
interface (by replying "done" immediately), and proceeded to do a full
install to my VM with no further real issues (other than the firmware
update failing of course because there's no network).

Unfortunately the resulting install will not boot.  It tries and
immediately fails:

        Booting from Hard Disk...
        Boot failed: not a bootable disk

At the end of the message is the full Xen output from the dom0 console
log.

This was using the default "(W)hole disk MBR" choice.

On a whim I tried the whole disk GPT option, ignoring the warning that
it might not boot, but it was right -- it did not boot either.

I've tried both with the 7.9 release and with today's snapshot.

If I examine a copy of the first 100MB of the install disk (under the
dom0 NetBSD), I find:


$ file /images/obsd.lvm
/images/obsd.lvm: DOS/MBR boot sector; partition 4 : ID=0xa6, active, start-CHS 
(0x0,1,2), end-CHS (0x3ff,254,63), startsector 64, 83886016 sectors

$ fdisk /images/obsd.lvm
Disk: /images/obsd.lvm
NetBSD disklabel disk geometry:
cylinders: 12, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 204800, bytes/sector: 512

BIOS disk geometry:
cylinders: 12, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 204800

Partitions aligned to 16065 sector boundaries, offset 63

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: OpenBSD (sysid 166)
    start 64, size 83886016 (40960 MB, Cyls 0/1/2-5221/170/5), Active
First active partition: 3
Drive serial number: 0 (0x00000000)


Since I can boot the installer ".img" file just fine I don't understand
what I must be missing here.

I've tried re-installing the MBR boot sector and also re-running
"installboot" (by booting from the installer ".img" and then manually
mounting the VM's filesystems), but this has changed nothing.

Other people have reported doing very similar things to install OpenBSD
in a Xen VM with full success, so I must be missing something.


For reference here's what that one looks like with the NetBSD tools.
It's different in some ways of course, but they both have a DOS/MBR boot
sector and an active partition.

$ file /images/OpenBSD-install80-snap20260930.img
/images/OpenBSD-install80-snap20260930.img: DOS/MBR boot sector; partition 1 : 
ID=0xef, start-CHS (0x1,0,1), end-CHS (0x3ff,254,63), startsector 64, 960 
sectors; partition 4 : ID=0xa6, active, start-CHS (0x10,0,1), end-CHS 
(0x3ff,254,63), startsector 1024, 1637376 sectors

$ fdisk /images/OpenBSD-install80-snap20260930.img
Disk: /images/OpenBSD-install80-snap20260930.img
NetBSD disklabel disk geometry:
cylinders: 102, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 1639360, bytes/sector: 512

BIOS disk geometry:
cylinders: 102, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 1639360

Partitions aligned to 16065 sector boundaries, offset 63

Partition table:
0: EFI system partition (sysid 239)
    start 64, size 960 (0 MB, Cyls 0/1/2-0/16/16)
1: <UNUSED>
2: <UNUSED>
3: OpenBSD (sysid 166)
    start 1024, size 1637376 (800 MB, Cyls 0/16/17-101/251/22), Active
First active partition: 3
Drive serial number: 0 (0x00000000)


--
                                        Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>


(d67) [2026-09-30 22:54:00.732] HVM Loader
(d67) [2026-09-30 22:54:00.732] Detected Xen v4.13.4nb0
(d67) [2026-09-30 22:54:00.732] Xenbus rings @0xfeffc000, event channel 1
(d67) [2026-09-30 22:54:00.732] System requested SeaBIOS
(d67) [2026-09-30 22:54:00.732] CPU speed is 2826 MHz
(d67) [2026-09-30 22:54:00.733] Relocating guest memory for lowmem MMIO space 
disabled
(d67) [2026-09-30 22:54:00.738] PCI-ISA link 0 routed to IRQ5
(d67) [2026-09-30 22:54:00.744] PCI-ISA link 1 routed to IRQ10
(d67) [2026-09-30 22:54:00.749] PCI-ISA link 2 routed to IRQ11
(d67) [2026-09-30 22:54:00.754] PCI-ISA link 3 routed to IRQ5
(d67) [2026-09-30 22:54:00.780] pci dev 01:3 INTA->IRQ10
(d67) [2026-09-30 22:54:00.782] pci dev 02:0 INTA->IRQ11
(d67) [2026-09-30 22:54:00.787] pci dev 04:0 INTA->IRQ5
(d67) [2026-09-30 22:54:00.807] No RAM in high memory; setting high_mem 
resource base to 100000000
(d67) [2026-09-30 22:54:00.807] pci dev 03:0 bar 10 size 002000000: 0f0000008
(d67) [2026-09-30 22:54:00.807] pci dev 02:0 bar 14 size 001000000: 0f2000008
(d67) [2026-09-30 22:54:00.807] pci dev 04:0 bar 30 size 000040000: 0f3000000
(d67) [2026-09-30 22:54:00.808] pci dev 04:0 bar 10 size 000020000: 0f3040000
(d67) [2026-09-30 22:54:00.808] pci dev 03:0 bar 30 size 000010000: 0f3060000
(d67) [2026-09-30 22:54:00.808] pci dev 03:0 bar 14 size 000001000: 0f3070000
(d67) [2026-09-30 22:54:00.808] pci dev 02:0 bar 10 size 000000100: 00000c001
(d67) [2026-09-30 22:54:00.809] pci dev 04:0 bar 14 size 000000040: 00000c101
(d67) [2026-09-30 22:54:00.809] pci dev 01:1 bar 20 size 000000010: 00000c141
(d67) [2026-09-30 22:54:00.813] Multiprocessor initialisation:
(d67) [2026-09-30 22:54:00.813]  - CPU0 ... 38-bit phys ... fixed MTRRs ... var 
MTRRs [1/8] ... done.
(d67) [2026-09-30 22:54:00.813]  - CPU1 ... 38-bit phys ... fixed MTRRs ... var 
MTRRs [1/8] ... done.
(d67) [2026-09-30 22:54:00.813] Writing SMBIOS tables ...
(d67) [2026-09-30 22:54:00.815] Loading SeaBIOS ...
(d67) [2026-09-30 22:54:00.815] Creating MP tables ...
(d67) [2026-09-30 22:54:00.815] Loading ACPI ...
(d67) [2026-09-30 22:54:00.817] vm86 TSS at fc100280
(d67) [2026-09-30 22:54:00.817] BIOS map:
(d67) [2026-09-30 22:54:00.817]  10000-100e3: Scratch space
(d67) [2026-09-30 22:54:00.817]  c0000-fffff: Main BIOS
(d67) [2026-09-30 22:54:00.817] E820 table:
(d67) [2026-09-30 22:54:00.817]  [00]: 00000000:00000000 - 00000000:000a0000: 
RAM
(d67) [2026-09-30 22:54:00.817]  HOLE: 00000000:000a0000 - 00000000:000c0000
(d67) [2026-09-30 22:54:00.817]  [01]: 00000000:000c0000 - 00000000:00100000: 
RESERVED
(d67) [2026-09-30 22:54:00.818]  [02]: 00000000:00100000 - 00000000:3e000000: 
RAM
(d67) [2026-09-30 22:54:00.818]  HOLE: 00000000:3e000000 - 00000000:fc000000
(d67) [2026-09-30 22:54:00.818]  [03]: 00000000:fc000000 - 00000000:fc00b000: 
NVS
(d67) [2026-09-30 22:54:00.818]  [04]: 00000000:fc00b000 - 00000001:00000000: 
RESERVED
(d67) [2026-09-30 22:54:00.818] Invoking SeaBIOS ...
(d67) [2026-09-30 22:54:00.818] SeaBIOS (version rel-1.12.1-Xen)
(d67) [2026-09-30 22:54:00.818] BUILD: gcc: (nb1 20200907) 9.3.0 binutils: 
(NetBSD Binutils nb1) 2.34
(d67) [2026-09-30 22:54:00.818]
(d67) [2026-09-30 22:54:00.819] Found Xen hypervisor signature at 40000000
(d67) [2026-09-30 22:54:00.819] Running on QEMU (i440fx)
(d67) [2026-09-30 22:54:00.819] xen: copy e820...
(d67) [2026-09-30 22:54:00.819] Relocating init from 0x000d8780 to 0x3dfad580 
(size 76256)
(d67) [2026-09-30 22:54:00.822] Found 7 PCI devices (max PCI bus is 00)
(d67) [2026-09-30 22:54:00.822] Allocated Xen hypercall page at 3dfff000
(d67) [2026-09-30 22:54:00.822] Detected Xen v4.13.4nb0
(d67) [2026-09-30 22:54:00.822] xen: copy BIOS tables...
(d67) [2026-09-30 22:54:00.822] Copying SMBIOS entry point from 0x00010020 to 
0x000f5c00
(d67) [2026-09-30 22:54:00.822] Copying MPTABLE from 0xfc100180/fc100190 to 
0x000f5b00
(d67) [2026-09-30 22:54:00.822] Copying PIR from 0x00010040 to 0x000f5a80
(d67) [2026-09-30 22:54:00.823] Copying ACPI RSDP from 0x000100c0 to 0x000f5a50
(d67) [2026-09-30 22:54:00.823] Using pmtimer, ioport 0xb008
(d67) [2026-09-30 22:54:00.823] Scan for VGA option rom
(d67) [2026-09-30 22:54:00.832] Running option rom at c000:0003
(d67) [2026-09-30 22:54:00.837] pmm call arg1=0
(d67) [2026-09-30 22:54:00.838] Turning on vga text mode console
(d67) [2026-09-30 22:54:00.898] SeaBIOS (version rel-1.12.1-Xen)
(d67) [2026-09-30 22:54:00.909] Machine UUID 
4ba0467a-574f-426c-8b73-3a5d82b5285e
(d67) [2026-09-30 22:54:00.910] ATA controller 1 at 1f0/3f4/c140 (irq 14 dev 9)
(d67) [2026-09-30 22:54:00.911] ATA controller 2 at 170/374/c148 (irq 15 dev 9)
(d67) [2026-09-30 22:54:00.912] Found 0 lpt ports
(d67) [2026-09-30 22:54:00.912] Found 1 serial ports
(d67) [2026-09-30 22:54:00.915] ata0-0: QEMU HARDDISK ATA-7 Hard-Disk (40960 
MiBytes)
(d67) [2026-09-30 22:54:00.915] Searching bootorder for: 
/pci@i0cf8/*@1,1/drive@0/disk@0
(d67) [2026-09-30 22:54:00.916] PS2 keyboard initialized
(d67) [2026-09-30 22:54:00.917] ata1-0: QEMU HARDDISK ATA-7 Hard-Disk (800 
MiBytes)
(d67) [2026-09-30 22:54:00.917] Searching bootorder for: 
/pci@i0cf8/*@1,1/drive@1/disk@0
(d67) [2026-09-30 22:54:00.918] All threads complete.
(d67) [2026-09-30 22:54:00.918] Scan for option roms
(d67) [2026-09-30 22:54:00.933] Running option rom at c980:0003
(d67) [2026-09-30 22:54:00.940] pmm call arg1=1
(d67) [2026-09-30 22:54:00.940] pmm call arg1=0
(d67) [2026-09-30 22:54:00.942] pmm call arg1=1
(d67) [2026-09-30 22:54:00.942] pmm call arg1=0
(d67) [2026-09-30 22:54:00.960] Searching bootorder for: /pci@i0cf8/*@4
(d67) [2026-09-30 22:54:00.960]
(d67) [2026-09-30 22:54:00.965] Press ESC for boot menu.
(d67) [2026-09-30 22:54:00.965]
(d67) [2026-09-30 22:54:02.685] Select boot device:
(d67) [2026-09-30 22:54:02.686]
(d67) [2026-09-30 22:54:02.697] 1. ata0-0: QEMU HARDDISK ATA-7 Hard-Disk (40960 
MiBytes)
(d67) [2026-09-30 22:54:02.709] 2. ata1-0: QEMU HARDDISK ATA-7 Hard-Disk (800 
MiBytes)
(d67) [2026-09-30 22:54:02.714] 3. iPXE (PCI 00:04.0)
(d67) [2026-09-30 22:54:05.650]
(d67) [2026-09-30 22:54:05.650] Searching bootorder for: HALT
(d67) [2026-09-30 22:54:05.650] drive 0x000f59e0: PCHS=16383/16/63 
translation=lba LCHS=1024/255/63 s=83886080
(d67) [2026-09-30 22:54:05.651] drive 0x000f59b0: PCHS=1626/16/63 
translation=large LCHS=813/32/63 s=1639360
(d67) [2026-09-30 22:54:05.651] Space available for UMB: ca800-ea000, 
f5420-f59b0
(d67) [2026-09-30 22:54:05.651] Returned 258048 bytes of ZoneHigh
(d67) [2026-09-30 22:54:05.651] e820 map has 7 items:
(d67) [2026-09-30 22:54:05.651]   0: 0000000000000000 - 000000000009fc00 = 1 RAM
(d67) [2026-09-30 22:54:05.651]   1: 000000000009fc00 - 00000000000a0000 = 2 
RESERVED
(d67) [2026-09-30 22:54:05.651]   2: 00000000000f0000 - 0000000000100000 = 2 
RESERVED
(d67) [2026-09-30 22:54:05.651]   3: 0000000000100000 - 000000003dfff000 = 1 RAM
(d67) [2026-09-30 22:54:05.651]   4: 000000003dfff000 - 000000003e000000 = 2 
RESERVED
(d67) [2026-09-30 22:54:05.651]   5: 00000000fc000000 - 00000000fc00b000 = 4 NVS
(d67) [2026-09-30 22:54:05.651]   6: 00000000fc00b000 - 0000000100000000 = 2 
RESERVED
(d67) [2026-09-30 22:54:05.653] enter handle_19:
(d67) [2026-09-30 22:54:05.653]   NULL
(d67) [2026-09-30 22:54:05.659] Booting from Hard Disk...
(d67) [2026-09-30 22:54:05.668] Boot failed: not a bootable disk
(d67) [2026-09-30 22:54:05.669]
(d67) [2026-09-30 22:54:05.669] enter handle_18:
(d67) [2026-09-30 22:54:05.669]   NULL
(d67) [2026-09-30 22:54:05.674] Booting from ROM...
(d67) [2026-09-30 22:54:05.674] Booting from c980:0385
(d67) [2026-09-30 22:54:17.300] enter handle_18:
(d67) [2026-09-30 22:54:17.300]   NULL
(d67) [2026-09-30 22:54:17.305] Booting from Floppy...
(d67) [2026-09-30 22:54:17.463] Boot failed: could not read the boot disk
(d67) [2026-09-30 22:54:17.609]
(d67) [2026-09-30 22:54:17.767] enter handle_18:
(d67) [2026-09-30 22:54:17.767]   NULL
(d67) [2026-09-30 22:54:17.778] No bootable device.  Retrying in 60 seconds.
(d67) [2026-09-30 22:55:18.003] Rebooting.
(d67) [2026-09-30 22:55:18.161] In resume (status=0)
(d67) [2026-09-30 22:55:18.161] In 32bit resume
(d67) [2026-09-30 22:55:18.161] Attempting a hard reboot
[ 51330094.9292515] xbd backend: detach device vg0-puffer.0 for domain 67
[ 51330094.9362506] xbd backend: detach device vnd1d for domain 67
[ 51330094.9592528] xvif67i0: disconnecting
[ 51330094.9662528] tap0: detached

Attachment: pgpaz03jz65na.pgp
Description: OpenPGP Digital Signature

Reply via email to