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

    Option to set the VM to match the CPU of the host? Issues installing Ansbile on Rocky Linux 9 - Unable to determine if virtual resource

    Scheduled Pinned Locked Moved Solved Compute
    6 Posts 2 Posters 573 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.
    • M Offline
      mtcoffee
      last edited by

      While installing Ansible on RockyLinux on an XCP-ng host I'm getting the error "Unable to determine if virtual resource". Same error described here:
      https://chr00t.com/installing-awx-on-almalinux-9/

      In the case of Proxmox the post describes:
      Changing the CPU type from “Default (kvm64)” to Host. This sets the VM to match the CPU of the host.

      Is their a similar setting in XCP-ng?

      1 Reply Last reply Reply Quote 0
      • M Offline
        mtcoffee @olivierlambert
        last edited by

        @olivierlambert

        It turns out this had nothing to do with the VM or Hypervisor, but was guest specific. Here is the scoop for anyone that may come across this Ansible AWX install error.

        Ansible AWX now prefers Kubernetes over Docker to run on and in this case I used K3s on Rocky Linux. After K3s is installed if you run "kubectl get apiservice" you will see:
        "kube-system/metrics-server false (missingendpoints)"

        This is what causes the Ansible AWX install to fail with "Unable to determine if virtual resource"

        The solution:
        Installing K3s on Rocky Linux requires the extra step of disabling SELinux and firewalld

        sudo setenforce 0
        sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
        sudo systemctl disable firewalld --now
        
        1 Reply Last reply Reply Quote 1
        • olivierlambertO Online
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by olivierlambert

          Hi,

          The issue seems to be the way it detects or not virtualization, have you contacted AWX developers? Xen is very very different than KVM and doesn't use the same mechanism at all, so there's no similar workaround until the problem is very clear on what should be fixed or not on AWX side 🙂

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            mtcoffee @olivierlambert
            last edited by

            @olivierlambert

            Thanks for the insight. I will follow up and post back.

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

              Happy to help as soon we understand the reason of the issue (this will be helpful to see what would be the best option)

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mtcoffee @olivierlambert
                last edited by

                @olivierlambert

                It turns out this had nothing to do with the VM or Hypervisor, but was guest specific. Here is the scoop for anyone that may come across this Ansible AWX install error.

                Ansible AWX now prefers Kubernetes over Docker to run on and in this case I used K3s on Rocky Linux. After K3s is installed if you run "kubectl get apiservice" you will see:
                "kube-system/metrics-server false (missingendpoints)"

                This is what causes the Ansible AWX install to fail with "Unable to determine if virtual resource"

                The solution:
                Installing K3s on Rocky Linux requires the extra step of disabling SELinux and firewalld

                sudo setenforce 0
                sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
                sudo systemctl disable firewalld --now
                
                1 Reply Last reply Reply Quote 1
                • olivierlambertO olivierlambert marked this topic as a question on
                • olivierlambertO olivierlambert has marked this topic as solved on
                • olivierlambertO Online
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  Thanks a lot for your feedback!

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