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

    XO Installation on an offline system

    Scheduled Pinned Locked Moved Xen Orchestra
    17 Posts 2 Posters 3.6k Views 1 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.
    • olivierlambertO Offline
      olivierlambert Vates πŸͺ Co-Founder CEO
      last edited by olivierlambert

      Are you sure you correctly passed the right values? (ie your variable in your example were correctly assigned?)

      Because the script should have fetched them on boot, also if it's the first and only vif it will be eth0 for the VM, so that should work πŸ€” Double check you have only one VIF.

      1 Reply Last reply Reply Quote 0
      • L Offline
        lpfernandes
        last edited by

        Ok I managed to change by first destroying the vif and creating a new one, than the VM took the values already set by the script.

        xe vif-destroy uuid=$vifid
        xe vif-create network-uuid=$nuuid vm-uuid=$uuid device=0 mac=random

        However when I start the web page after logging in I just get a logo for the loading

        L 1 Reply Last reply Reply Quote 0
        • olivierlambertO Offline
          olivierlambert Vates πŸͺ Co-Founder CEO
          last edited by

          It's using websocket, so your fw might close the connection. Please try in HTTPS.

          1 Reply Last reply Reply Quote 0
          • L Offline
            lpfernandes @lpfernandes
            last edited by

            @lpfernandes

            75c39340-b7fa-43ca-ad52-4df3e3e40650-image.png

            [11:31 25] xoa@xoa:~$ sudo journalctl -u xo-server.service
            -- Logs begin at Thu 2021-02-25 09:02:41 EST, end at Thu 2021-02-25 11:31:28 EST. --
            Feb 25 09:02:44 xoa systemd[1]: Started XO Server.
            Feb 25 09:02:46 xoa xo-server[467]: 2021-02-25T14:02:46.802Z app-conf /usr/local/lib/node_modules/xo-server/config.toml
            Feb 25 09:02:46 xoa xo-server[467]: 2021-02-25T14:02:46.814Z app-conf /usr/local/lib/node_modules/xo-server/config.xoa.json
            Feb 25 09:02:46 xoa xo-server[467]: 2021-02-25T14:02:46.816Z app-conf /etc/xo-server/config.toml
            Feb 25 09:02:46 xoa xo-server[467]: 2021-02-25T14:02:46.818Z xo:main INFO Configuration loaded.
            Feb 25 09:02:46 xoa xo-server[467]: 2021-02-25T14:02:46.836Z xo:main INFO Web server listening on http://[::]:80
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.014Z xo:main INFO new certificate generated { cert: '/etc/ssl/cert.pem', key: '/etc/ssl/key.pem
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.018Z xo:main INFO Web server listening on https://[::]:443
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.053Z xo:xo-mixins:hooks DEBUG start start…
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.154Z xo:xo-mixins:subjects INFO Default user created: admin@admin.net with password admin
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.187Z xo:xo-mixins:hooks DEBUG start finished
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.187Z xo:xo-mixins:hooks DEBUG clean start…
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.193Z xo:xo-mixins:hooks DEBUG clean finished
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.266Z xo:main INFO Setting up / β†’ /usr/local/lib/node_modules/xo-web/dist
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.267Z xo:plugin INFO register telemetry
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.349Z xo:plugin INFO register xoa
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.474Z xo:xo-mixins:plugins INFO [NOTICE] register plugin telemetry for the first time
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.474Z xo:xo-mixins:plugins INFO [NOTICE] register plugin xoa for the first time
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.480Z xo:plugin INFO successfully register telemetry
            Feb 25 09:02:47 xoa xo-server[467]: 2021-02-25T14:02:47.480Z xo:plugin INFO successfully register xoa

            [11:31 25] xoa@xoa:~$ sudo xoa check
            βœ” Node version
            βœ” xo-server config syntax
            βœ– Appliance registration: [Error: ENOENT: no such file or directory, open '/var/lib/xoa-updater/registration.json'] {
            errno: -2,
            code: 'ENOENT',
            syscall: 'open',
            path: '/var/lib/xoa-updater/registration.json'
            }
            βœ” Disk space for /
            βœ” Disk space for /var
            βœ” Native SMB support
            βœ” Fetching VM UUID
            βœ” XOA version
            βœ” npm version
            βœ– XOA status: not up-to-date, please run xoa-updater
            βœ– Internet connectivity: Error: getaddrinfo EAI_AGAIN xen-orchestra.com
            at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) {
            errno: 'EAI_AGAIN',
            code: 'EAI_AGAIN',
            syscall: 'getaddrinfo',
            hostname: 'xen-orchestra.com',
            url: 'https://xen-orchestra.com/'
            }

            L 1 Reply Last reply Reply Quote 0
            • L Offline
              lpfernandes @lpfernandes
              last edited by

              @lpfernandes

              Same occurrence using either http or https, both just display the loading logo. Is there any configuration change required ?

              1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates πŸͺ Co-Founder CEO
                last edited by

                Any plugin that could block in your browser? Same result in Firefox?

                L 1 Reply Last reply Reply Quote 0
                • L Offline
                  lpfernandes @olivierlambert
                  last edited by

                  @olivierlambert No plugins installed, same result on both IE and Firefox

                  L 1 Reply Last reply Reply Quote 0
                  • L Offline
                    lpfernandes @lpfernandes
                    last edited by

                    @lpfernandes All I see is a JS error "SyntaxError: invalid property id"

                    1 Reply Last reply Reply Quote 0
                    • olivierlambertO Offline
                      olivierlambert Vates πŸͺ Co-Founder CEO
                      last edited by

                      @julien-f or @pdonias will take a look when then can.

                      L 1 Reply Last reply Reply Quote 0
                      • L Offline
                        lpfernandes @olivierlambert
                        last edited by

                        @olivierlambert Thanks

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