Yuuki Enomoto <uki%e-yuuki.org@localhost> writes: > I'm trying to install NetBSD 9.2 to FreeBSD bhyve VM (UEFI) using install image > downloaded from https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/images/NetBSD-9.2-amd64-install.img.gz > > But it couldn't boot completely. Showing the following errors in console: > (I attached screenshot) > > wd0d: error writing fsbn 270176 of 270176-270179 (wd0 bn 270176; cn 268 tn 0 sn 32) > wd0d: error writing fsbn 264288 of 264288-264319 (wd0 bn 264288; cn 262 tn 3 sn 3), xfer 38, retry 0 > wd0: (aborted command) 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 would also suggest booting single user and trying dd in the utility menu, both reading from and writing to the virtual disk. 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. 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. > 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?
Attachment:
signature.asc
Description: PGP signature