XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. burbilog
    3. Posts
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 35
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: How do you manage multiple VMs outside of Xen Orchestra?

      @Greg_E "if that host crashes" -- that's the problem. When the host is gone, VMs are gone. Not colored in red 'we are gone', there are none of them.

      There is no problem running XO itself on other host.

      The question is not how to keep VMs backed -- they are.

      But right now, when host X is gone and its VMs are replicated to hosts Y and Z, how can i quickly see that VMs A,B,C and D are gone and E, F, G, etc are up? No way, because X is gone and its VMs gone too.

      I have to monitor them via Zabbix to see if they are gone.

      But syncing hundreds of VMs with Zabbix is tiresome, it's a lot of manual work.

      posted in Management
      burbilogB
      burbilog
    • RE: How do you manage multiple VMs outside of Xen Orchestra?

      @olivierlambert Cool. Waiting for that feature 🙂

      posted in Management
      burbilogB
      burbilog
    • RE: How do you manage multiple VMs outside of Xen Orchestra?

      Suppose I have a server with VMs replicated to 3 other different servers (weaker than the main one). Then the main server goes down. I need to assess quickly which copies I should start first. How do I quickly check all the VMs that went down? Some are not important, some are... Without a central list of VMs with their status, it's much trickier.

      posted in Management
      burbilogB
      burbilog
    • RE: How do you manage multiple VMs outside of Xen Orchestra?

      @olivierlambert I mean if the server goes down, all VMs that were running on that server disappear from XO. Yes, I can create manual entries to monitor them in Zabbix and I do, but for hundreds of VMs, that's a lot of manual work.

      Basically, I'd like to see something like a table of VMs showing their status, availability of their replications on other servers, number of backups, etc.

      Currently, I'm really falling behind with my Zabbix setup because there's too much manual work involved in tracking all VM IP addresses and other details (especially if some VMs are not easily accessible by IP!). There are no automated tools to properly view the status of each VM - not just up/down status, but comprehensive XO data.

      posted in Management
      burbilogB
      burbilog
    • How do you manage multiple VMs outside of Xen Orchestra?

      The major drawback of Xen Orchestra is that if the server goes down, all of its VMs are gone too. No clean list of VMs in 'clean' state. Yes, there are backups—lots of them—and replications, but it understandig what's wrong is difficult. If you have hundreds of VMs, how do you track the state of individual VMs: which server each one runs on, which servers have replications, and where backups are stored?

      posted in Management
      burbilogB
      burbilog
    • RE: VM migration within single server

      @AtaxyaNetwork Yes, this worked. Thanks.

      posted in Management
      burbilogB
      burbilog
    • RE: VM migration within single server

      @AtaxyaNetwork Yes, I do.

      posted in Management
      burbilogB
      burbilog
    • VM migration within single server

      I've added two new disks to the server and created md0 raid1 array, as described here: https://xcp-ng.org/docs/guides.html#software-raid-storage-repository. It works. Now I have to move VMs from the main, single disk of the server. But when I click migrate arrow on this server's vm, it does not show the same server as the destination, only other servers.

      Yes, I can migrate VMs to another server and back, selecting new raid storage. But it's kinda awkward to haul hefty data between local disks via external machine...

      posted in Management
      burbilogB
      burbilog
    • RE: Orange exclamation mark without errors

      @olivierlambert No, it does not. Still, sometimes badge with patches blink... funny.

      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: Orange exclamation mark without errors

      @olivierlambert Well, after erasing that file it appears again with the same "check_update" contents.

      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: Orange exclamation mark without errors

      @burbilog

      It seems to return

      {"error": "The updater plugin is busy (current operation: check_update)"}
      

      all the time on that server.

      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: Orange exclamation mark without errors

      @olivierlambert said in Orange exclamation mark without errors:

      plugin=updater.py fn=check_update

      Where can I run this command? On the host with missing patches?

      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: Orange exclamation mark without errors

      @olivierlambert Anyway, I don't understand why XOA does not detect them at all

      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: Orange exclamation mark without errors

      @olivierlambert

      64 bytes from 172.16.1.46 (172.16.1.46): icmp_seq=1 ttl=62 time=3.88 ms
      64 bytes from 172.16.1.46 (172.16.1.46): icmp_seq=2 ttl=62 time=4.40 ms
      64 bytes from 172.16.1.46 (172.16.1.46): icmp_seq=3 ttl=62 time=4.67 ms
      
      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: Orange exclamation mark without errors

      @olivierlambert "Missing patches"

      Funny thing, one of these hw servers is kinda old with 8.2.0 xcp-ng and there ARE missing patches. But no such notifications neither in XOA or XOCE right now.

      Whoa. Just noticed. Red badge with number of patches appear in XOCE! But only after a while, if I leave that browser window for a while. But XOA shows no notification at all.

      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: Orange exclamation mark without errors

      @olivierlambert Yes, I connect all four machines. No complaints in XOA.

      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: Orange exclamation mark without errors

      @olivierlambert I did not connect XOA to other hw servers. Is it safe to run both xoa and xoce in parallel on all hw servers?

      posted in Xen Orchestra
      burbilogB
      burbilog
    • Orange exclamation mark without errors

      XOCE shows yellow exclamation mark on Pools menu entry, but there are no errors in host list...

      bugbug1.png
      bugbug2.png

      Xen Orchestra, commit 07bd9
      xo-server 5.93.1
      xo-web 5.96.0

      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: xoce INTERNAL_ERROR while trying to create VM

      @olivierlambert Installed xoa appliance, connected it to that server and it seems to work, xoa creates new VM just fine. So, it's certainly a problem of xoce.

      posted in Xen Orchestra
      burbilogB
      burbilog
    • RE: xoce INTERNAL_ERROR while trying to create VM

      @olivierlambert Ugh.

      I erased xoce (rm -rf /opt/xen-orchestra && apt purge redis-server), then reinstalled both xoce and single server afresh. Then I connected brand new, shiny xoce to brand new, shiny server. Only. I did not connect other servers.

      And I've got the same problem. Added NFS SR, tried to install VM, pink square, error:

      vm.create
      {
        "clone": true,
        "existingDisks": {},
        "installation": {
          "method": "cdrom",
          "repository": "6b15b403-a94a-4f59-b4bc-4da75bffe4a7"
        },
        "name_label": "x",
        "template": "b8896401-be53-cbc1-58f3-ac0bd696ec55-4b6425be-728a-4a2c-8333-0aef209a348b",
        "VDIs": [
          {
            "bootable": true,
            "device": "0",
            "size": 10737418240,
            "type": "system",
            "SR": "aeaa681d-bf4a-5070-f553-ffe6debb0b54",
            "name_description": "Created by XO",
            "name_label": "CentOS 8_erofa"
          }
        ],
        "VIFs": [
          {
            "network": "b4fd13cc-7b32-0794-d617-2ecd39139dc1",
            "allowedIpv4Addresses": [],
            "allowedIpv6Addresses": []
          }
        ],
        "CPUs": 1,
        "cpusMax": 1,
        "cpuWeight": null,
        "cpuCap": null,
        "name_description": "x",
        "memory": 4294967296,
        "bootAfterCreate": true,
        "copyHostBiosStrings": false,
        "secureBoot": false,
        "share": false,
        "coreOs": false,
        "tags": [],
        "hvmBootFirmware": "bios"
      }
      {
        "code": "INTERNAL_ERROR",
        "params": [
          "(Failure \"Expected string, got 'N'\")"
        ],
        "call": {
          "method": "VM.get_power_state",
          "params": [
            null
          ]
        },
        "message": "INTERNAL_ERROR((Failure \"Expected string, got 'N'\"))",
        "name": "XapiError",
        "stack": "XapiError: INTERNAL_ERROR((Failure \"Expected string, got 'N'\"))
          at Function.wrap (/opt/xen-orchestra/packages/xen-api/src/_XapiError.js:16:12)
          at /opt/xen-orchestra/packages/xen-api/src/transports/json-rpc.js:37:27
          at AsyncResource.runInAsyncScope (node:async_hooks:202:9)
          at cb (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:355:42)
          at tryCatcher (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:16:23)
          at Promise._settlePromiseFromHandler (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:547:31)
          at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:604:18)
          at Promise._settlePromise0 (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:649:10)
          at Promise._settlePromises (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:729:18)
          at _drainQueueStep (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:93:12)
          at _drainQueue (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:86:9)
          at Async._drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:102:5)
          at Immediate.Async.drainQueues [as _onImmediate] (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:15:14)
          at processImmediate (node:internal/timers:466:21)
          at process.callbackTrampoline (node:internal/async_hooks:130:17)"
      }
      
      May 13 16:49:42 xen xapi: [error||1712 HTTPS 10.1.0.188->:::80|VM.add_to_platform D:4a241a51b855|sql] Duplicate key in set or map: table VM; field platform; ref OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1; key secureboot
      May 13 16:49:42 xen xapi: [error||1714 HTTPS 10.1.0.188->:::80|VM.add_to_HVM_boot_params D:0d9aca8b9b24|sql] Duplicate key in set or map: table VM; field HVM__boot_params; ref OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1; key firmware
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] VM.add_to_platform D:4a241a51b855 failed with exception Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "secureboot")
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] Raised Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "secureboot")
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 1/8 xapi Raised at file ocaml/database/db_cache_impl.ml, line 310
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 2/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 3/8 xapi Called from file ocaml/xapi/rbac.ml, line 231
      May 13 16:49:42 xen xapi: [debug||1711 :::80||api_effect] VM.set_name_description
      May 13 16:49:42 xen xapi: [debug||1715 :::80||api_effect] VM.add_to_platform
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] VM.add_to_HVM_boot_params D:0d9aca8b9b24 failed with exception Db_exn.Duplicate_key("VM", "HVM__boot_params", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "firmware")
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 100
      May 13 16:49:42 xen xapi: [error||1715 HTTPS 10.1.0.188->:::80|VM.add_to_platform D:e5850b8e2aca|sql] Duplicate key in set or map: table VM; field platform; ref OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1; key device-model
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] Raised Db_exn.Duplicate_key("VM", "HVM__boot_params", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "firmware")
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 121
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 1/8 xapi Raised at file ocaml/database/db_cache_impl.ml, line 310
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] VM.add_to_platform D:e5850b8e2aca failed with exception Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "device-model")
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 2/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] Raised Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "device-model")
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 3/8 xapi Called from file ocaml/xapi/rbac.ml, line 231
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 1/8 xapi Raised at file ocaml/database/db_cache_impl.ml, line 310
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 7/8 xapi Called from file map.ml, line 135
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 2/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 100
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 8/8 xapi Called from file src/sexp_conv.ml, line 156
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 121
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 3/8 xapi Called from file ocaml/xapi/rbac.ml, line 231
      May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace]
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 100
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 7/8 xapi Called from file map.ml, line 135
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 121
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 8/8 xapi Called from file src/sexp_conv.ml, line 156
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
      May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace]
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 7/8 xapi Called from file map.ml, line 135
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 8/8 xapi Called from file src/sexp_conv.ml, line 156
      May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace]
      
      

      Perhaps, it's a problem with some latest changes to xoce after all?

      posted in Xen Orchestra
      burbilogB
      burbilog