Subcategories

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

    419 Topics
    3k Posts
    bvitnikB
    @acebmxer Great. These are some YAML basics. You should read more about it . Following AI instructions without understanding is not going to take you far.
  • ACLs, Self-service, Cloud-init, Load balancing...

    97 Topics
    816 Posts
    P
    @olivierlambert I'd like to see replicated vms in netbox, perhaps not syncing their IP address to avoid conflict DR VM as well
  • All XO backup features: full and incremental, replication, mirrors...

    433 Topics
    4k Posts
    W
    Hello, I had a Delta backup job running daily that was working fine on my original XO from sources installation. Late last week, I had to migrate the XO settings to another server. The job itself runs fine when executed manually but the scheduled job doesn't run at all. The job reports "Enabled" and the schedule also reports "Enabled". You can see my setup below. This morning I tried disabling and then enabling the schedule again just in case that would recreate whatever cron job is out there. Is there a config file somewhere that I can look at to verify it's actually scheduled rather than waiting till tomorrow? Thank you! [image: 1764086608703-09db2953-c0b6-4a70-bfed-eb598c403119-image.png]
  • Everything related to Xen Orchestra's REST API

    72 Topics
    557 Posts
    S
    Sorry for the necropost but here is what I did. import XenAPI import ssl HOST_IP = "192.168.1.100" USERNAME = "root" PASSWORD = "hostpasswordsecret" VM_LIST = ('sms', 'firewall1a', 'firewall1b', 'firewall2a', 'firewall2b', 'firewall3a', 'firewall3b') def main(): # disable https certificate checking if hasattr(ssl, '_create_unverified_context'): ssl._create_default_https_context = ssl._create_unverified_context url = f"https://{HOST_IP}" session = XenAPI.Session(url) try: print(f"Connecting to {HOST_IP}...") session.xenapi.login_with_password(USERNAME, PASSWORD, "1.0", "python-script") except XenAPI.Failure as e: print(f"XenAPI Error: {e}") return except Exception as e: print(f"General Error: {e}") return for vm in VM_LIST: print(f"Searching for VM: {vm}...") vms = session.xenapi.VM.get_by_name_label(vm) if len(vms) == 0: print(f"Error: VM '{vm}' not found.") continue vm_ref = vms[0] vif_refs = session.xenapi.VM.get_VIFs(vm_ref) if not vif_refs: print("No network interfaces found on this VM.") continue print(f"Found {len(vif_refs)} interface(s). Updating settings...") for vif in vif_refs: device = session.xenapi.VIF.get_device(vif) other_config = session.xenapi.VIF.get_other_config(vif) # ethtool-tx transmit checksum offload # ethtool-tso TCP segmentation offload # ethtool-ufo UDP fragmentation offload # ethtool-gro generic receive offload if other_config.get('ethtool-tx') == 'off': print(f" Interface {device}: TX Checksumming already disabled.") else: print(f"Disabling TX checksumming for interface {device}") other_config['ethtool-tx'] = 'off' try: session.xenapi.VIF.set_other_config(vif, other_config) print(f" - Interface {device}: TX Checksumming disabled (ethtool-tx: off)") power_state = session.xenapi.VM.get_power_state(vm_ref) if power_state == 'Running': print(" [!] VM is RUNNING. A reboot is required for these changes to take effect.") elif power_state == 'Halted': print(" [i] VM is Halted. Changes will apply on next boot.") else: print(f" [i] VM state is {power_state}.") print("Note: You must reboot the VM or unplug/plug the VIFs for changes to take effect.") print("") except XenAPI.Failure as e: print(f"XenAPI Error: {e}") except Exception as e: print(f"General Error: {e}") try: session.xenapi.logout() except: pass if __name__ == "__main__": main()
  • Terraform, Packer or any tool to do IaC

    45 Topics
    421 Posts
    cichyC
    Prioritization of VM startup AND shutdown sequencing! PLEASE - in the GUI (XO). So - without code - I can finally shutdown my servers accessing DB's prior to shutting down the DB server vm's themselves thereby saving myself from table corruption.
  • 0 Votes
    16 Posts
    3k Views
    M
    @florent Sorry for the delay. I was able to make it work with the change you posted. Thank You.
  • All drop-down options are empty

    Solved
    18
    3
    0 Votes
    18 Posts
    2k Views
    TS79T
    @Andrew said in All drop-down options are empty: XO install video thanks Andrew - 100% agree Tom's video is the exact one that introduced me to the ronivay script, which is what I've used for all XO-from-source installs without problems.
  • OIDC issue with Microsoft Entra ID

    3
    0 Votes
    3 Posts
    443 Views
    J
    I'm expericing the same/similar behaviour with SAML, and submitted a Feature Request that it should be looked at. https://xcp-ng.org/forum/topic/10430/feature-request-if-authenticated-don-t-stop-at-the-xo.company.net-signin-page
  • This topic is deleted!

    17
    1
    0 Votes
    17 Posts
    41 Views
  • Is there any way to cleanup or reset xo config db

    Solved
    4
    0 Votes
    4 Posts
    432 Views
    A
    @Danp Thanks a million dear. much appreciated
  • $getFrom Understanding

    1
    3
    0 Votes
    1 Posts
    122 Views
    No one has replied
  • 0 Votes
    5 Posts
    1k Views
    D
    I'm starting to think that something is wrong. Everywhere I check, I can see that the SAML request from the SP should have a signature of some sort. It doesn't seem that there is anything of the sort in our case. We are using the opensource for preproduction and are waiting for a pro license (paperwork on it's way) so maybe there is something wrong in the implementation ?
  • LDAP fails with error "Code: -32000 Message: Code: 0x3"

    Solved
    7
    0 Votes
    7 Posts
    677 Views
    Y
    @dinhngtu said in LDAP fails with error "Code: -32000 Message: Code: 0x3": sAMAccountName Thank you. (userPrincipalName={{name}}) filter made the trick. When I use (userPrincipalName={{name}}), it works for me either I set certificate check ON or not. (Actually I was expecting to check AD root cert as this connection is using LDAPS) And also test only works when I do it using UPN but not with username@domain format. Other filter options did not work at all.
  • Transfer Pool Master / only partial success

    Solved xoa master designate
    6
    1 Votes
    6 Posts
    672 Views
    X
    positive Update: today I wanted to continue with this problem, but when I logged Into XOA today, Master status was Green / enabled. Since no one execpt me has credentials to the Testcluster, I am sure that no one else had done something. So the master host seemed to recovered itself from grey to green within the last 8 Hours. There were at least 1-2 hours yesterday between execution of "pool-emergency-transition-to-master" and still beeing grey dot / Halted. xe pool-emergency-reset-master master-address=... then added the remaining hosts to the new master.
  • windows 11 : "windows 11 installation has failed"

    2
    3
    0 Votes
    2 Posts
    251 Views
    No one has replied
  • Issues With Audit Log

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    marcoiM
    bringing up the host and restarting the tools on master seem to stop the excessive logging. EDIT: Bringing down host 3 triggers the alerts again EDIT2: Looks like it may be due to how i shutdown the host. First time I put it into maintenance mode, then did the halt command. That caused the messages to come up. Second time I just did halt and that caused the messages to come up. Third time, i hit disable first then halt. So far seems the messages are no longer coming up. I guess i should RTM more lol.
  • Imported VM Starts but Does Not Initialize the Display

    Solved
    51
    2
    0 Votes
    51 Posts
    11k Views
    K
    @olivierlambert Awesome! Can't wait.
  • Migrating XO to another server.... best process?

    Solved
    4
    0 Votes
    4 Posts
    281 Views
    M
    So, problem solved.....
  • Migrating an offline VM disk between two local SRs is slow

    22
    1
    0 Votes
    22 Posts
    3k Views
    olivierlambertO
    Maybe the IO scheduler is not the right one?
  • Warning logs in XCP-NG

    1
    0 Votes
    1 Posts
    117 Views
    No one has replied
  • sdn certs module

    30
    0 Votes
    30 Posts
    6k Views
    E
    @eeldivad i turned on "override-certs" option and it seems to work now. I'm still curious why the other build fails. Does anyone know how i can generate those 3 pem files manually to test?
  • New install - Login screen blank

    14
    2
    0 Votes
    14 Posts
    711 Views
    R
    This is solved. What I ended up doing was installing ubuntu and doing the whole install as root. Thanks for the help, I hope I can use XOA in the future!
  • XOCE - Language not keep when i come back (surrely dumb question)

    15
    0 Votes
    15 Posts
    2k Views
    D
    @olivierlambert said in XOCE - Language not keep when i come back (surrely dumb question): Why? I mean you are the first person to ask this. It's more work to do that and I'm not sure to really see the value A cookie is the perfect simple way to store info that are from your same browser/session, so it's very logical. Yeah, I don't see the value in having to keep a user preference within XO itself either.. just don't clear your cookies. It's what they are meant for.
  • Login to XOA console

    Solved
    3
    1
    0 Votes
    3 Posts
    238 Views
    S
    Thank you for your attention. It worked!
  • vm start delay - does it work yet?

    8
    1
    0 Votes
    8 Posts
    4k Views
    cairotiC
    @payback007 said in vm start delay - does it work yet?: unfortunately "start delay" is not working as expected. The function what you marked above is to change the start delay of an existing "vApp". Here is an example of my setup: [image: 1558128450595-04e7439d-6b92-4356-aa23-14d704588be3-grafik.png] The value whould change the "Delay interval" later by XOA, nothing else. Otherwise is vApp feature also not working on my XCP-ng installation, I think it was never really tested. If you want to implement start delays to your VM's you can follow this guide: define vApp for autostart in xcp-ng center including start order find out the uuid of the vApp: xe appliance-list write autostart script containing #!/bin/sh xe appliance-start uuid=uuid-autostart-vApp implement new systemd.service in /etc/systemd/system/autostart.service [Unit] Description=autostart script for boot VM After=graphical.target [Service] Type=simple ExecStart=/path/to/your/autostart-script.sh TimeoutStartSec=0 [Install] WantedBy=default.target enable the service systemctl enable autostart.service Editing of boot delay time is then possible via XOA which is already a nice feature at all for "fine tuning" or adapt if new VMs are added to the autostart vApp. @olivierlambert whould it make sense to open an additional feature request? vApp-implementation was several times discussed with no "final statement" I think. When I have a pool without HA, how could I use this script? I thought about setting the script on the master server. However, in a maintenance, where a second node becomes the master, will I have to recreate the script?