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
  • Xen Orchestra Application XOA Deployment Options/Best Practices.

    5
    0 Votes
    5 Posts
    2k Views
    G
    @karlisi Thanks for the reply. If you go to http://your.xcp-ng.host.ip you will receive web UI OK I understand now - thanks. They are calling community version (from sources) XO and precompiled virtual appliance (paid version) XOA. Thanks for the clarification.
  • Can't delete template

    4
    0 Votes
    4 Posts
    2k Views
    J
    @olivierlambert Okey... it can be deleted from there directly, I don't know why I didn't try that in the first place. Thanks
  • Adding GPU From XO

    10
    1
    0 Votes
    10 Posts
    3k Views
    T
    Hey I just found this topic, did you manage to get the Quadro P400 working in XCP-NG?
  • S3 Backups **APPRECIATION THREAD**

    1
    1 Votes
    1 Posts
    222 Views
    No one has replied
  • Restore Backups from a different XO

    4
    0 Votes
    4 Posts
    1k Views
    S
    Thank you! So I must be doing something wrong as I'm getting the following error when I add in the old NFS mount which has the backups: [image: 1640195910502-dc65c765-1542-4c58-8082-fbb54e33f3c9-image.png] The /mnt/Tank/VMs mount contains the previous XO backups as well as some active VM storage: [image: 1640196114557-680455d2-9559-4fe9-a8a2-127762d5b61b-image.png] FreeNAS has two 10Gbe nics which are isolated based on the type of traffic: 10.10.1.5 is for VM traffic 10.10.2.3 is for Backups/Migration traffic
  • XO Error Loading Health Tab

    5
    1
    0 Votes
    5 Posts
    682 Views
    S
    I can confirm it's now working. Thank You! Health page loads fine w/ the latest commit.
  • Custom templates in hub?

    1
    1 Votes
    1 Posts
    245 Views
    No one has replied
  • constant tasks every few seconds "Xapi#getResource /rrd_updates"

    7
    0 Votes
    7 Posts
    768 Views
    TheNorthernLightT
    @heman Yes. The management interface on each host (Eth4) is in the same vlan as XOA's management interface. Storage vlans on each host (Bond0) is in the same storage vlan as the second interface on XOA (setup for backups) with no gateway.
  • Create virtual network but block internet access?

    3
    0 Votes
    3 Posts
    1k Views
    fohdeeshaF
    @zevgeny Hi, yes this can be easily done by just creating a new network as you described. VMs will be able to access anything in that network/subnet without extra configuration. If they ever need to talk to things outside of that network/subnet (like the internet), they would need a router to route the traffic between subnets
  • LDAP authentication plugin on XOA

    Solved
    4
    0 Votes
    4 Posts
    601 Views
    K
    @olivierlambert Thanks!
  • IMPORT_ERROR after trying to import VM I just exported from XOA

    Solved
    5
    0 Votes
    5 Posts
    803 Views
    P
    @danp Sweet that worked! Thank you!! This things pretty kickass, I was just able to duplicate a VM that was rendering heavy CG to a completely different node and had that duplicate VM rendering in less than 5 mins... Thank you so much for the assistance!
  • Creating support tickets no longer works

    7
    3
    0 Votes
    7 Posts
    1k Views
    Marc.pezinM
    @s-pam Yes indeed, this link is currently broken because of the new support platform. Thanks for the feedback, our team will fix it as soon as possible.
  • Problems building from source

    30
    0 Votes
    30 Posts
    11k Views
    julien-fJ
    @danp It's a warning for an indirect dependency (@vuepress/core > url-loader), I don't think we should worry about it.
  • Stuck tasks after enabling Usage Reporting

    8
    1
    0 Votes
    8 Posts
    1k Views
    R
    @heman Yep, I have a separate storage network from my management network. Thanks for the tip! I will check it out...
  • A Differential Restore in XO failed and I don't know why. Please help

    4
    0 Votes
    4 Posts
    648 Views
    olivierlambertO
    Not your VMs up to date, your XO version. Be sure to be on the latest commit.
  • bug: UEFI boot parameters not preserved with Delta backups

    6
    0 Votes
    6 Posts
    1k Views
    julien-fJ
    Thank you all for your help Please try the fix-uefi-delta-backups branch and keep me posted.
  • Backup/Smart mode broken

    7
    0 Votes
    7 Posts
    663 Views
    julien-fJ
    @andrew It's now fixed, thank you
  • Disaster Recovery Backup - how to restore?

    14
    0 Votes
    14 Posts
    4k Views
    olivierlambertO
    This need to be groomed first. But we are pretty tight this month. Ping @marcungeschikts
  • Some VMs cannot be migrated without first rebooting

    4
    0 Votes
    4 Posts
    679 Views
    DanpD
    I know this has come up before. It may have been in the old XO forum.
  • "VDI_MISSING" error message upon trying to boot a UEFI VM...

    1
    0 Votes
    1 Posts
    382 Views
    No one has replied