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

    Update host name of the XO VM

    Scheduled Pinned Locked Moved Management
    5 Posts 3 Posters 184 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.
    • A Offline
      Ascar
      last edited by

      Hello, everyone.

      I guess when I installed XO I had a different name set for the VM host and late on I changed it to something else.
      I am trying to get the list of available objects by running xo-cli list-objects I get errors returned which point to the wrong host name and DNS errors:

      ✖ Error: getaddrinfo ENOTFOUND xo1.my-domain.com
          at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
        code: 'ENOTFOUND',
        errno: -3008,
        hostname: 'xo1.my-domain.com',
        syscall: 'getaddrinfo'
      }
      

      My new host name is xo1-xyz.my-domain.com. What and where should I update to get the CLI working again?

      Thank you very much

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

        Just re-register it 🙂

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

          @olivierlambert Please, how? Not getting my head around it. Thank you

          DanpD 1 Reply Last reply Reply Quote 0
          • DanpD Online
            Danp Pro Support Team @Ascar
            last edited by

            @Ascar I suspect that Olivier means to register with the XO instance using this syntax --

            xo-cli register [--allowUnauthorized] [--expiresIn <duration>] [--otp <otp>] <XO-Server URL> <username> [<password>]

            You can run xo-cli without any parameters to get the full usage text.

            A 1 Reply Last reply Reply Quote 2
            • A Offline
              Ascar @Danp
              last edited by

              @Danp Thank you, trying now.

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