Guest Tools on FreeBSD
I'd be happy to contribute 2 things:
- docs that cover how to install on FreeBSD (it's like one command)
- a bit of shell script that detects FreeBSD and does the right FreeBSD-specific command to install the tools via the internet
Also, if you wanted to, you could probably pull in the binaries for FreeBSD's
xe-guest-utilitiesand put them on the ISO. They're not big and they don't have dependencies.
Anyways, I can't find the source for
install.shso that I could write that bit of code. Which repo has the
install.shthat goes into the guest tools ISO?
for 1., please do. There's a "Help us to improve this page!" link at the bottom of the doc that will allow you to contribute it easily.
About 2., rather than automatically downloading from the internet, which can fail for various reasons, I'd simply have
./install.shoutput instructions to the user. The code is available there: https://github.com/xcp-ng/xe-guest-utilities/tree/master/mk
For us adding binaries, I'd need to be sure that they work for any version of FreeBSD and to have them built by ourselves. I'm not against it but since they are already in their repositories, I think installation instructions will be enough for now.
I'm not sure I understand why the code has to be compiled by the xcp-ng team, since that makes a pretty insurmountable hurdle. I can certainly walk someone through the process of doing that, and it can even be automated, but that's a lot of effort.
At the end of the day, when somone executes
pkg install xe-guest-utilitiesthey reach out to the official FreeBSD server and pull down a binary from there. So the security threat/impact of xcp-ng doing that is identical to the threat/impact of them doing that themselves.
There are ways to check the authenticity of the binary package rather than building it from source. That would let a Linux host fetch the file and verify it, rather than running enough FreeBSD hosts and automation to build two packages from source.
Well, I'm not sure that I want to build the packages myself, but adding blobs from elsewhere to the ISO isn't very appealing to me either, and doesn't bring much to the users. I think relying on the online repositories is better here.
@stormi I understand. The change to the
install.shthat I want to make is basically to detect FreeBSD and run the
@paco I'm ok with that if the script displays precisely what it is about to do before the user accepts.