Subcategories

  • VMs, hosts, pools, networks and all other usual management tasks.

    362 Topics
    3k Posts
    H
    Hello, @Danp I just reproduced it. All my nodes are up to date ( my xo have 7 commits behind master, i read the commit's log of my missing commit, the commits are not related to my issue. ). In my scenario, i had a pool with 3 nodes node1 node2 node3 I reinstall node3 after a disaster ( i force forgot node 3). Now, i can't add the host back to the pool. [image: 1752089965479-6e6c4b93-7a3d-4c48-92fb-d311b4117983-image.png] I also tried to update the host after installation ( usually, i do this after ). But it doesn't works more. I will not add my node thought xcpng center to permit you further investigation Here is the detailed operation json { "id": "0mcwehjzy", "properties": { "method": "pool.mergeInto", "params": { "sources": [ "64365465-fd4e-25b6-3db2-2cdcd9edba5e" ], "target": "a92ca4ca-caac-83b9-fa00-4bb75cb48f6c", "force": true }, "name": "API call: pool.mergeInto", "userId": "63a0dbaf-ba2d-4028-b80f-fe49f56686b2", "type": "api.call" }, "start": 1752092249470, "status": "failure", "updatedAt": 1752092249473, "end": 1752092249472, "result": { "message": "app.getLicenses is not a function", "name": "TypeError", "stack": "TypeError: app.getLicenses is not a function\n at enforceHostsHaveLicense (file:///etc/xen-orchestra/packages/xo-server/src/xo-mixins/pool.mjs:15:30)\n at Pools.apply (file:///etc/xen-orchestra/packages/xo-server/src/xo-mixins/pool.mjs:80:13)\n at Pools.mergeInto (/etc/xen-orchestra/node_modules/golike-defer/src/index.js:85:19)\n at Xo.mergeInto (file:///etc/xen-orchestra/packages/xo-server/src/api/pool.mjs:311:15)\n at Task.runInside (/etc/xen-orchestra/@vates/task/index.js:175:22)\n at Task.run (/etc/xen-orchestra/@vates/task/index.js:159:20)\n at Api.#callApiMethod (file:///etc/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:469:18)" } }```
  • ACLs, Self-service, Cloud-init, Load balancing...

    89 Topics
    763 Posts
    R
    I see your point. Thank you!
  • All XO backup features: full and incremental, replication, mirrors...

    366 Topics
    4k Posts
    I
    @Bastien-Nollet here is the log.. 2025-07-09T01_00_00.011Z - backup NG.json.txt
  • Everything related to Xen Orchestra's REST API

    66 Topics
    502 Posts
    lsouai-vatesL
    @StephenAOINS This endpoint is not currently present in our REST API swagger, but we do plan to add it to the list of endpoints. We are currently finalizing the migration of existing endpoints, the next step will be adding new ones. We will keep you informed when it is available. Feel free to come back to us if you want to learn more and follow our blog posts. have a good day
  • Terraform, Packer or any tool to do IaC

    33 Topics
    309 Posts
    I
    @olivierlambert @nathanael-h @Team-DevOps Please let me know if you have answers for any of the flollowing questions: Why JSON-RPC over websocket regularly returns not expected result for calls and what could be done with it? examples: method xo.getAllObjects sometimes returns empty result, but following: jsonrpc method params ------- ------ ------ 2.0 all @{type=enter; items=} On retry - everything is fine and we have all data jsonrpc result ------- ------ 2.0 @{bbdb1ed0-4c86-24ec-...=;..... method vm.copy sometimes returns only task with name_label host.get_server_certificate and no task async.vm.copy. Meanwhile copy operation is started in XEN Orchestra, so we have to separately search for the task currently running in all objects and if it is not there anymore suggest that it completed successfully. Afterwards we need to check if vm was copied and appeared in all objects. That is really frustrating as we have no info about successfully completed tasks in XEN - records just removed as nothing happen. most likely this happens due to other tasks being popped up in tasks at the same time and websocket call recives not its own responce, is it possible to workaround? What is correct syntax for JSON to run job.create method? Are there any article with supported methods for JSON-RPC calls and examples to use them? Calling for "system.getMethodsInfo" I can see "job.create": { "description": "Creates a new job from description object", "params": { "job": { "type": "object", "properties": { "userId": { "type": "string", "optional": true }, "name": { "type": "string", "optional": true }, "timeout": { "type": "number", "optional": true }, "type": { "type": "string" }, "key": { "type": "string" }, "method": { "type": "string" }, "paramsVector": { "type": "object", "properties": { "type": { "type": "string" }, "items": { "type": "array", "items": { "type": "object" } } }, "optional": true } } } }, "permission": "admin" }, But it is unclear what values should I provide to paramsVector and looking into the job created manually (in web interface) with method job.getall I can see 2 jobs [ { "type": "call", "name": "copyvm", "key": "generictask", "method": "vm.copy", "paramsvector": { "type": "crossproduct", "items": [ { "type": "set", "values": [ { "name": "nevm", "vm": "GUID", "sr": "GUID" } ] } ] }, "userid": "GUID", "id": "GUID" }, { "method": "vm.copy", "key": "vm.copy", "name": "copyvmjob", "type": "call", "userid": "GUID", "id": "GUID" } ] How can I create similar job myself if it is not possible to find out why vm.copy does not return async.vm.copy task info?
  • XOA won't start HTTPS listen on configured port

    29
    0 Votes
    29 Posts
    8k Views
    julien-fJ
    @bill-gertz It depends of how you install it, but it look ok. In our appliances we install and run xo-server as a global service, and there is only /etc/xo-server/config.toml which is used for user customization (you could remove it and it would still work).
  • can we run simple bash sript in cron in xoa?

    5
    0 Votes
    5 Posts
    534 Views
    akurzawaA
    I can put the script everywhere - but I want to avoid non standard config. In case of failure of {system} I'm reinstalling it, and restoring config from file. I don't need to remember that I've put some fancy staff somewhere on the lan.
  • This topic is deleted!

    2
    1
    0 Votes
    2 Posts
    31 Views
  • Restore backup with XO community ed, does not find any destination SRs

    3
    0 Votes
    3 Posts
    981 Views
    G
    @Danp thanks for responding. Your suggestions are very good, caused me to check other things and reveal some things: My metadata and XOA config backups have started to fail with the error 'no such object' The metadata/config backup job's pool parameter was highlighted red with a warning symbol, showing a long GUID style id. I could not update the pool parameter - I have the spinning circle (of doom). After deleting the metadata/config backup job, I cannot recreate it - similar problem with pool parameter, none shown plus spinnng circle (of ongoing doom). To cut a story shorter - I think I have fixed my problem by re-attaching the hosts/SRs to my XOA-community VM... Then I also noticed that the 'successful' backups are not successful as when I looked at their logs by clicking on the green 'successful' indicator in the backup logs I see they are skipping missing VMs. Terrific. So I have now updated all the jobs and reselected each VM, saved them and then re-run the backups. So my big concern (understatement) is my XOA host VM backups have gone bad without any external changes, other than my applying XOA community updates. Do I need to check the backups carefully after every update? Surely not? Perhaps my method of updating, by running a script is horribly HORRIBLY flawed?? I found and have used an update script by Jarli01, applied as noted here. I've got a script to pull the latest update script and execute it. Not clear if I should inbclude the '-b stable' parameter. #!/bin/bash sudo curl https://raw.githubusercontent.com/Jarli01/xenorchestra_updater/master/xo-update.sh | bash To answer your useful questions: Q. When did you last pull from the source? A. Assume you mean 'when did I last retore from the backup volume'? Never. This is a first time for me. Q. What type of SR(s) should be showing? A. I have two: a local xcp-ng host (also hosting the XOA-community VM being used) and a remote xcp-ng host. Although it does seem an SR is an xcp-ng host, I am confused to the nomclature of 'SR' - I will try to find that out with Google ;). However, as mentioned above my hosts had disconnected themselves... WTF? Q. Are you able to target an SR when defining a new backup job? A. No! OMG. Also noticed the VMs have stopped being shown, no hostts connected!! WTF? Q. Have I opened dev tools (F12), checked console for errors? A. No, but I will when I next report something. Checking the backup page today I do get an error in index.js. I am happy to debug more and return trace/debug data if it is useful; below is what I see today on the backups page: [React Intl] Error formatting time. RangeError: date value is not finite in DateTimeFormat.format() index.js:525 Z index.js:525 formatTime index.js:719 value index.js:1168 React 81 _renderOverlay Portal.js:84 componentDidMount Portal.js:47 m factory.js:665 React 12 notifyAll close closeAll perform perform perform S closeAll perform batchedUpdates batchedUpdates dispatchEvent Q. Check system logs? A. Assume you mean from xoa vm? I will include those next time I post - when I find where they are. Google will no doubt help me out there.
  • Workload Balancing Issue.

    1
    0 Votes
    1 Posts
    237 Views
    No one has replied
  • Build error during upgrade

    Solved
    5
    0 Votes
    5 Posts
    746 Views
    P
    I have isolated the problem. The issue was with dynamic memory allocation on our test server. This was definitely a localized issue. Cheers
  • Feature request - RDP Link in Console window

    4
    1 Votes
    4 Posts
    1k Views
    A
    @olivierlambert https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-uri a plain rpd://ip-address seems to work fine in Mac OS and iOS but more information may be needed on windows clients not sure if the uris work on all systems the same. EDIT Looks like windows doesn't support URI to RDP but Microsoft makes it work for basically every other OS. I still think its a worthwhile feature even if it is slightly less functional because Microsoft is weird.
  • Zstd instead of zlib?

    5
    0 Votes
    5 Posts
    255 Views
    ForzaF
    Normal backup jobs. In this case it is the "full" copy of the VDI I just moved to a local SR (due to maintenance on the NFS) I mentioned here https://xcp-ng.org/forum/topic/2247/moved-vdi-delta-backup-restarts-on-full. I see that Control Domain load is high and in top I see this: [image: 1574324430375-ea0c91a9-d64d-4403-b97e-e00103b6f7a2-image.png] At the moment it is only one disk left to transfer, but there were 3 to start with, so the load was higher in the beginning.
  • Moved VDI, delta backup restarts on full

    3
    0 Votes
    3 Posts
    351 Views
    ForzaF
    OH ok. Hope you can prioritize this soon
  • Continuous replication fails every time

    31
    1
    0 Votes
    31 Posts
    8k Views
    olivierlambertO
    Your CR issue might be related to a XO bug on master, not too a XCP-ng issue
  • VDI_IO_ERROR(Device I/O errors) when trying to restore a Delta

    6
    0 Votes
    6 Posts
    990 Views
    V
    Sorry, I was trying to execute the git command in the wrong directory, my bad. Everything worked perfectly, the restores worked now. Thank you very much @Danp.
  • error on copy VM cross pools

    12
    0 Votes
    12 Posts
    854 Views
    julien-fJ
    I'm working on it at this very moment, I'll let you know what I find.
  • Continuous Replication -> SR Disk space

    2
    0 Votes
    2 Posts
    339 Views
    olivierlambertO
    Hi, There is different things one must consider during CR: SR type: block based or file based? First one will be thick provisioned, so plan a lot of space (eg: local LVM, LVM over iSCSI etc.). Local ext/XFS, NFS or XOSAN aren't affected by this problem Snapshot left: to do a delta, we must have a way to compare to something. The snapshot which left on the SR is the one that will be used for the next backup. It will be compared to the current disk state and only the delta will be sent. So that's perfectly normal "Job canceled to protect the VDI chain": this is a protection to avoid doing another backup while the previous removed snapshot isn't coalesced. You have a link in the message, please refer to the documentation for details
  • Restore of VMs

    15
    0 Votes
    15 Posts
    1k Views
    R
    Sure ... this is worth a try!
  • Disaster Recovery with Delta

    Solved
    3
    0 Votes
    3 Posts
    345 Views
    ForzaF
    @olivierlambert right. Of course. Forgot about that option
  • Backup - some VMs skipped (unhealthy VDI chain)

    6
    1
    0 Votes
    6 Posts
    947 Views
    R
    So im guessing its failing because it hasnt coalsced on one of the SRs yet.. Thx for the quick reply
  • Backup retry on failure

    4
    0 Votes
    4 Posts
    390 Views
    DanpD
    Not dead, just not a top priority.
  • Health say: VDIs attached to Control Domain

    Solved
    6
    1
    0 Votes
    6 Posts
    5k Views
    J
    Does that happen automatically? ... edit xvdd refers to the cdrom. Topic solved now. Thanks all.
  • XCP Guest Tools SUSE Linux

    22
    0 Votes
    22 Posts
    6k Views
    stormiS
    So don't trust XCP-ng Center on this, I'd say
  • Continuous Replication -> Exchange Log

    12
    0 Votes
    12 Posts
    1k Views
    akurzawaA
    @mts said in Continuous Replication -> Exchange Log: If you use the native windows-backup or a third-party application it will delete the transaction-log after backup. How can I achieve the same with xen-orchestra? I'm running low on disk-space right now... I think that you confusing physical (layer) backup with logical backup. XOA can backup/replicate/snapshot phisical medium which is a hard disk presented to your VM. It has nothing to do with the data in the VM (logical layer).