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

    New Rust Xen guest tools

    Scheduled Pinned Locked Moved Development
    146 Posts 37 Posters 54.6k 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.
    • C Offline
      chrisfonte
      last edited by

      Worked well for me with apt on virtualized Pop!_OS.

      8b634169-d500-49dd-9057-9dd52f7f0ac7-image.png

      1 Reply Last reply Reply Quote 1
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Thanks for your feedback @chrisfonte !

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          Seclusion @olivierlambert
          last edited by

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

          i try to update tools, succeed only on ubuntu22.
          ubuntu20 fail on apt update:

          
          Ign:13 https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64 release/ Translation-en
          Err:11 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:12 https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64 release/ Translation-en_US
          Ign:13 https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64 release/ Translation-en
          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.
          

          ubuntu 20 = debian 11. Are the tools compatible?

          At blog you forgot the name of tools to install 😃 https://xcp-ng.org/blog/2023/12/15/rust-guest-tools-0-3-0/

          I also encountered this same issue with this on Ubuntu 20.04.6 LTS. Upgrading to Ubuntu 22.04.3 LTS and re-enabling the repository resolved the issue.

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

            Well it still don't work for ubuntu20.
            Also i can't create Nexus proxy repo even for 22, with same error.
            Looks like restrictions for some auth type. Because the repo is not accessible by direct link, i can't really check anything. Any ideas?
            9dab2a01-eb09-49ea-b9cb-d06c6784f750-изображение.png

            apt update
            Ign:7 http://local_ip:8081/repository/xen-tools-debian release/ InRelease
            Hit:8 http://local_ip:8081/repository/zabbix-apt/zabbix-agent2-plugins/1/ubuntu jammy InRelease
            Hit:9 http://local_ip:8081/repository/zabbix-apt/zabbix/6.4/ubuntu jammy InRelease
            Ign:10 http://local_ip:8081/repository/xen-tools-debian release/ Release
            Ign:11 http://local_ip:8081/repository/xen-tools-debian release/ Packages
            Ign:12 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en_US
            Ign:13 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en
            Ign:11 http://local_ip:8081/repository/xen-tools-debian release/ Packages
            Ign:12 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en_US
            Ign:13 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en
            Ign:11 http://local_ip:8081/repository/xen-tools-debian release/ Packages
            Ign:12 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en_US
            Ign:13 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en
            Ign:11 http://local_ip:8081/repository/xen-tools-debian release/ Packages
            Ign:12 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en_US
            Ign:13 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en
            Ign:11 http://local_ip:8081/repository/xen-tools-debian release/ Packages
            Ign:12 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en_US
            Ign:13 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en
            Ign:11 http://local_ip:8081/repository/xen-tools-debian release/ Packages
            Ign:12 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en_US
            Ign:13 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en
            Err:11 http://local_ip:8081/repository/xen-tools-debian release/ Packages
              404  Not Found [IP: local_ip 8081]
            Ign:12 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en_US
            Ign:13 http://local_ip:8081/repository/xen-tools-debian release/ Translation-en
            Reading package lists... Done
            E: Failed to fetch http://local_ip:8081/repository/xen-tools-debian/release/Packages  404  Not Found [IP: local_ip 8081]
            E: Some index files failed to download. They have been ignored, or old ones used instead.
            
            yannY 1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              I bet on a Gitlab hosting weird issue or something. You can download the package directly from here: https://gitlab.com/xen-project/xen-guest-agent/-/releases

              In your case: https://gitlab.com/xen-project/xen-guest-agent/-/jobs/5762006911/artifacts/raw/target/release/xen-guest-agent_0.3.0_amd64.deb?inline=false

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

                @olivierlambert thanks, i'll try to add them manualy.

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

                  Successfully install tools on ubuntu 20 from deb packet.
                  Ubuntu 18 need some dependencies: The following packages have unmet dependencies: xen-guest-agent : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1.6 is to be installed
                  libc6 is only available for ubuntu 20+ https://pkgs.org/search/?q=libc6

                  So that some repo issues.

                  yannY 1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Next release will be statically linked so it should solve the problem. However, our target is clearly modern distros initially 😉

                    1 Reply Last reply Reply Quote 1
                    • yannY Offline
                      yann Vates 🪐 XCP-ng Team @Tristis Oris
                      last edited by

                      If we want to support Ubuntu release that are "out of standard support" but not yet EoL'd, this currently puts the oldest distro as 14.04 just for 3 months (where we're using Debian 10 currently), beating Debian 8 (released 15.04, in ELTS until June '25).

                      But then Rust docker image for Debian 8 and 9 have long been unavailable from Docker hub, we'd have to switch to debian:8 and hope Rust will properly work there, in this platform they apparently do not support.

                      But we already know at least clang is much too old to be able to build the tools, even in debian:9, see https://github.com/KyleMayes/clang-sys/issues/163#issuecomment-1875216165

                      So supporting such old distros would need a significant investment.

                      ydirson created this issue in KyleMayes/clang-sys

                      closed "This crate only supports `libclang` 3.5 and later" with libclang 3.8 identified #163

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

                        In Debian 10 and Ubuntu 20.04, what I see is on apt-get update on first run is:

                         Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 172.65.251.78 443]
                        

                        That would look like Gitlab current SSL certificates would be depending on a root CA that only appeared in newer distros?

                        And on subsequent runs, then I start getting 401 replies as others reported.

                        S 1 Reply Last reply Reply Quote 0
                        • olivierlambertO Offline
                          olivierlambert Vates 🪐 Co-Founder CEO
                          last edited by

                          Hmm interesting, that's an interesting lead indeed 🤔

                          1 Reply Last reply Reply Quote 0
                          • F Offline
                            forbiddenera
                            last edited by

                            Are FreeBSD guests at all a consideration for new guest tools? Windows?

                            yannY 1 Reply Last reply Reply Quote 0
                            • olivierlambertO Offline
                              olivierlambert Vates 🪐 Co-Founder CEO
                              last edited by

                              Answer is yes for both, and work already started and going in the right direction 🙂

                              F 1 Reply Last reply Reply Quote 0
                              • yannY Offline
                                yann Vates 🪐 XCP-ng Team @forbiddenera
                                last edited by

                                @forbiddenera FreeBSD support is already there, and binaries are available since v0.3.0 release. However, full support making use of Netlink (supported since FreeBSD 13.2) is not to be considered as mature yet, only due to the need to use still-unofficial patches on some dependencies -- full status here.

                                Windows support is also coming, but requires more work than FreeBSD did, you can follow the status of the first meaningful step (communicating collected info back to host) here. Right now a few other tasks take precedence, expect things to move forward again within a few weeks.

                                1 Reply Last reply Reply Quote 1
                                • F Offline
                                  forbiddenera @olivierlambert
                                  last edited by

                                  @olivierlambert said in New Rust Xen guest tools:

                                  Answer is yes for both, and work already started and going in the right direction 🙂

                                  @yann said in New Rust Xen guest tools:

                                  @forbiddenera FreeBSD support is already there, and binaries are available since v0.3.0 release.

                                  Awesome! Maybe I'll have to take a peek.

                                  Windows support is also coming, but requires more work than FreeBSD did, you can follow the status of the first meaningful step (communicating collected info back to host) here. Right now a few other tasks take precedence, expect things to move forward again within a few weeks.

                                  TBH; I personally don't care much about Windows but figured I might as well ask while asking about FreeBSD 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • ajpri1998A Offline
                                    ajpri1998
                                    last edited by

                                    I installed a Pop OS desktop. I noticed that the icon is missing. XOCE 8e65e. Management agent 1.0.0-proto-0.3.0 Installed using the apt repo.
                                    `

                                    bcee059f-44b6-4cb4-8a4d-724e31959141-image.png
                                    I remember reading somewhere that the icon system was going to be overhauled. I can't remember where exactly it was part of. In this instance, I feel the Ubuntu icon is perfectly acceptable, as this is an Ubuntu-based OS.

                                    yannY C 2 Replies Last reply Reply Quote 0
                                    • yannY Offline
                                      yann Vates 🪐 XCP-ng Team @ajpri1998
                                      last edited by

                                      Hello @ajpri1998! Can you confirm that running this in the guest does print Pop!_OS?

                                      xenstore read data/os_distro
                                      
                                      ajpri1998A 1 Reply Last reply Reply Quote 0
                                      • yannY Offline
                                        yann Vates 🪐 XCP-ng Team
                                        last edited by

                                        We just released version 0.4.0. Biggest highlight is that it is not necessary any more to have libxenstore separately installed in guests, so the new RPM is now compatible with RHEL/CentOS and similar distros.

                                        Details to be found at https://gitlab.com/xen-project/xen-guest-agent/-/releases/0.4.0

                                        Tristis OrisT 1 Reply Last reply Reply Quote 1
                                        • ajpri1998A Offline
                                          ajpri1998 @yann
                                          last edited by ajpri1998

                                          @yann
                                          Can confirm. Also was able to upgrade to 0.4.0.
                                          2820ae7e-1e4e-4abf-abca-66dc5f9e61a1-image.png

                                          $ sudo xenstore read data/os_distro
                                          Pop!_OS
                                          

                                          `

                                          1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            CJ @ajpri1998
                                            last edited by

                                            @ajpri1998 Is it Ubuntu based or Debian? I've been debating switching to Debian from Ubuntu but I've also considered Pop.

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