On Sun, Apr 17, 2022 at 07:43:00AM -0400, Greg Troxel wrote: > I would look at the bhyve logs, and see if you can turn on debugging. > It looks like the within-VM system (domU in xen terms) is accessing the > disk, but the hypervisor is seeing the accesses as malformed or > erroneous. I'm using vm-bhyve. I've turn on debugging but no logs in debug log. > I would also suggest booting single user and trying dd in the utility > menu, both reading from and writing to the virtual disk. I did zero writing to the disk after exit from installer. Result: # dd if=/dev/zero of=/dev/ld0 bs=1M count=1 dd: /dev/ld0: end of device 1+0 records in 0+0 records out 0 bytes transferred in 0.001 secs (0 bytes/sec) > Also, look at how the disk attaches, in dmesg. Often there are pciide > controllers, and ahcisata, or various other kinds, and it may be that > bhyve provides multiple options and some work and some don't and > disabling the non-working one would be a workaround. I attach full dmesg image. I'm investigating about vm-bhyve disk option... > It seems overwhelmingly likely that there is a bug in NetBSD or bhyve, > but really hard to say which. I suspect the bhyve people would be > interested in looking into this and would suggest asking there, but if > you can get a well-documented and more minimal failure case, I bet that > would help greatly. OK, I'd ask a question to bhyve relation mailing list. > > In addition, the following image boot fine. So it may install image > > specific issue. > > > > - FreeBSD-13.0-RELEASE-amd64-memstick.img (from FreeBSD official) > > - NetBSD-9.2-amd64.iso (from https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/images/) > > But after you boot the 9.2 iso, can you read/write to the disk? No. I tried to proceed installation through the ISO but `gpt create` command failed when disk partitioning. I entered to shell then run gpt manually: # gpt create -p 128 ld0 gpt: /dev/rld0: Media size can't be 0 -- Yuuki Enomoto <uki%e-yuuki.org@localhost> B684 4BF2 9CD4 961F 510A 8121 7B4D FF44 2348 20B8
Attachment:
dmesg-001.png
Description: PNG image
Attachment:
dmesg-002.png
Description: PNG image
Attachment:
dmesg-003.png
Description: PNG image
Attachment:
signature.asc
Description: PGP signature