Hello, I installed 13.2-RELEASE on virtualbox with the following disk configuration:
ada0: 64M disk, GPT partitioned:
ada1: 8GB disk assigned to ZFS:
I have installed the bootcode with
The system fails to boot automatically, with the following messages:
If at the boot prompt I enter
I have also tried creating a GPT on ada1 and creating the zroot pool on a 'freebsd-zfs' partition, same issue. Another, older system, upgraded to 13.2-RELEASE, where /boot is on a 'freebsd-zfs' partition on the same disk as the bootcode, boots without issue.
ada0: 64M disk, GPT partitioned:
Code:
# gpart show
=> 40 130992 ada0 GPT (64M)
40 1024 1 freebsd-boot (512K)
1064 129968 - free - (63M)
ada1: 8GB disk assigned to ZFS:
Code:
# zpool status
pool: zroot
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
ada1 ONLINE 0 0 0
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
zroot 1.51G 5.76G 96K none
zroot/ROOT 1.51G 5.76G 96K none
zroot/ROOT/current 1.51G 5.76G 1.51G /
# zpool get bootfs zroot
NAME PROPERTY VALUE SOURCE
zroot bootfs zroot/ROOT/current local
I have installed the bootcode with
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
.The system fails to boot automatically, with the following messages:
Code:
BIOS drive C: is disk0
BIOS drive D: is disk1
Can't find boot/zfsloader
Can't find /boot/loader
Can't find /boot/kernel/kernel
FreeBSD/x86 boot
Default: disk-1:/boot/kernel/kernel
boot:
Can't find /boot/kernel/kernel
FreeBSD/x86 boot
Default: disk-1:/boot/kernel/kernel
boot:
If at the boot prompt I enter
zfs:zroot/ROOT/current:/boot/zfsloader
, the system boots normally. According to gptzfsboot(8), the bootcode should be able to find the pool in the second disk and boot from it. Am I missing some necessary configuration for this to work? I have also tried creating a GPT on ada1 and creating the zroot pool on a 'freebsd-zfs' partition, same issue. Another, older system, upgraded to 13.2-RELEASE, where /boot is on a 'freebsd-zfs' partition on the same disk as the bootcode, boots without issue.