XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Guest Tools on FreeBSD

    Scheduled Pinned Locked Moved Development
    8 Posts 2 Posters 2.8k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      paco
      last edited by

      The documentation for Guest Tools says "The install.sh script doesn't support those systems, but there are ways to install the management agent anyway."

      I'd be happy to contribute 2 things:

      1. docs that cover how to install on FreeBSD (it's like one command)
      2. 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-utilities and put them on the ISO. They're not big and they don't have dependencies.

      Anyways, I can't find the source for install.sh so that I could write that bit of code. Which repo has the install.sh that goes into the guest tools ISO?

      1 Reply Last reply Reply Quote 0
      • stormiS Offline
        stormi Vates 🪐 XCP-ng Team
        last edited by stormi

        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.sh output instructions to the user. The code is available there: https://github.com/xcp-ng/xe-guest-utilities/tree/master/mk

        P 1 Reply Last reply Reply Quote 0
        • stormiS Offline
          stormi Vates 🪐 XCP-ng Team
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • P Offline
            paco @stormi
            last edited by

            stormi I had already forked, branched, and edited by the time I saw the shortcut. So it's here.

            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-utilities they 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.

            1 Reply Last reply Reply Quote 0
            • stormiS Offline
              stormi Vates 🪐 XCP-ng Team
              last edited by

              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.

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                paco @stormi
                last edited by

                stormi I understand. The change to the install.sh that I want to make is basically to detect FreeBSD and run the pkg install commands.

                stormiS 1 Reply Last reply Reply Quote 0
                • stormiS Offline
                  stormi Vates 🪐 XCP-ng Team @paco
                  last edited by

                  paco I'm ok with that if the script displays precisely what it is about to do before the user accepts.

                  P 1 Reply Last reply Reply Quote 0
                  • P Offline
                    paco @stormi
                    last edited by

                    stormi It does. I put the screen shots of what it looks like when you run it in the pull request.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post