Subcategories

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

    256 Topics
    2k Posts
    W

    @DustinB Totally in line with you but in the meantime since i figure this cli out too now i am totally ok with what i have currently and its not too pressing.

  • ACLs, Self-service, Cloud-init, Load balancing...

    75 Topics
    655 Posts
    olivierlambertO

    @nathanael-h might help too

  • All XO backup features: full and incremental, replication, mirrors...

    281 Topics
    3k Posts
    F

    @MathieuRA Thank you!

  • Everything related to Xen Orchestra's REST API

    43 Topics
    311 Posts
    olivierlambertO

    He's asking about XO ACLs, so it won't be with xe but with XO πŸ˜‰

    You can get that with the JSON RPC API, see https://docs.xen-orchestra.com/architecture#xo-cli-cli for more details.

  • Terraform, Packer or any tool to do IaC

    22 Topics
    198 Posts
    W

    hi guys

    im rather new to XCP and Terraform.

    I am an adult student in system and network engineering (last year) and for my project i have chosen to deploy VMs with terraform. configuring with most likely ansible.

    So far i am able to deploy a VM however at first run of my ''playbook'' it creates the VM and no disk is being created. second run the disk is created and attached but in a diconnected state.

    then i need to shut down the VM in XO and run my terraform template once again, the VM is being powered on and the disk is connected.

    im not sure what causes this behaviour.

    here is my current template.

    here is my current template.

    terraform { required_providers { xenorchestra = { source = "terra-farm/xenorchestra" version = "~> 0.26.0" } } } provider "xenorchestra" { url = "wss://"my_xo_ip" username = "myusername" password = "Mypassword" insecure = true } # Fetch the template data "xenorchestra_template" "vm_template" { name_label = "Terraform_Template_Win_Core" } # Fetch the network data "xenorchestra_network" "network" { name_label = "eth0" } # Fetch the storage repository data "xenorchestra_sr" "sr" { name_label = "Local storage" } # Create the VM with explicit dependency on the storage repository resource "xenorchestra_vm" "vm1" { name_label = "terraform_VM" template = data.xenorchestra_template.vm_template.id cpus = 2 memory_max = 4294967296 # Network configuration network { network_id = data.xenorchestra_network.network.id } # Disk configuration with explicit dependency on storage repository disk { sr_id = data.xenorchestra_sr.sr.id size = 10737418240 name_label = "VM root volume" } # CD-ROM configuration cdrom { id = "09ab237e-9a35-4d88-b787-24c1b6fa7779" } # Automatically power on the VM power_state = "Running" # Ensure the VM depends on the successful creation of the storage repository depends_on = [data.xenorchestra_sr.sr] }

    its also suboptimal as i then would need to run the windows ISO from the XO console..

    any tips would be greatly appreciated.

  • Migration fails: VDI_COPY_FAILED(End_of_file)

    7
    0 Votes
    7 Posts
    27 Views
    B
    vm.copy { "vm": "7a6434bc-8dce-40e0-879f-a739a072f99a", "sr": "36a86edc-f16e-abad-b8a4-6f7f0f60aad2", "name": "DNS0_COPY" } { "code": "VDI_COPY_FAILED", "params": [ "End_of_file" ], "task": { "uuid": "2a25d3bc-b820-0971-d59a-b415dda0dc45", "name_label": "Async.VM.copy", "name_description": "", "allowed_operations": [], "current_operations": {}, "created": "20250110T18:45:52Z", "finished": "20250110T18:46:06Z", "status": "failure", "resident_on": "OpaqueRef:50fd6973-7a56-42e5-9a16-4a996f5facf9", "progress": 1, "type": "<none/>", "result": "", "error_info": [ "VDI_COPY_FAILED", "End_of_file" ], "other_config": {}, "subtask_of": "OpaqueRef:NULL", "subtasks": [ "OpaqueRef:e66f3549-776d-4b7c-ae41-98b495d6c046" ], "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vm_clone.ml)(line 80))((process xapi)(filename list.ml)(line 110))((process xapi)(filename ocaml/xapi/xapi_vm_clone.ml)(line 122))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/xapi_vm_clone.ml)(line 130))((process xapi)(filename ocaml/xapi/xapi_vm_clone.ml)(line 171))((process xapi)(filename ocaml/xapi/xapi_vm_clone.ml)(line 209))((process xapi)(filename ocaml/xapi/xapi_vm_clone.ml)(line 220))((process xapi)(filename list.ml)(line 121))((process xapi)(filename ocaml/xapi/xapi_vm_clone.ml)(line 222))((process xapi)(filename ocaml/xapi/xapi_vm_clone.ml)(line 442))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/xapi_vm.ml)(line 858))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))" }, "message": "VDI_COPY_FAILED(End_of_file)", "name": "XapiError", "stack": "XapiError: VDI_COPY_FAILED(End_of_file) at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202501091821/packages/xen-api/_XapiError.mjs:16:12) at default (file:///opt/xo/xo-builds/xen-orchestra-202501091821/packages/xen-api/_getTaskResult.mjs:13:29) at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202501091821/packages/xen-api/index.mjs:1068:24) at file:///opt/xo/xo-builds/xen-orchestra-202501091821/packages/xen-api/index.mjs:1102:14 at Array.forEach (<anonymous>) at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202501091821/packages/xen-api/index.mjs:1092:12) at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202501091821/packages/
  • Can .keeper files be deleted from the backup share?

    4
    0 Votes
    4 Posts
    40 Views
    D

    @propsoft said in Can .keeper files be deleted from the backup share?:

    @florent Thank you.
    I just like things to be 'tidy' that's why I asked.

    Then stop looking at hidden files.... HA

  • XO Ansible Dynamic Inventory Plugin - Group Variables Support?

    Solved
    5
    0 Votes
    5 Posts
    93 Views
    G

    Many thanks @nathanael-h & @shinuza , both approaches indeed work!

  • Is there an equivalent to [NOSNAP][NOBAK] for Exported VMs?

    11
    0 Votes
    11 Posts
    84 Views
    P

    @DustinB

    As to why you're seeing "VM not found!" I don't know if that is a XO alert or something you added into the screenshot, I've never seen that so I can't speak to it.

    I didn't add the text, all I did was highlight it with the red surround.

    Just testing the backups again using the 'Delta' method and '[NOSNAP][NOBAK] Data drive' as the name of the second drive , feeling more hopeful about this one though.

    I'm starting to like XO the more I use it, would be good to move to this instead of switching between 2 different XCP-ng Center EXEs. depending on the XCP-ng version on the host so I really hope I can get this to work.

    The scheduled hourly snapshot while the guest is running looks a great feature, although I need to learn to walk with this first before I go that far πŸ™‚

  • XO Console: Modifier keys stuck, unable to enter passwords

    10
    0 Votes
    10 Posts
    167 Views
    olivierlambertO

    Permissions will come in XO 6 this year πŸ™‚

  • XOA deploy error

    Solved
    28
    1 Votes
    28 Posts
    7k Views
    nathanael-hN

    @HamiltonWDS Thanks for the report. As it works with wget let use it! I'll switch from curl to wget in doc. In the meantime some colleagues will investigate more.

  • SAML Auth with Azure AD

    15
    1 Votes
    15 Posts
    2k Views
    olivierlambertO

    Sure, happy to have a PR on our doc!

  • XOA Failing on Check-in

    19
    0 Votes
    19 Posts
    389 Views
    olivierlambertO

    Thank you very much for the clear explanation @HamiltonWDS ! This will be really helpful so we find a solution for that. We might default to IPv4 for a lot higher latency, and in the future maybe having closer location mirrors. Let me discuss this internally and schedule an action for that.

  • How do you clone a VM to another host?

    11
    0 Votes
    11 Posts
    3k Views
    D

    The simple answer here is to use the Continuous Replication backup type. It'll copy the VM to another host on whatever schedule you set.

    It couldn't be simpler.

  • snapshot with memory crashing debian VM

    23
    0 Votes
    23 Posts
    125 Views
    M

    @dinhngtu Great. Let me know if you need anything else. Hope you find the issue. Never worked reliably here.... Sometimes does.

  • 2CRSI BIOS update not available

    23
    0 Votes
    23 Posts
    480 Views
    D

    @olivierlambert No, i changed nothing.The boot Mode is UEFI (see first screenshot).
    I will check if a downgrade (if it's possible) fix this issue.

  • Hub and Templates

    2
    0 Votes
    2 Posts
    46 Views
    olivierlambertO

    Hi!

    Yes, we'll develop the hub in the future, we just lack the resource internally to prioritize this against the rest, but as we a growing fast, expect more things coming in here πŸ™‚

  • Guest Tools Recognized as Wrong Version

    4
    0 Votes
    4 Posts
    78 Views
    olivierlambertO
    I have no idea for the legacy Linux tools, they are badly coded and you can get rid of them entirely We've been using them in prod since almost a year without any issue. 1.0 will come soon but it's already very stable and safe (it's written in Rust). Our goal is to get them in all Linux distro upstream ASAP.
  • Backup to S3 aborted what permissions are required?

    26
    0 Votes
    26 Posts
    4k Views
    A

    Posted this as I personally found this configuration quite involved, and the permissions earlier in the thread were insufficient to make it work when using AWS KMS for bucket encryption as well as the XO provided encryption secret.

  • How it works the NBD? I don't see improvements

    7
    0 Votes
    7 Posts
    139 Views
    M

    @olivierlambert If you want me to check anything else, just tell me and I will test for you.

    Many Thanks

    BR
    Marco

  • Cloud Config success

    7
    3 Votes
    7 Posts
    1k Views
    M

    @mtcoffee Thank you. Just what I need.

  • Warm Migration HOST_CANNOT_ATTACH_NETWORK

    3
    0 Votes
    3 Posts
    79 Views
    J

    @nick-lloyd So looked at the network ports on the host it is going to. They show disconnected due to they are in a bond lacp so the 2 network ports show as disconnected but the bond shows as connected. Also have other VMs running on the receiving host so know the bond is working.

  • possible bug for cpu stats in XOA 5.101.0

    4
    0 Votes
    4 Posts
    68 Views
    J

    Doesn’t the status history go back 1 year?

    Thanks for the info I’ll restart it and clear it

  • Can't copy between hosts

    8
    0 Votes
    8 Posts
    97 Views
    olivierlambertO

    Check XO Lite and XO 6, it will be closer to your habits, but not XenCenter is only community supported (we don't want to support it at Vates)

  • "Xenserver 8" patching

    27
    0 Votes
    27 Posts
    1k Views
    R

    @MathieuRA ok, thanks