Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigating guestagent on FreeBSD, for containerd with runj #1509

Closed
wants to merge 7 commits into from

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented Apr 22, 2023

There is no systemd on BSD, so it needs to use /var/run.

GNU bash is in /usr/local/bin/bash, default is /bin/csh.

Eventually it should use BSM Audit events, but empty here.
Using a simple sockstat call, instead of trying to get kernel events

Added "os"

# OS: "Linux", "FreeBSD".
# 🟢 Builtin default: "Linux"
os: null

Issue #1508

Related #1735

Makefile Outdated Show resolved Hide resolved
@afbjorklund
Copy link
Member Author

I found some old code that I hadn't pushed, it needs to be rebased and cleaned up

@afbjorklund
Copy link
Member Author

Note: there is no use case for FreeBSD yet, except for "it exists" and in order to test runj

@afbjorklund afbjorklund force-pushed the guestagent-freebsd branch 2 times, most recently from 362f41e to a4a8044 Compare August 13, 2023 16:18
@@ -5,6 +5,12 @@ images:
arch: "x86_64"
- location: https://download.freebsd.org/ftp/snapshots/VM-IMAGES/14.0-CURRENT/aarch64/Latest/FreeBSD-14.0-CURRENT-arm64-aarch64.qcow2.xz
arch: "aarch64"
- location: https://download.freebsd.org/ftp/snapshots/VM-IMAGES/14.0-CURRENT/riscv64/Latest/FreeBSD-14.0-CURRENT-riscv-riscv64.qcow2.xz
arch: "riscv64"
kernel:
Copy link
Member Author

@afbjorklund afbjorklund Aug 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this u-boot image was mostly a hack to get past the validate (for amd64/arm64), but it is the real image:

https://wiki.freebsd.org/riscv/QEMU

We might want to import it to https://github.com/lima-vm/u-boot-qemu-mirror/ proper, so it can be used here.

The image does seem to be booting.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't we use Debian's u-boot binary for FreeBSD?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that should be fine as well, just haven't tested it.

writable: true

additionalDisks:
- "zfs"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ZFS disk is actually only needed if wanting to run containers, it will boot fine without it.

Makefile Outdated Show resolved Hide resolved
@afbjorklund afbjorklund changed the title Investigating guestagent on FreeBSD Investigating guestagent on FreeBSD, for containerd with runj Sep 13, 2023
dfr

This comment was marked as resolved.

@afbjorklund
Copy link
Member Author

Note: the build configuration for guest agent defaults to FreeBSD disabled (only Linux enabled), so you want to make sure to enable this before building and installing...

CONFIG_GUESTAGENT_OS_FREEBSD=y

Signed-off-by: Anders F Björklund <[email protected]>
@AkihiroSuda
Copy link
Member

Needs rebase.

Does cloud-init work with FreeBSD?
No change is needed for the cidata stuff?

@afbjorklund
Copy link
Member Author

afbjorklund commented Jan 15, 2024

Does cloud-init work with FreeBSD?

I think it could work (in theory at least), but that it is not included by default in the ISO image.

It seems to be quite new: https://www.freebsd.org/status/report-2023-01-2023-03/cloud-init/

Previous PR was without any cidata.

@afbjorklund afbjorklund marked this pull request as draft January 15, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants