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

    New Rust Xen guest tools

    Scheduled Pinned Locked Moved Development
    146 Posts 37 Posters 55.0k Views 33 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.
    • D Offline
      DustinB @Tristis Oris
      last edited by

      @Tristis-Oris said in New Rust Xen guest tools:

      @DustinB said in New Rust Xen guest tools:

      systemctl enable xe-linux-distribution

      that for old tools, they still working.

      Use the comparable

      systemctl enable xe<TAB-Key for auto complete>
      

      And the same for

      systemctl start xe<TAB-Key for auto complete>
      
      Tristis OrisT 1 Reply Last reply Reply Quote 0
      • Tristis OrisT Offline
        Tristis Oris Top contributor @DustinB
        last edited by

        @DustinB said in New Rust Xen guest tools:

        systemctl enable xe

        yep, found them.
        full steps for RHEL:

        wget https://gitlab.com/xen-project/xen-guest-agent/-/jobs/6041608360/artifacts/raw/RPMS/x86_64/xen-guest-agent-0.4.0-0.fc37.x86_64.rpm
        rpm -i xen-guest-agent*
        yum remove -y xe-guest-utilities-latest
        systemctl enable xen-guest-agent.service --now
        
        yannY 2 Replies Last reply Reply Quote 2
        • yannY Offline
          yann Vates πŸͺ XCP-ng Team @Tristis Oris
          last edited by

          @Tristis-Oris That's it - I thought it would not be necessary to dive into the details, as the RHEL/CentOS/etc policy is that newly installed services are not started by default (as a Debian guy I never understood why, but eh), and I assumed it would in every admin's cookbook already. Will add this together with the DEB instructions.

          Thanks guys for the feedback!

          Tristis OrisT 1 Reply Last reply Reply Quote 0
          • Tristis OrisT Offline
            Tristis Oris Top contributor
            last edited by

            So, it works semi fine with Rocky 8.5-8.9 and probably any newer.

            But now XO think that it usual Centos, not Rocky. Should i report that?
            775fe6ae-16bd-4bc7-b62b-21f7200190f1-ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅.png
            d69b79f7-6e3a-4497-b140-be0a77c27451-ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅.png

            Incompatible with CentOS 7, well that obvious.

            rpm -i xen-guest-agent*
            error: Failed dependencies:
                    libc.so.6(GLIBC_2.18)(64bit) is needed by xen-guest-agent-0.4.0-0.fc37.x86_64
                    libc.so.6(GLIBC_2.25)(64bit) is needed by xen-guest-agent-0.4.0-0.fc37.x86_64
                    libc.so.6(GLIBC_2.28)(64bit) is needed by xen-guest-agent-0.4.0-0.fc37.x86_64
                    rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by xen-guest-agent-0.4.0-0.fc37.x86_64
            
            yannY 2 Replies Last reply Reply Quote 0
            • Tristis OrisT Offline
              Tristis Oris Top contributor @yann
              last edited by

              @yann not a problem to start tools manually, like the old one. Ofcourse when you know service name=) Some lack of documentation right now.
              Maybe would be nice to make autoremove old tools like for debian, if that possible for RHEL.

              yannY 1 Reply Last reply Reply Quote 0
              • yannY Offline
                yann Vates πŸͺ XCP-ng Team @Tristis Oris
                last edited by

                @Tristis-Oris that would be an agent issue, likely due to os_info misidentifying Rocky as CentOS, you can report it in https://gitlab.com/xen-project/xen-guest-agent/-/issues, I'll double check and forward as needed.

                Thanks for the feedback again!

                1 Reply Last reply Reply Quote 0
                • yannY Offline
                  yann Vates πŸͺ XCP-ng Team @Tristis Oris
                  last edited by yann

                  @Tristis-Oris currently it replaces xe-guest-utilities but apparently I had missed xe-guest-utilities-latest, adding it!

                  See https://gitlab.com/xen-project/xen-guest-agent/-/merge_requests/74 - you should get fresh RPMs in the "artifacts" section of RPM job in a few minutes

                  1 Reply Last reply Reply Quote 0
                  • yannY Offline
                    yann Vates πŸͺ XCP-ng Team @Tristis Oris
                    last edited by

                    @Tristis-Oris: added to https://gitlab.com/xen-project/xen-guest-agent/-/releases/0.4.0#installation

                    1 Reply Last reply Reply Quote 0
                    • yannY Offline
                      yann Vates πŸͺ XCP-ng Team @Tristis Oris
                      last edited by

                      @Tristis-Oris said in New Rust Xen guest tools:

                      Incompatible with CentOS 7, well that obvious.

                      Right, we should find a place to mention the compatibility range, and check for a way to produce binaries for older distros even from newer ones (like what's done in Python world, but I have not spotted that yet in Rust world).

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        DustinB @yann
                        last edited by

                        @yann As far as I would be concerned, if you're using CentOS 7, you're on your own at that point.

                        The comparable would be using Windows Server 2012 R2 today, upgrade your stuff people...

                        Tristis OrisT 1 Reply Last reply Reply Quote 0
                        • Tristis OrisT Offline
                          Tristis Oris Top contributor @DustinB
                          last edited by

                          Debian 10 and Ubuntu 20 works for me only with manual .deb install.
                          apt update always fail if repo enabled:

                          Err:15 https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64 release/ Packages
                            401  Unauthorized [IP: 172.65.251.78 443]
                          Ign:16 https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64 release/ Translation-en_US
                          Ign:17 https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64 release/ Translation-en
                          Fetched 1,405 kB in 8s (168 kB/s)
                          Reading package lists... Done
                          E: Failed to fetch https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64/release/Packages  401  Unauthorized [IP: 172.65.251.78 443]
                          E: Some index files failed to download. They have been ignored, or old ones used instead.
                          

                          That still possible to automate with ansible, but very weird.

                          Debian 11 & Ubuntu 22 both fine. Didn't notice any problems.
                          Probably any RHEL8+ distros should be compatible. Maybe i can check something else.

                          @DustinB some soft can't be installed on new distros, but yes, it almost EOL.

                          yannY 1 Reply Last reply Reply Quote 0
                          • yannY Offline
                            yann Vates πŸͺ XCP-ng Team @Tristis Oris
                            last edited by

                            @Tristis-Oris yes I had looked into that last week, and I suspect it could to be related to cert verification in some way, but I'm really not sure what's happening yet.

                            Tristis OrisT 1 Reply Last reply Reply Quote 0
                            • Tristis OrisT Offline
                              Tristis Oris Top contributor @yann
                              last edited by

                              @yann so that not only my problem. that good πŸ˜ƒ

                              1 Reply Last reply Reply Quote 0
                              • Tristis OrisT Offline
                                Tristis Oris Top contributor
                                last edited by

                                I installed tools on next distro:
                                just installed and check if OS is recognized, metrics available. Have no idea what else can go wrong if install succeed.

                                Alma linux 8.9, Alma linux 9.3, Fedora server 39, OpenSuse Leap 15.5, Oracle 8.9, Oracle 9.3.

                                1 Reply Last reply Reply Quote 0
                                • Tristis OrisT Offline
                                  Tristis Oris Top contributor
                                  last edited by

                                  weird, but now i got error on fresh Oracle 8.9.
                                  not sure if anyone use servers with enabled selinux.

                                  dnf localinstall xen-guest-agent-0.4.0-0.fc37.x86_64.rpm
                                  
                                  Oracle Linux 8 BaseOS Latest (x86_64)                                                                                                        40 MB/s |  68 MB     00:01
                                  Oracle Linux 8 Application Stream (x86_64)                                                                                                   39 MB/s |  54 MB     00:01
                                  Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux 8 (x86_64)                                                                   38 MB/s |  27 MB     00:00
                                  Last metadata expiration check: 0:00:05 ago on Fri 02 Feb 2024 07:59:24 AM EST.
                                  Dependencies resolved.
                                  ============================================================================================================================================================================
                                   Package                                      Architecture                        Version                                   Repository                                 Size
                                  ============================================================================================================================================================================
                                  Installing:
                                   xen-guest-agent                              x86_64                              0.4.0-0.fc37                              @commandline                              1.2 M
                                  
                                  Transaction Summary
                                  ============================================================================================================================================================================
                                  Install  1 Package
                                  
                                  Total size: 1.2 M
                                  Installed size: 3.7 M
                                  Is this ok [y/N]: y
                                  Downloading Packages:
                                  Running transaction check
                                  Transaction check succeeded.
                                  Running transaction test
                                  Transaction test succeeded.
                                  Running transaction
                                    Preparing        :                                                                                                                                                    1/1
                                    Installing       : xen-guest-agent-0.4.0-0.fc37.x86_64                                                                                                                1/1
                                  error: lsetfilecon: (-1 ad2886979f8f9a9f9b404a9e9b3f2018781ceb;65bce739, system_u:object_r:lib_t:s0) No such file or directory
                                  error: Plugin selinux: hook fsm_file_prepare failed
                                  
                                  Error unpacking rpm package xen-guest-agent-0.4.0-0.fc37.x86_64
                                    Verifying        : xen-guest-agent-0.4.0-0.fc37.x86_64                                                                                                                1/1
                                  
                                  Failed:
                                    xen-guest-agent-0.4.0-0.fc37.x86_64
                                  
                                  Error: Transaction failed
                                  
                                  rpm -i xen-guest-agent*
                                  error: lsetfilecon: (-1 ad2886979f8f9a9f9b404a9e9b3f2018781ceb;65bcebdc, system_u:object_r:lib_t:s0) No such file or directory
                                  error: Plugin selinux: hook fsm_file_prepare failed
                                  error: unpacking of archive failed on file /usr/lib/.build-id/ce/ad2886979f8f9a9f9b404a9e9b3f2018781ceb;65bcebdc: cpio: (error 0x2)
                                  error: xen-guest-agent-0.4.0-0.fc37.x86_64: install failed
                                  
                                  yannY T 2 Replies Last reply Reply Quote 0
                                  • yannY Offline
                                    yann Vates πŸͺ XCP-ng Team @Tristis Oris
                                    last edited by

                                    @Tristis-Oris I must say the error message is rather obscure. Can you please open a ticket for this one too?

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      Davidj 0
                                      last edited by

                                      On Fedora 39, you must enable the daemon manually after you install the package. This is probably true on all RPM-based systems.

                                      $ sudo systemctl enable --now xen-guest-agent.service
                                      

                                      I'd be happy to submit a pull request to add that to the RPM package if you will point me at the right repo.

                                      yannY 2 Replies Last reply Reply Quote 0
                                      • yannY Offline
                                        yann Vates πŸͺ XCP-ng Team @Davidj 0
                                        last edited by

                                        @Davidj-0 unfortunately not enabling daemons at first install is the standard behavior in RPM world. I already had a look at changing this for one package, and it turns out to be messy with unforeseen impact, so I gave up with the excuse that admins of RPM-based distros already have to live with this idiosyncrasy anyway.
                                        I added this in install instructions in the Gitlab release notes already.

                                        C 1 Reply Last reply Reply Quote 0
                                        • stormiS Offline
                                          stormi Vates πŸͺ XCP-ng Team
                                          last edited by

                                          IIRC you can just enable and start the service in a %post scriptlet. It's does not conform to Fedora's and RedHat policy for packages included in their repositories, but here the repository is external and we know for sure that the vast majority of users just wants it to be enabled.

                                          yannY 1 Reply Last reply Reply Quote 0
                                          • yannY Offline
                                            yann Vates πŸͺ XCP-ng Team @stormi
                                            last edited by

                                            @stormi that would need to be done only if not upgrading then, or it would interfere with local admin's choice.

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