Subcategories

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

    457 Topics
    3k Posts
    olivierlambertO
    Not yet, I think it's already planned, check https://feedback.vates.tech
  • ACLs, Self-service, Cloud-init, Load balancing...

    101 Topics
    840 Posts
    olivierlambertO
    That's a very good question, let me ask internally. Ping @pdonias he might know the answer
  • All XO backup features: full and incremental, replication, mirrors...

    480 Topics
    5k Posts
    JSylvia007J
    @florent - Here is the JSON. Removing the Snapshots now and trying again with the merge synchronously toggled off. Note the remote is a Synology using NFS, if that matters. { "data": { "mode": "delta", "reportWhen": "failure" }, "id": "1774449668020", "jobId": "7fc5396a-5383-4dab-91fe-6758eb8b7474", "jobName": "ADMIN VMS", "message": "backup", "scheduleId": "d09acecc-cc98-4cfd-84a4-5bfd1575b20f", "start": 1774449668020, "status": "failure", "infos": [ { "data": { "vms": [ "b827a2ad-361d-e44c-19ca-f9d632baacf8", "afe4bee2-745d-da4a-0016-c74751856556" ] }, "message": "vms" } ], "tasks": [ { "data": { "type": "VM", "id": "b827a2ad-361d-e44c-19ca-f9d632baacf8", "name_label": "ADMIN-VM01" }, "id": "1774449670085", "message": "backup VM", "start": 1774449670085, "status": "success", "tasks": [ { "id": "1774449670095", "message": "clean-vm", "start": 1774449670095, "status": "success", "end": 1774449670170, "result": { "merge": false } }, { "id": "1774449670451", "message": "snapshot", "start": 1774449670451, "status": "success", "end": 1774449672123, "result": "dad1585e-4094-88aa-4894-d521fae5cb63" }, { "data": { "id": "9f2e49f9-4e87-444a-aa68-4cbf73f28e6d", "isFull": false, "type": "remote" }, "id": "1774449672123:0", "message": "export", "start": 1774449672123, "status": "success", "tasks": [ { "id": "1774449673924", "message": "transfer", "start": 1774449673924, "status": "success", "end": 1774449690670, "result": { "size": 283115520 } }, { "id": "1774449697186", "message": "clean-vm", "start": 1774449697186, "status": "success", "tasks": [ { "id": "1774449698513", "message": "merge", "start": 1774449698513, "status": "success", "end": 1774449706694 } ], "end": 1774449706704, "result": { "merge": true } } ], "end": 1774449706707 } ], "end": 1774449706707 }, { "data": { "type": "VM", "id": "afe4bee2-745d-da4a-0016-c74751856556", "name_label": "ADMIN-VM02" }, "id": "1774449670088", "message": "backup VM", "start": 1774449670088, "status": "failure", "tasks": [ { "id": "1774449670096", "message": "clean-vm", "start": 1774449670096, "status": "success", "end": 1774449670110, "result": { "merge": false } }, { "id": "1774449670452", "message": "snapshot", "start": 1774449670452, "status": "success", "end": 1774449673024, "result": "77d9de45-e6b7-d202-9245-7db47b6fd9c9" }, { "data": { "id": "9f2e49f9-4e87-444a-aa68-4cbf73f28e6d", "isFull": true, "type": "remote" }, "id": "1774449673024:0", "message": "export", "start": 1774449673024, "status": "failure", "tasks": [ { "id": "1774449674094", "message": "transfer", "start": 1774449674094, "status": "failure", "end": 1774451157435, "result": { "text": "HTTP/1.1 500 Internal Error\r\ncontent-length: 266\r\ncontent-type: text/html\r\nconnection: close\r\ncache-control: no-cache, no-store\r\n\r\n<html><body><h1>HTTP 500 internal server error</h1>An unexpected error occurred; please wait a while and try again. If the problem persists, please contact your support representative.<h1> Additional information </h1>VDI_IO_ERROR: [ Device I/O errors ]</body></html>", "message": "stream has ended with not enough data (actual: 397, expected: 2097152)", "name": "Error", "stack": "Error: stream has ended with not enough data (actual: 397, expected: 2097152)\n at readChunkStrict (/opt/xo/xo-builds/xen-orchestra-202603241416/@vates/read-chunk/index.js:88:19)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async #read (file:///opt/xo/xo-builds/xen-orchestra-202603241416/@xen-orchestra/xapi/disks/XapiVhdStreamSource.mjs:98:65)\n at async generator (file:///opt/xo/xo-builds/xen-orchestra-202603241416/@xen-orchestra/xapi/disks/XapiVhdStreamSource.mjs:199:22)\n at async Timeout.next (file:///opt/xo/xo-builds/xen-orchestra-202603241416/@vates/generator-toolbox/dist/timeout.mjs:14:24)\n at async generatorWithLength (file:///opt/xo/xo-builds/xen-orchestra-202603241416/@xen-orchestra/disk-transform/dist/Throttled.mjs:12:44)\n at async Throttle.createThrottledGenerator (file:///opt/xo/xo-builds/xen-orchestra-202603241416/@vates/generator-toolbox/dist/throttle.mjs:53:30)\n at async ThrottledDisk.diskBlocks (file:///opt/xo/xo-builds/xen-orchestra-202603241416/@xen-orchestra/disk-transform/dist/Disk.mjs:26:30)\n at async Promise.all (index 0)\n at async ForkedDisk.diskBlocks (file:///opt/xo/xo-builds/xen-orchestra-202603241416/@xen-orchestra/disk-transform/dist/SynchronizedDisk.mjs:18:30)" } }, { "id": "1774451158098", "message": "clean-vm", "start": 1774451158098, "status": "success", "end": 1774451158157, "result": { "merge": false } } ], "end": 1774451158216 } ], "end": 1774451158218, "result": { "errno": -2, "code": "ENOENT", "syscall": "stat", "path": "/opt/xo/mounts/9f2e49f9-4e87-444a-aa68-4cbf73f28e6d/xo-vm-backups/afe4bee2-745d-da4a-0016-c74751856556/vdis/7fc5396a-5383-4dab-91fe-6758eb8b7474/530abab7-9ea9-43d4-be6e-acb3fbf67065/20260325T144114Z.alias.vhd", "message": "ENOENT: no such file or directory, stat '/opt/xo/mounts/9f2e49f9-4e87-444a-aa68-4cbf73f28e6d/xo-vm-backups/afe4bee2-745d-da4a-0016-c74751856556/vdis/7fc5396a-5383-4dab-91fe-6758eb8b7474/530abab7-9ea9-43d4-be6e-acb3fbf67065/20260325T144114Z.alias.vhd'", "name": "Error", "stack": "Error: ENOENT: no such file or directory, stat '/opt/xo/mounts/9f2e49f9-4e87-444a-aa68-4cbf73f28e6d/xo-vm-backups/afe4bee2-745d-da4a-0016-c74751856556/vdis/7fc5396a-5383-4dab-91fe-6758eb8b7474/530abab7-9ea9-43d4-be6e-acb3fbf67065/20260325T144114Z.alias.vhd'\nFrom:\n at NfsHandler.addSyncStackTrace (/opt/xo/xo-builds/xen-orchestra-202603241416/@xen-orchestra/fs/dist/local.js:21:26)\n at NfsHandler._getSize (/opt/xo/xo-builds/xen-orchestra-202603241416/@xen-orchestra/fs/dist/local.js:113:48)\n at /opt/xo/xo-builds/xen-orchestra-202603241416/@xen-orchestra/fs/dist/utils.js:29:26\n at new Promise (<anonymous>)\n at NfsHandler.<anonymous> (/opt/xo/xo-builds/xen-orchestra-202603241416/@xen-orchestra/fs/dist/utils.js:24:12)\n at loopResolver (/opt/xo/xo-builds/xen-orchestra-202603241416/node_modules/promise-toolbox/retry.js:83:46)\n at new Promise (<anonymous>)\n at loop (/opt/xo/xo-builds/xen-orchestra-202603241416/node_modules/promise-toolbox/retry.js:85:22)\n at NfsHandler.retry (/opt/xo/xo-builds/xen-orchestra-202603241416/node_modules/promise-toolbox/retry.js:87:10)\n at NfsHandler._getSize (/opt/xo/xo-builds/xen-orchestra-202603241416/node_modules/promise-toolbox/retry.js:103:18)" } } ], "end": 1774451158219 }
  • Everything related to Xen Orchestra's REST API

    83 Topics
    624 Posts
    K
    @gduperrey Worked swell, thanks
  • Terraform, Packer or any tool to do IaC

    49 Topics
    463 Posts
    dalemD
    Version 1.4.0 is released: https://codeberg.org/NiXOA/system/releases/tag/v1.4.0 It includes significant changes and improvements, including: dedicated getting started section, migration to valkey, only needing to clone system, and helper scripts. the xen-orchestra-ce nixpkg now references the libvhdi nixpkg, and the core flake now references and pulls from the xen-orchestra-ce repo as an overlay. System (the user input flake) now uses the Core repo as an overlay, reducing the need to clone both locally AND allowing system to pull new updates and releases from core. XO, and libvhdi as needed. The next goal is: Make an xsconsole-like TUI Automate package updates for libvhdi and xen-orchestra-ce using CI/CD pipelines Submit libvhdi and xen-orchestra-ce as official nixpkgs
  • Audit log export?

    5
    0 Votes
    5 Posts
    1k Views
    badrAZB
    Hi, Audit logs aren't in the same location than the xo-server logs. To get Audit logs you can use this command xo-cli audit.getRecords which returns an array of records. xo-cli audit.getRecords This command has an option ndjson, which allows you to export logs in a ndjson format. xo-cli audit.getRecords ndjson="json:true" @=<outputPath>
  • Question about XO pool network

    5
    0 Votes
    5 Posts
    2k Views
    A
    Hi @olivierlambert , gotcha, no worries. I will just leave it there. Thank you for the reply. Andy
  • Backups stuck at "started" when it looks like they finished

    4
    0 Votes
    4 Posts
    932 Views
    T
    @Rocky most like a connection issue, but since you already restarted I think the logs are already gone. If it was a one-off I wouldn't worry about it (but do make sure that the backup is actually working, may be a good idea to do another full backup).
  • XO debian 10 cloud ready VM template (cloud-init)

    24
    -1 Votes
    24 Posts
    12k Views
    M
    I was able to find the reason XO is not working with cloud-init. XO attaches iso with the cloud-config data as additional disk xvdb and it does not work. But if you provide it as a cd? It will. That is why - as for now you will need to create your own iso and attach it as a cd-rom. You do that this way: Get your files ready (meta-data network-config user-data). My examples below: metadata: instance-id: local-nocloud local-hostname: myhost.example.com network-config: network: version: 1 config: - type: physical name: eth0 subnets: - type: static address: 10.0.0.5/24 gateway: 10.0.0.254 - type: nameserver address: - 8.8.8.8 - 8.8.4.4 search: - example.com - type: physical name: eth1 subnets: - type: static address: 192.168.0.5/24 user-data: #cloud-config ### RUN CMD runcmd: - /usr/bin/apt -y install mc - /usr/bin/date >> /root/testfile # set system default user system_info: default_user: name: testuser gecos: Default Cloud User # password auth - comment out if not using passwords password: testpassword ssh_pwauth: true chpasswd: { expire: false } # do some package management #package_update: true packages: - iptraf - mtr - screen - net-tools - atop Generate iso genisoimage -output myiso.iso -volid cidata -joliet -rock user-data meta-data network-config Upload iso to XO home -> storage -> iso's -> disks -> new disk Prepare VM/template Install Debian 10.6 with xo-tools install cloud-init and cloud-initramfs-growroot remove all network configuration leave just "allow-hotplug ethxxx" (network config will be added in /etc/network/interfaces/50-cloud-init. It will not overwrite yours) shutdown the machine and create the template if you want or just restart VM. DO NOT LET IT BOOT! - keep it in grub. attach your iso let it run It will do whatever you need on the machine.
  • XO templates cd image problem

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    M
    This is a great news as I will be able to have all my scripts written as of now and xo-cli in one place. Thanks @olivierlambert For those who are looking for direct instructions ... on Debian 10.x: # install npm: apt install npm # install xo-cli: npm install -g xo-cli
  • Detached Backups

    Moved
    7
    0 Votes
    7 Posts
    2k Views
    K
    @olivierlambert said in Detached Backups: You can do that already if you like (combined rolling snap and delta backup). But what's the point? Oh, wow. You can combine backup methods in the same job (as long as they are compatible methods (i.e. Delta and CR). This is cool. I currently have separate jobs for my deltas and CRs. I'll need to make time to make the changes, but this will simply things greatly. I'll even throw in a few extra snapshots to retain. So, yea, this is pretty much what I was thinking of. I didn't realize it was there. Why would I need this? Well, when my WSUS installed the Xen drivers on all my Windows VMs, I went a day before realizing what happened. A snapshot would have been sufficient, if I had one from the day before. Instead, I restored the backup which broke the chain. @olivierlambert said in Detached Backups: edit: about your previous question, restoring without breaking the chain. That might be possible. In theory, after restore, we should take a snapshot before booting the backup and then re-link the restored VM to the backup folders. It's doable (renaming some folders correctly) but I'm not sure this will be very useful. I'll look into this when I get some time. Thanks.
  • Help with delta backups and retention

    Solved
    4
    3
    0 Votes
    4 Posts
    908 Views
    DanpD
    @spidernin If you go to Backup > Restore, it will show you the number of existing backups for each VM.
  • XOA updater, add old+new version numbers for each item

    5
    1
    0 Votes
    5 Posts
    829 Views
    rajaa-bR
    OK thanks for your answer. we'll look into that. Best regards.
  • 0 Votes
    1 Posts
    155 Views
    No one has replied
  • Importing vm to XCP-NG 8.2 fails

    5
    0 Votes
    5 Posts
    1k Views
    A
    Yep
  • Missing plugins.. ?

    plugins
    4
    0 Votes
    4 Posts
    2k Views
    olivierlambertO
    We decided to keep cloudinit available for everyone for now. So consider it as a gift
  • Modify xo-web with own Logo

    5
    0 Votes
    5 Posts
    1k Views
    rajaa-bR
    Hi, If you want to change the background color, you need to update the $side-menu-bg: #044b7f; in ~/xen-orchestra/packages/xo-web/src/index.scss . Best regards.
  • backup to s3 - backup and restore

    2
    0 Votes
    2 Posts
    354 Views
    olivierlambertO
    It's exactly the same process for any other backup.
  • Live Migration gone bad, Help!

    10
    0 Votes
    10 Posts
    2k Views
    R
    @stormi so now I have to just figure out how to delete the ghost vm before i reconnect the pool to XO. in xen center I can't delete it for some reason .. guess i'll try cli (never deleted a vm like that before)
  • cr vs delta backup

    2
    0 Votes
    2 Posts
    357 Views
    olivierlambertO
    That's precisely the difference: a delta backup is stored in a remote, a CR is stored in an SR.
  • Backup fails after upgrade 5.50.3

    13
    0 Votes
    13 Posts
    1k Views
    olivierlambertO
    Thanks for the ticket. Please continue to provide feedback in there, it won't be monitored here.
  • Backup File resotre errors

    4
    0 Votes
    4 Posts
    1k Views
    J
    @Rocky said in Backup File resotre errors: ntfs-3g Yes I have both those packages installed
  • File Restore Not working, little red triangle

    23
    0 Votes
    23 Posts
    8k Views
    R
    @Rocky special note, sometimes i get the little red triangle still, but if I click again on the partition it works.
  • Backup Restore Insufficient Space

    7
    2
    0 Votes
    7 Posts
    1k Views
    M
    Not a huge deal currently, but if I had a number of VDI's spread out, it could exeed any single available space which means I cant restore at all... Can this be done in an alternative way via CLI?
  • Remotes not showing help?...

    Solved
    2
    0 Votes
    2 Posts
    180 Views
    N
    Cancel that, I found out how to save the Config and import through Settings/Remotes/Config...