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

    Broken Host Consoles in fresh xcp-ng 8 installation. VM consoles work.

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    displayconsolegpu
    27 Posts 6 Posters 10.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.
    • R Offline
      rjt
      last edited by

      Anybody have an idea of what to do to get our consoles back?

      1 Reply Last reply Reply Quote 0
      • borzelB Offline
        borzel XCP-ng Center Team
        last edited by borzel

        Do a recursive grep in /etc to find all files that have the old IP address

        Like grep -R 'IP-Address' /etc

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          rjt @borzel
          last edited by rjt

          @borzel i had tried that but found grep did not work like i am used. egrep worked better, but still not like how i am used to..

           egrep -R '(10\.40\.|192\.168\.)'  /etc
          
          1 Reply Last reply Reply Quote 0
          • D Offline
            DreDay
            last edited by

            I've seen that before where when you initially set the management IP via DHCP it breaks the console when the IP changes. XCP-ng does seem to register that the IP has changed and so it does not update the console URI.

            We were able to resolve the issue by setting the IP statically on the XCP-ng node(I believe a reboot was also required). That updated the console's URI and it was working again in XCP-ng Center and XO.

            R 1 Reply Last reply Reply Quote 1
            • R Offline
              rjt @DreDay
              last edited by

              @DreDay yes, statically leased DHCP addresses that used to work on spinning platters of rust no longer work on Solid State Drives.

              However, setting static IP address did not work to fix it. Had to reinstall, setting a static IP at re-installation time.

              1 Reply Last reply Reply Quote 0
              • A Offline
                asdfonseca @olivierlambert
                last edited by

                @olivierlambert , i have the same problem, but only under NAT. In same subnet, both host and VM consoles work properly.

                There's any special configuration to work under NAT?

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

                  When XO will ask to access host console, XCP-ng XAPI will return the local host console IP (in the same network).

                  So if you XO can't reach this IP, console connection can't work.

                  A 2 Replies Last reply Reply Quote 1
                  • A Offline
                    asdfonseca @olivierlambert
                    last edited by

                    @olivierlambert, all right! Thanks for your explanation!

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      asdfonseca @olivierlambert
                      last edited by

                      @olivierlambert, just one more question for the XCP-Ng development team:

                      Would it be possible for XCP-ng XAPI to read and return, for example, the addresses contained in the [/etc/hosts] file? In this case, if we put both the local IP and the external address used to access NAT on /etc/hosts and do a careful reading and interpretation of its content, it would act analogously to a DNS to translate both the local address and the external to XAPI.

                      Could it be that when implementing a change like this in XCP-Ng, would XAPI work under NAT?

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

                        Short answer: no.
                        Long answer: I'm not sure on the "how" we could do that. You should probably ask a XAPI developer about this. I'll try to get one or two here 🙂

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