bhyve-webadmin icon indicating copy to clipboard operation
bhyve-webadmin copied to clipboard

`Bug`: Missing `ARM64` (`AARCH64`) support

Open gyptazy opened this issue 1 year ago • 8 comments

General

Currently the shipped binaries of vmm are only for amd64 (x86_64) based systems:

% file vmm 
vmm: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.2, FreeBSD-style, stripped

This means, that the current state of the project lacks a support of ARM64 (AARCH64) based hardware systems (e.g. Raspberry but also Apple Silicon based ones).

Task

  • Prep tasks for bhyvearm64

gyptazy avatar Jan 10 '24 10:01 gyptazy

Apple is partly supported by the framework, I see no problem with raspberry-pi. So.. ARM64, AARCH64 is possible. Allow me some time to check these.

DaVieS007 avatar Feb 18 '24 00:02 DaVieS007

Apple is partly supported by the framework, I see no problem with raspberry-pi. So.. ARM64, AARCH64 is possible. Allow me some time to check these.

I just encountered this when playing around with bhyve on a FreeBSD 14 machine on aarch64. However, the current delivered bins (front-, backend, api, helper) are only for x86_64.

Example:

% file vmm
vmm: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.2, FreeBSD-style, stripped

Haven't found any architecture switch nor arm64 binaries.

gyptazy avatar Feb 18 '24 13:02 gyptazy

Im sorry seems like I mislead you. What I was meant to start building on those arch you mentioned and I did not see any problem to start. Allow me some time to bring up the necessary hardwares and start building the BVCP on those.

DaVieS007 avatar Feb 18 '24 13:02 DaVieS007

Im sorry seems like I mislead you. What I was meant to start building on those arch you mentioned and I did not see any problem to start. Allow me some time to bring up the necessary hardwares and start building the BVCP on those.

No worries, bhyve itself is still not completely ready for aarch64. The easiest way for you could be by simply running fbsd arm64 in qemu. That's the way I currently build for the RISC-V (rv64) arch.

gyptazy avatar Feb 18 '24 13:02 gyptazy

Sometimes things escalate quickly ;-) we now have ARM64 support for bhyve in place: https://cgit.freebsd.org/src/commit/?id=47e073941f4e

gyptazy avatar Feb 21 '24 22:02 gyptazy

I got my ARM stuff, so I start testing.

DaVieS007 avatar Mar 29 '24 10:03 DaVieS007

I got my ARM stuff, so I start testing.

Oh, you got ARM presents for Easter :) Have fun, enjoy and thank you!

Happy Easter!

gyptazy avatar Mar 29 '24 10:03 gyptazy

you too!

DaVieS007 avatar Mar 29 '24 11:03 DaVieS007