# Community.general.xen\_orchestra creates hosts with UUIDs instead of Hostnames

**URL:** <https://forum.ansible.com/t/community-general-xen-orchestra-creates-hosts-with-uuids-instead-of-hostnames/40068>\
**Category:** Get Help\
**Tags:** awx, inventory\
**Created:** [February 4, 2025, 11:51pm UTC](https://forum.ansible.com/t/community-general-xen-orchestra-creates-hosts-with-uuids-instead-of-hostnames/40068 "2025-02-04T23:51:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtoms](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@rtoms](https://forum.ansible.com/u/rtoms)\
**Post date:** [February 4, 2025, 11:51pm UTC](https://forum.ansible.com/t/community-general-xen-orchestra-creates-hosts-with-uuids-instead-of-hostnames/40068/1 "2025-02-04T23:51:53Z")

</div>

By default the inventory plugin for Xen Orchestra ([community.general.xen\_orchestra inventory – Xen Orchestra inventory source — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/collections/community/general/xen_orchestra_inventory.html)) creates hosts from the Xen clusters using their UUID as the Host ID within AWX.

Obviously this makes it very difficult for setting host limits in job templates as with UUID’s there is no pattern that can be set to target explicit hosts.

Is there anyway to get AWX to use host/vm names when it creates the inventory?  
Or is there some other way to better control how to target jobs/plays?

This is the JSON for a host that gets created:

```auto
{
  "ansible_host": "10.1.11.36",
  "cpus": 2,
  "has_ip": true,
  "ip": "10.1.11.36",
  "is_managed": true,
  "memory": 4294967296,
  "name_label": "sandbox001.test.in.domain.net",
  "os_version": {
    "distro": "almalinux",
    "major": "9",
    "minor": "5",
    "name": "AlmaLinux release 9.5 (Teal Serval)",
    "uname": "5.14.0-503.22.1.el9_5.x86_64"
  },
  "power_state": "running",
  "tags": [
    "sandbox001.test.in.domain.net"
  ],
  "type": "VM",
  "uuid": "a6bfda48-22f3-ef1f-20db-2a454292dc6d"
}

```

---

<div class="post-metadata">

**Author:** ![bvitnik](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bvitnik/32/4132_2.png) [@bvitnik](https://forum.ansible.com/u/bvitnik)\
**Post date:** [February 7, 2025, 1:31am UTC](https://forum.ansible.com/t/community-general-xen-orchestra-creates-hosts-with-uuids-instead-of-hostnames/40068/2 "2025-02-07T01:31:48Z")

</div>

Hi @rtoms

I suggest you take this to the XCP-ng/Xen Orchestra forums:

> **[XCP-ng](https://xcp-ng.org/forum/)**
>
> XCP-ng community forum

Their devs usually hang there so you can get in touch with them quickly.

---

<div class="post-metadata">

**Author:** ![rtoms](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@rtoms](https://forum.ansible.com/u/rtoms)\
**Post date:** [February 17, 2025, 12:05am UTC](https://forum.ansible.com/t/community-general-xen-orchestra-creates-hosts-with-uuids-instead-of-hostnames/40068/3 "2025-02-17T00:05:10Z")

</div>

@bvitnik  
Thanks I’ll check that out
