• Updated configs for cloud-init

    3
    1 Votes
    3 Posts
    1k Views
    D
    @encryptblockr Yes, and I documented the process I used a while back here: https://xcp-ng.org/forum/topic/6821/cloud-init-success I just use the stock cloud image .ova file as my base image. for Ubuntu templates. I use the noble (24.04) image in quite a few instances from my template with success. Your post mentions cloud-init is not working - some tips to try troubleshooting, when the new VM is provisioned, (assuming you are able to login) I usually run "cloud-init status --wait" and when that completes I run "cloud-init status --long" for a summary of the state. Then you can grep for WARNING in /var/log/cloud-init.log for clues. If you weren't able to login to the VM - make sure your cloud-init config has the userid's, passwords and SSH keys you will need for login. See the example I posted here, since those are what I use in my lab or some variation. Feel free to share any troubleshooting steps you have taken, and I will help any way I can. I have setup hundreds of VM's from templates using cloud-init so I have seen many of the challenges it brings.
  • Guest VM UEFI NVRAM not saved / not persistent

    13
    0 Votes
    13 Posts
    1k Views
    stormiS
    We are implementing tests in our CI to detect this issue and protect against regressions, then we'll investigate the cause.
  • issue to deploy kubernetes

    2
    1 Votes
    2 Posts
    335 Views
    J
    @mbriet Ever figure this out? I'm getting the same exact thing...
  • Kubernetes deployment

    1
    0 Votes
    1 Posts
    146 Views
    No one has replied
  • Performance-Plugin is showing the wrong SR on resolution

    5
    1 Votes
    5 Posts
    433 Views
    Bastien NolletB
    As Mathieu answered in this topic, the bug has been reproduced on our side but isn't trivial to fix. We'll discuss with the team to schedule this task, and we'll keep you informed when it's fixed.
  • Advanced telemetry enabled, fix used, but not working

    3
    0 Votes
    3 Posts
    190 Views
    rvreugdeR
    Thanks, this works!
  • K8s recipe - ticket lodged already

    8
    0 Votes
    8 Posts
    483 Views
    T
    It appears this works on 'Latest' / 5.99.1. We're now going to look at the cluster to see how the cluster is designed via the recipe. Thanks!
  • xo-cli cloud-init

    5
    1 Votes
    5 Posts
    561 Views
    A
    Hi @julien-f @olivierlambert , I was actually able to finally figure out what I was doing wrong this whole time! I want to update this thread so that anyone else facing the same issue as me in the future can learn from my mistakes and not waste 10 hours of their weekend because of missing quotation marks. One of the modifications I tried over the weekend was to cat the two files in my command, but this failed : xo-cli vm.create bootAfterCreate=true cloudConfig=$(cat /root/user.yaml) networkConfig=$(cat /root/network.yaml) clone=true name_label="Test VM" template=0856a8d6-9183-f39d-f968-290b18a1bd42 VIFs='json:[{"network":"ca96456f-3843-26f5-7075-1e54f70d8f97"}]' hvmBootFirmware=bios copyHostBiosStrings=true āœ– Error: invalid arg: hostname: at file:///opt/xo/xo-builds/xen-orchestra-202410090754/packages/xo-cli/index.mjs:189:13 at arrayEach (/opt/xo/xo-builds/xen-orchestra-202410090754/node_modules/lodash/_arrayEach.js:15:9) at forEach (/opt/xo/xo-builds/xen-orchestra-202410090754/node_modules/lodash/forEach.js:38:10) at parseParameters (file:///opt/xo/xo-builds/xen-orchestra-202410090754/packages/xo-cli/index.mjs:186:3) at Object.call (file:///opt/xo/xo-builds/xen-orchestra-202410090754/packages/xo-cli/index.mjs:612:18) at main (file:///opt/xo/xo-builds/xen-orchestra-202410090754/packages/xo-cli/index.mjs:437:32) at file:///opt/xo/xo-builds/xen-orchestra-202410090754/packages/xo-cli/index.mjs:668:1 at ModuleJob.run (node:internal/modules/esm/module_job:234:25) at async ModuleLoader.import (node:internal/modules/esm/loader:473:24) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5) I realized just now that I completely forgot to try putting the variables in quotes, and this one simple tweak has allowed me to successfully spin up the VM with all of the correct cloud-init configurations applied xo-cli vm.create bootAfterCreate=true cloudConfig="$(cat /root/user.yaml)" networkConfig="$(cat /root/network.yaml)" clone=true name_label="Test VM" template=0856a8d6-9183-f39d-f968-290b18a1bd42 VIFs='json:[{"network":"ca96456f-3843-26f5-7075-1e54f70d8f97"}]' hvmBootFirmware=bios copyHostBiosStrings=true 166b36b4-04a6-4dfa-b413-591dbd87195b Thanks again for all of your help guys!
  • What should i expect from VM migration performance from Xen-ng ?

    18
    0 Votes
    18 Posts
    3k Views
    nikadeN
    @Greg_E yeah I can imagine, I dont think the ram does much except gives you some "margins" under some heavier load. With 12 VM's I wouldn't bother increasing it from the default values Yea the mgmt interface in ESXi is nice, I think the standalone interface is almost better than vCenter. Im pretty sure XO Lite will be able to do more when it is done, for example you'll be able to manage a small pool with it.
  • Host crash/error alert needed.

    4
    1
    0 Votes
    4 Posts
    231 Views
    olivierlambertO
    Worth creating a GH XO issue with most details as possible
  • Clarification of "VM Limits" in XO

    Solved
    6
    0 Votes
    6 Posts
    681 Views
    olivierlambertO
    That's correct
  • cloud-init instance (meta) data

    1
    0 Votes
    1 Posts
    169 Views
    No one has replied
  • cloud-init does not set hostname

    2
    0 Votes
    2 Posts
    486 Views
    J
    I re-ran everything using the latest 22.04 Ubuntu ISO instead of 20.04. Hostname templating is now working properly. Must have read too fast the first time when I went for 20.04. There must be some critical difference between the cloud init or distribution versions that caused my issue.
  • XOA letsencrpyt module not setting acmeDomain

    13
    0 Votes
    13 Posts
    1k Views
    J
    @olivierlambert I created the issue on GithHub. https://github.com/vatesfr/xen-orchestra/issues/7884 MrGrymReaper created this issue in vatesfr/xen-orchestra open xo-server fix: Update acme-client npm and introduce support for External Account Binding (EAB) #7884
  • Any smart way to test and verify cloud-init config in XO?

    4
    0 Votes
    4 Posts
    2k Views
    D
    @runevn A bit more from my 'troubleshooting notes' I gathered back when I was prototyping a lot of very complex configurations and worked with Chad Smith: Test user-data rendering: cloud-init query --format "$(sudo cloud-init query userdata)" Test jinja template rendering: cloud-init query --format="$( cat test.cfg )" # test.cfg would be the test cloud-config.cfg file to render Test jinja template detailed: cloud-init devel render test.cfg -d Query metadata: cloud-init query -f {{v1.distro}} ========= Debug user-data rendering ============= cloud-init devel render /var/lib/cloud/instance/user-data.txt -d Check actual seed file from provider cloud-init devel render /var/lib/cloud/seed/nocloud-net/user-data -d On a system where cloud-config wasn't honored, run: sudo cloud-init query --system # or you can add --annotate which will annotate the specific lines where an error is in the #cloud-config YAML per Chad Smith; All cloud-init instance data /var/lib/cloud/instance/ Userdata /var/lib/cloud/instance/user-data.txt Datasource /var/lib/cloud/instance/datasource metadata /run/cloud-init/instance-data.json Seed files from provider/hypervisor: /var/lib/cloud/seed/nocloud-net For anyone doing a deep dive into troubleshooting cloud-init configuration rendering.
  • netdata plugin wont install

    8
    1
    0 Votes
    8 Posts
    543 Views
    DanpD
    @jshiells Why don't you open a support ticket and allow us to take a look at this for you?
  • SAML-plugin with Google Workspace?

    7
    0 Votes
    7 Posts
    477 Views
    olivierlambertO
    Oh wow, that was fast! Thank you very much, I will check internally to be sure it will be reviewed soon
  • XOA receipe not creating VIP address (balancer)

    13
    0 Votes
    13 Posts
    1k Views
    olivierlambertO
    Yay!
  • Import Centos VM from VMware fails with must have required property

    15
    0 Votes
    15 Posts
    1k Views
    J
    @Danp That would appear to be it, thanks for pointing it out. Should have really spotted it myself of course!
  • Failed Migration from ESXi to XCP-NG

    Solved
    4
    0 Votes
    4 Posts
    612 Views
    F
    So the first KB article helped from Vates so thank you again @Danp . What else I found was that in the VMKernel NIC's that the only service enable was management. [image: 1719252207996-15468340-bb46-46ca-9b8d-3fa8aa9b1087-screenshot-2024-06-24-at-2.02.51-pm.png] I enabled the other options that I could without a license, and everything worked as expected! Yay! Thanks!