Subcategories

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

    404 Topics
    3k Posts
    olivierlambertO
    See https://docs.xen-orchestra.com/load_balancing
  • ACLs, Self-service, Cloud-init, Load balancing...

    96 Topics
    811 Posts
    olivierlambertO
    Indeed, and it's clearly stated at https://docs.xen-orchestra.com/community
  • All XO backup features: full and incremental, replication, mirrors...

    412 Topics
    4k Posts
    olivierlambertO
    Question for @pierrebrunet I assume
  • Everything related to Xen Orchestra's REST API

    69 Topics
    545 Posts
    S
    I was curious if there had been any updates to mounting ISOs via the API? Thanks.
  • Terraform, Packer or any tool to do IaC

    39 Topics
    370 Posts
    C
    Hi all, I was able to create VMs using my Terraform code until I set the parameter destroy_cloud_config_vdi_after_boot to true. Initially, it created a virtual machine and, after booting, removed the Cloud-Init disk as expected. However, from that point on, the VM started being created without a disk, even though tofu apply shows the following: + disk { + name_label = "carlo123-osdisk" + position = (known after apply) + size = 32212254720 + sr_id = "589dad4d-2391-c2a9-589c-d34a9a7757ea" + vbd_id = (known after apply) + vdi_id = (known after apply) } tofu apply failes with: │ Error: jsonrpc2: code -32000 message: Can't create cloud init config drive for VM without disks: {"message":"Can't create cloud init config drive for VM without disks","name":"Error","stack":"Error: Can't create cloud init config drive for VM without disks\n at Xapi.createCloudInitConfig (file:///opt/xo/xo-builds/xen-orchestra-202510281611/@xen-orchestra/xapi/vm.mjs:418:13)\n at Xo.<anonymous> (file:///opt/xo/xo-builds/xen-orchestra-202510281611/packages/xo-server/src/api/vm.mjs:191:26)\n at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202510281611/@vates/task/index.js:175:22)\n at Task.run (/opt/xo/xo-builds/xen-orchestra-202510281611/@vates/task/index.js:159:20)\n at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202510281611/packages/xo-server/src/xo-mixins/api.mjs:469:18)"} │ │ with module.vm.xenorchestra_vm.vm, │ on ../modules/vm/main.tf line 20, in resource "xenorchestra_vm" "vm": │ 20: resource "xenorchestra_vm" "vm" {``` This my main.tf data "template_file" "cloud_config" { template = file("${path.module}/cloud-init.yaml.tftpl") vars = { hostname = var.vm_name } } data "template_file" "cloud_network_config" { template = file("${path.module}/network-config.yaml.tftpl") vars = { ip_address = var.ip_address netmask = var.netmask gateway = var.gateway dns = join(", ", var.dns) } } resource "xenorchestra_vm" "vm" { name_label = var.vm_name name_description = var.description template = var.template_uuid cpus = var.cpus memory_max = var.memory * 1024 * 1024 hvm_boot_firmware = "uefi" auto_poweron = false destroy_cloud_config_vdi_after_boot = true power_state = "Running" clone_type = "full" disk { sr_id = var.sr_uuid name_label = "${var.vm_name}-osdisk" size = var.disk_size * 1024 * 1024 * 1024 } dynamic "disk" { for_each = var.data_disks content { sr_id = var.sr_uuid name_label = "${var.vm_name}-${disk.value.name}" size = disk.value.size * 1024 * 1024 * 1024 } } network { network_id = var.network_id } cloud_config = var.ip_address != "" ? data.template_file.cloud_config.rendered : null cloud_network_config = var.ip_address != "" ? data.template_file.cloud_network_config.rendered : null When I commented out the cloud_config line the vm is created without a disk. Xensource.log also shows the following : Oct 28 16:23:59 dacshyp001 xapi: [ info||11548 :::80|dispatch:VM.provision D:c4cf2cdf383f|taskhelper] task Async.VM.provision R:57a7bfeaacf3 forwarded (trackid=e7b951e8d29a4f9c673e51262f6144c9) Oct 28 16:23:59 dacshyp001 xapi: [ info||11548 HTTPS 172.28.4.11->:::80|Async.VM.provision R:57a7bfeaacf3|xapi_vm_helpers] VM.set_is_a_template('false') Oct 28 16:23:59 dacshyp001 xapi: [error||188 |xapi events D:596426783cc2|xenops] events_from_xapi: missing from the cache: [ ff4ff6a6-379a-4ec0-9dd2-ae28f8b6bc2c ] Oct 28 16:23:59 dacshyp001 xapi: [error||188 |xapi events D:596426783cc2|xenops] events_from_xapi: missing from the cache: [ ff4ff6a6-379a-4ec0-9dd2-ae28f8b6bc2c ] Running the following command: [15:44 dacshyp002 ~]# xe vm-list uuid=ff4ff6a6-379a-4ec0-9dd2-ae28f8b6bc2c uuid ( RO) : ff4ff6a6-379a-4ec0-9dd2-ae28f8b6bc2c name-label ( RW): Control domain on host: dacshyp001 power-state ( RO): running XOA commit 45ef6 I’m not sure where to start troubleshooting this, any help would be appreciated. Thanks in advance, Carlo
  • Unable to import disks, VMs, and create recipes

    kubernetes import vms recipes disk
    11
    0 Votes
    11 Posts
    2k Views
    DanpD
    @wawa That doesn't sound right. Since you're running XOA, I would suggest contact their support to have them investigate.
  • Backup Failed

    5
    0 Votes
    5 Posts
    951 Views
    S
    @olivierlambert Thank you, I didn't know this. Just reading the docs about it.
  • Backup broken

    6
    0 Votes
    6 Posts
    406 Views
    olivierlambertO
    Congrats @Andrew : you are now noted as a top contributor Thank you and all your efforts on S3 testing and reporting issues a lot!
  • S3 Backup Retention Not Deleting Old Backups

    14
    5
    0 Votes
    14 Posts
    2k Views
    olivierlambertO
    Dunno it's @florent you should ask
  • Alerts in XO/XOA?

    3
    1
    0 Votes
    3 Posts
    388 Views
    ForzaF
    @olivierlambert said in Alerts in XO/XOA?: it's in your dashboard view. Do you mean the Alarms section? It is not showing anything for me. There is no log showing past events.
  • Engineer page needed

    2
    0 Votes
    2 Posts
    360 Views
    olivierlambertO
    I don't think you can reset power state with XCP-ng Center
  • Notifications from Xen XCP Center in Xen Orchestra

    3
    1
    0 Votes
    3 Posts
    491 Views
    olivierlambertO
    That's correct
  • Ansible plugin, usage with AWX.

    14
    0 Votes
    14 Posts
    3k Views
    Tristis OrisT
    @shinuza got it, thanks. sad of course( "ansible needs a stable unique id to identify hosts" not realy, with manual host lists awx download new every time and remove old\chenged info. same for netbox integration. for most of task just enough tags like linux, db, etc.
  • Unable to connect remote host

    Solved
    8
    2
    0 Votes
    8 Posts
    5k Views
    olivierlambertO
    It happens No worries
  • Disaster / Continuous Backups issue

    3
    0 Votes
    3 Posts
    527 Views
    M
    @olivierlambert Thank you
  • Import VM disk failed

    Solved
    3
    1
    0 Votes
    3 Posts
    1k Views
    R
    @danp Forgot to reply in time I updated to the latest version of XO (from sources). Now everything imports fine. You can close this thread if you want.
  • Task has already ended errors during backup

    4
    0 Votes
    4 Posts
    396 Views
    olivierlambertO
    Weird… Can you remove the snapshot of the failing VM and try again to see if you still have the error? To me it's like the delta capability on XCP-ng side is failing on a specific disk
  • [Solved] create XO account from ssh

    Solved
    12
    0 Votes
    12 Posts
    5k Views
    B
    @gskger said in create XO account from ssh: I completely missed that in the troubleshooting documentation but it is already there - nice @olivierlambert said in create XO account from ssh: As @gskger siad, this was already documented and visible by searching the term "recover" in the search bar Uh - I tried a lot of other search terms, just not recover. Anyway - I'm back on track, thank you very much for all your help.
  • Any way to force the next delta backup to be full?

    7
    0 Votes
    7 Posts
    1k Views
    M
    Nice one, thanks guys.
  • Understanding backup sizes

    5
    0 Votes
    5 Posts
    1k Views
    olivierlambertO
    "It's complicated". The simple way is to copy your VHD to create a new one that will be unfragmented.
  • Setting ntp time in XOA

    4
    0 Votes
    4 Posts
    1k Views
    olivierlambertO
    You set up your timezone, not your time sync. Please open a ticket we can assist to check if your virtual appliance is correctly synced
  • Delta Backup Changes in 5.66 ?

    28
    0 Votes
    28 Posts
    11k Views
    DarkbeldinD
    @andrewreid XO team has released a new version 5.66.2 for XOA and new sources for the XO community that should fix most of the recent backup issue, so please update to latest and report back if needed.
  • Delta Backups Failing: AWS.S3.uploadPartCopy: CPU too busy

    8
    1
    0 Votes
    8 Posts
    1k Views
    florentF
    @stevewest15 I don't have any advice of the fiability of b2 Their design require us to make a minor modification to our upload service . During a full xva backup to a S3 like service, each part uploaded is uploaded along its hash and that is used to control the integrity
  • Can I restore a VDI selected from VM's delta backup?

    4
    0 Votes
    4 Posts
    623 Views
    olivierlambertO
    I meant to create the issue on Github, not the feature (even if it's welcome)
  • Install pool-patches fails

    6
    0 Votes
    6 Posts
    1k Views
    olivierlambertO
    +1