XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    • Profile
    • Following 0
    • Followers 1
    • Topics 3
    • Posts 83
    • Groups 0
    bvitnikB Offline
    1. Home
    2. bvitnik
    3. Posts

    Posts

    Recent Best Controversial
    • RE: cloud-init Cloud Config use of {name}

      @bug-meister Ah. That's cloud-init's support for templating user-data. The issue is that with these templates you only have access to the info available inside the VM itself. No outside data can be used for templating unless it is somehow passed to the VM (inject a file, set xenstore values...)

      posted in Infrastructure as Code
      bvitnikB
      bvitnik
    • RE: cloud-init Cloud Config use of {name}

      @bug-meister Nope. This is not Jinja nor any other kind of templating engine. This is a simple search-and-replace kind of implementation and is limited to name and %, the later being VM index. From the docs:

      Xen Orchestra offers the ability to insert variables such as the virtual machine name {name} or a virtual machine index %. However, the expressive power is limited to the graphical interface. For instance, it is not possible to build a series of virtual machines with complex values or from external data.

      Reference:

      • https://docs.xcp-ng.org/guides/create-use-custom-xcpng-ubuntu-templates/

      In other words, there is no advanced templating of cloud-init configuration but you could probably template it outside XenOrchestra and apply it via Terraform:

      • https://registry.terraform.io/providers/vatesfr/xenorchestra/latest/docs/resources/vm
      posted in Infrastructure as Code
      bvitnikB
      bvitnik
    • RE: XCP-ng 8.3 updates announcements and testing

      @TeddyAstie Thanks

      posted in News
      bvitnikB
      bvitnik
    • RE: XCP-ng 8.3 updates announcements and testing

      @gleh said:

      Disable Viridian in the "Other install media" template by default. As a reminder, Windows VMs must use Windows templates.

      What is the rationale for disabling Viridian? Does it have any negative effects for non Windows VMs?

      posted in News
      bvitnikB
      bvitnik
    • RE: HA causes reboot of xcp-ng nodes

      @carloum70 I can't really help you with anything specific but I must make a note that when analyzing network setup you must also take into account the Open vSwitch. Looking at the classic Linux networking, bridging and routing facilities is not enough to get you the full picture.

      For example, if I remember correctly, Active-Active bonding (non LACP) is implemented by Open vSwitch with so called balance-slb mode. This mode is not available with classic Linux kernel bonding options. What you are seeing (duplicated IPs) is maybe perfectly normal for this kind of setup with Open vSwitch.

      I would search for the cause of the issue somewhere else like network congestion. Heart beats are very sensitive to network congestion and can easily fail if you do not dedicate network links for this kind of traffic. If you are sharing the links over which heart beats are sent with some high traffic stuff (storage maybe?), it can easily make problems.

      UPDATE: unfortunately I don't have access to these kind of bonded setups any more so I can't check if the configuration differs in any way from yours. My home lab thingies are single network interface only.

      posted in Management
      bvitnikB
      bvitnik
    • RE: How to reliably determine VDI format (vhd, qcow2, raw) via XAPI across versions

      @dthenot Thanks a lot for the information. I did some more testing on my end and I've now noticed differences in handling VDI format across different SR types (local LVM and EXT). Should I expect even more differences across remote SR types like LVMoHBA or NFS or are these differences more like block based vs file system based SRs?

      Any way, it looks like I have to consult the following keys:

      • image-format
      • vdi_type
      • type

      In my tests, local EXT SRs tend to have only one of them, while local LVM SRs tend to have first two or all three, depends which one was used when creating the VDI.

      posted in Development
      bvitnikB
      bvitnik
    • RE: How to reliably determine VDI format (vhd, qcow2, raw) via XAPI across versions

      @dthenot Aaaaah, so it even depends on the SR type. That also explains the difference I'm seeing in my lab with 8.1 vs 8.3. The first one uses LVM backed SR and the other one uses file system (ext) backed SR.

      I'll have to investigate this a little bit more.

      Was image-format key added by you (XCP-ng team) and is specific to XCP-ng or was it used at any point in XenServer also?

      posted in Development
      bvitnikB
      bvitnik
    • How to reliably determine VDI format (vhd, qcow2, raw) via XAPI across versions

      Hi,

      It has come to my attention that in recent times there was some change in how VDI format is tracked in XAPI database, especially with arrival of QCOW2 support, first in XenServer (GFS2 SRs only) and then in XCP-ng 8.3 (other SR types).

      Currently, I have access to XCP-ng 8.1 and 8.3 (with latest updates) and I'm seeing these differences:

      XCP-ng 8.1:

      $ xe vdi-param-list uuid=SOMEUUID
      ...
                     sm-config (MRO): vdi_type: vhd
      ...
      

      XCP-ng 8.3:

      $ xe vdi-param-list uuid=SOMEUUID
      ...
                     sm-config (MRO): image-format: vhd
      ...
      

      So it seems what was earlier vdi_type is now image-format key in the sm-config parameter of a VDI.

      On the other hand, some people are reporting having both keys present in sm-config, e.g.:

      ...
                     sm-config (MRO): image-format: vhd; vdi_type: vhd
      ...
      

      Neither are well documented and I can't find any official info on what keys in sm-config are supported and what is their purpose. Maybe devs can shed some light on this?

      To add to the confusion, official XenServer documentation mentiones a key called just type when creating raw VDIs:

      xe vdi-create sr-uuid=sr-uuid type=user virtual-size=virtual-size \
              name-label=VDI name sm-config:type=raw
      

      In my testing this transparently gets renamed to image-format in the latest version of XCP-ng.

      The reason this bothers me is that I was asked to implement reporting of VDI format in my Ansible modules for XCP-ng but now I'm not sure how to do it across all of the supported versions of XenServer and XCP-ng. Currently it looks like I should try to get vdi_type and fallback to image-format if the first one is not found but I'm not certain if these keys are interchangable and have the same purpose or they just happen to sometimes have the same value. Also, ISO image VDIs seems to be missing any format indication.

      Any info on this subject is well appreciated. Thanks.

      posted in Development
      bvitnikB
      bvitnik
    • RE: New project - XenAdminQt - a cross-platform GNU/Linux, macOS, Windows native thick client

      @Tristis-Oris maybe a few comparative screenshots would help 🙂

      posted in News
      bvitnikB
      bvitnik
    • RE: New project - XenAdminQt - a cross-platform GNU/Linux, macOS, Windows native thick client

      @benapetr just a small notice, at least in 0.0.5 version. When adding an NFS ISO library SR, there is no choice for NFS version (v3 and v4) like in XCP-ng Center. The XAPI then defaults to v3 which did not work in my environment.

      posted in News
      bvitnikB
      bvitnik
    • RE: Created VM from Fast Clone, Now How to Separate

      @hawkpro I believe it will be worse with continuous replication because your replica will be in a shut down state. When you decide to start it, you will have to shut down the original VM and start the replica. You will have a downtime during shut down and start up sequence.

      Downtime during VM migration is a necessity so there is nothing unexpected there. All types of migrations require a VM to be suspended for some time (usually seconds) during the switchover from one host or SR to the other host or SR.

      If you have extended downtimes of your VM migrations, then something is not quite right with your setup.

      posted in Xen Orchestra
      bvitnikB
      bvitnik
    • RE: Created VM from Fast Clone, Now How to Separate

      @hawkpro If you have multiple SRs, move the VM to some other SR.

      posted in Xen Orchestra
      bvitnikB
      bvitnik
    • RE: adding a new VIF in XO doesn't UP the the interface on Debian13

      @delacosta456 This is a limitation of Debian's "/etc/network/interfaces" network configuration mechanism. It quite old and static - in other words it just applies network configuration on manual networking service restart. There is no hot plug handling.

      For something more advanced, you have to use netplan (like Ubuntu) and/or NetworkManager (some other distros)... or possibly systemd-networkd.

      posted in Management
      bvitnikB
      bvitnik
    • RE: Unable to MIgrate VDI when host is low on free memory

      @nikade You can even see that Dom0 VM has 16 vCPUs and host has 40 CPUs, in my case anyway. So Dom0 sees just some chunk of host resources.

      posted in Compute
      bvitnikB
      bvitnik
    • RE: Unable to MIgrate VDI when host is low on free memory

      @nikade said in Unable to MIgrate VDI when host is low on free memory:

      Could you please explain the difference between the term dom0 and host?

      This is what I mean:

      ae06dd02-1c5c-44cb-acb0-484503864c6c-image.png

      Dom0 is not "the host". It contains a management layer for the host but in reality it is just another VM, highly specialized one but stil just a VM. It does not see host's RAM as it's own.

      posted in Compute
      bvitnikB
      bvitnik
    • RE: Unable to MIgrate VDI when host is low on free memory

      @nikade This is not related to Dom0 RAM. It's related to the host RAM.

      posted in Compute
      bvitnikB
      bvitnik
    • RE: Unable to MIgrate VDI when host is low on free memory

      @hitechhillbilly I'd say this is normal if you are low on RAM and you are doing a live VDI migration. XCP-ng requires some amount of free RAM on the host to be able to live migrate the VDI. The larger the VDI, the more RAM is needed but exact sizing is unknown to me. I've encountered this error numerous times so I consider it common.

      The way around this is to shutdown the VM and then migrate the VDI. RAM requirements in that case are much much lower.

      posted in Compute
      bvitnikB
      bvitnik
    • RE: New project - XenAdminQt - a cross-platform GNU/Linux, macOS, Windows native thick client

      @benapetr This looks phenomenal. Will have to give it a try.

      This is a nice coincidence. Just the other day one of my younger colleagues boasted about making XCP-ng Center work under Wine... everything just works™. It would save a number of folks having to have a Windows VM on stand by just for the XCP-ng Center. Oh boy, how he was disappointed when I showed him everything that does not work 😁 ... but with this, there is still hope.

      posted in News
      bvitnikB
      bvitnik
    • RE: log_fs_usage / /var/log directory on pool master filling up constantly

      @denis.grilli I understand... but my experience is that even with the default scanning interval the logs become the problem when you get in the range of tens of SRs, thousands of disks. MajorP93's infra is quite small so I believe there is something additional that is spamming the logs... or there is some additional trigger for SR scan.

      Update: maybe the default value changed in recent versions?

      posted in XCP-ng
      bvitnikB
      bvitnik
    • RE: log_fs_usage / /var/log directory on pool master filling up constantly

      @Pilow agreed. This shouldn't be the norm. auto-scan-interval=120 is not going to be good for everyone. The majority of people probably don't have any problem with the default value, even in larger deployments.

      On the other hand, the real cause of the issue is still elusive.

      posted in XCP-ng
      bvitnikB
      bvitnik