DaVieS007 / bhyve-webadmin

FreeBSD Bhyve Web Administration Software
Other
96 stars 13 forks source link

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

Open gyptazy opened 9 months ago

gyptazy commented 9 months ago

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

DaVieS007 commented 8 months ago

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.

gyptazy commented 8 months ago

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.

DaVieS007 commented 8 months ago

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.

gyptazy commented 8 months ago

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 commented 8 months ago

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

DaVieS007 commented 6 months ago

I got my ARM stuff, so I start testing.

gyptazy commented 6 months ago

I got my ARM stuff, so I start testing.

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

Happy Easter!

DaVieS007 commented 6 months ago

you too!