bhyve Run alpine linux with UEFI and ZFS / Error 6126

Versions
FreeBSD: 12.2-RELEASE-p12 FreeBSD 12.2-RELEASE-p12
alpine-virt-3.16.2-x86_64.iso

Problem
At the moment I try to run Alpine linux with bhyve.
  1. First I created a zfs volume
    sudo zfs create -V10G -o volmode=dev zroot/alpinevm

  2. Then I started a vm with bhyve
    sudo bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \-s 2:0,virtio-net,tap0 -s3:0,virtio-blk,/dev/zvol/zroot/alpinevm \
    -s 4:0,ahci-cd,./alpine-virt-3.16.2-x86_64.iso -c 4 -m 1024M \
    -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CSM.fd \
    -l com1,/dev/nmdm0A \
    guest3


  3. Now I can see a error message
    Code:
    Error    6126 -  Input file does not appear to be an ASL or data table source file

  4. If I try to connect to the console of the guest. I can connect, but then the console is freezing
    Code:
    sudo cu -l /dev/nmdm0BPassword:
    Stale lock on nmdm0B PID=3678... overriding.
    Connected
Do you know what here the problem could be?

Thank you!
 
Solution
I did a bad mistake.
I have accidentally used the legacy boot option...
Below you can find the right bhyve parameter. I had to change the bootrom line.
  1. First I created a zfs volume
    sudo zfs create -V10G -o volmode=dev zroot/alpinevm

  2. Then I started a vm with bhyve
    sudo bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \-s 2:0,virtio-net,tap0 -s3:0,virtio-blk,/dev/zvol/zroot/alpinevm \
    -s 4:0,ahci-cd,./alpine-virt-3.16.2-x86_64.iso -c 4 -m 1024M \
    -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
    -l com1,/dev/nmdm0A \
    guest3


  3. Now I can this output
    Code:
    Error    6126 -  Input file does not appear to be an ASL or data table source file
    wrmsr to register 0xc0011029(0x3) on vcpu 0
    rdmsr to register 0xc00000e9 on vcpu 0
    rdmsr to register 0x48 on vcpu 0
    rdmsr to register 0x122 on vcpu 0
    rdmsr to register 0x10f on vcpu 0
    rdmsr to register 0x123 on vcpu 0

  4. Connect to the guest system with:
    Code:
    sudo cu -l /dev/nmdm0BPassword:
    Stale lock on nmdm0B PID=2172... overriding.
    Connected
    
    Welcome to Alpine Linux 3.16
    Kernel 5.15.75-0-virt on an x86_64 (/dev/ttyS0)
    
    dockerhost login:

  5. Now do the installation process with: setup-alpine

  6. Reboot

  7. Destroy vm
    sudo bhyvectl --destroy --vm=guest2

  8. Start again without the iso
    sudo bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \-s 2:0,virtio-net,tap0 -s3:0,virtio-blk,/dev/zvol/zroot/alpinevm \
    -c 4 -m 1024M \
    -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
    -l com1,/dev/nmdm0A \
    guest2


So I do not know whats the reason for Error: 6126, but it seems that we could ignore, because the vm is running fine?
Thank you!
 
Back
Top