Public bug reported:

# Bug Report: xe-guest-utilities fails to report IP addresses on Ubuntu
24.04

## Summary
`xe-guest-utilities` (v7.20.2-0ubuntu1) fails to report VM IP addresses to Xen 
Orchestra / XCP-ng hosts when running on Ubuntu 24.04. This is caused by Ubuntu 
24.04's network interface renaming scheme (`eth*` → `enX*`), which xe-daemon 
does not recognize. As a result, the "IP addresses" column in Xen Orchestra 
shows "No IP record" for all Ubuntu 24.04 VMs.

## Package
- **Package:** xe-guest-utilities
- **Version in Ubuntu repos:** 7.20.2-0ubuntu1
- **Affects:** Ubuntu 24.04 LTS (Noble Numbat)
- **Does not affect:** Ubuntu 22.04 LTS (confirmed working)

## Environment
- **Xen Version:** 4.17 (BIOS 4.17 05/13/2025)
- **Guest kernel:** 6.8.0-101-generic
- **Hypervisor mode:** HVM domU
- **Host OS:** XCP-NG 8.3.0

## dmesg Output (Xen-relevant)
```
[    0.000000] DMI: Xen HVM domU, BIOS 4.17 05/13/2025
[    0.000000] Hypervisor detected: Xen HVM
[    0.000000] Xen version 4.17.
[    0.000000] platform_pci_unplug: Netfront and the Xen platform PCI driver 
have been compiled for this kernel: unplug emulated NICs.
[    0.000000] platform_pci_unplug: Blkfront and the Xen platform PCI driver 
have been compiled for this kernel: unplug emulated disks.
[    0.036852] ACPI: RSDP 0x00000000000EA020 000024 (v02 Xen   )
[    0.036857] ACPI: XSDT 0x00000000FC00A5E0 000044 (v01 Xen    HVM      
00000000 HVML 00000000)
[    0.036863] ACPI: FACP 0x00000000FC00A370 0000F4 (v04 Xen    HVM      
00000000 HVML 00000000)
[    0.036869] ACPI: DSDT 0x00000000FC001040 0092A3 (v02 Xen    HVM      
00000000 INTL 20160527)
[    0.036878] ACPI: APIC 0x00000000FC00A470 000080 (v02 Xen    HVM      
00000000 HVML 00000000)
[    0.036882] ACPI: HPET 0x00000000FC00A570 000038 (v01 Xen    HVM      
00000000 HVML 00000000)
[    0.036885] ACPI: WAET 0x00000000FC00A5B0 000028 (v01 Xen    HVM      
00000000 HVML 00000000)
[    0.075426] Booting paravirtualized kernel on Xen HVM
[    0.075895] xen: PV spinlocks enabled
[    0.155552] xen:events: Using FIFO-based ABI
[    0.155569] xen:events: Xen HVM callback vector for event delivery is enabled
[    0.202597] clocksource: xen: mask: 0xffffffffffffffff max_cycles: 
0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[    0.202607] Xen: using vcpuop timer interface
[    0.202617] installing Xen timer for CPU 0
[    0.203312] installing Xen timer for CPU 1
[    0.203666] installing Xen timer for CPU 2
[    0.204196] installing Xen timer for CPU 3
[    0.230650] xen: --> pirq=16 -> irq=9 (gsi=9)
[    0.296080] xen:balloon: Initialising balloon driver
[    0.302362] clocksource: Switched to clocksource xen
[    0.302931] xen: --> pirq=17 -> irq=8 (gsi=8)
[    0.302966] xen: --> pirq=18 -> irq=12 (gsi=12)
[    0.303000] xen: --> pirq=19 -> irq=1 (gsi=1)
[    0.303035] xen: --> pirq=20 -> irq=6 (gsi=6)
[    0.303076] xen: --> pirq=21 -> irq=4 (gsi=4)
[    0.303127] xen: --> pirq=22 -> irq=7 (gsi=7)
[    0.332938] xen: --> pirq=23 -> irq=23 (gsi=23)
[    0.357831] xen: --> pirq=24 -> irq=28 (gsi=28)
[    0.358015] xen:grant_table: Grant tables using version 1 layout
[    0.399686] vbd vbd-5696: 19 xenbus_dev_probe on device/vbd/5696
[    0.405470] xen_netfront: Initialising Xen virtual ethernet driver
[    0.650319] xenbus_probe_frontend: Device with no driver: device/vbd/5696
[    1.750124] systemd[1]: Detected virtualization xen.
[    2.198700] systemd[1]: Mounting proc-xen.mount - Xen ProcFS...
```

## Steps to Reproduce
1. Deploy a VM running Ubuntu 24.04 on an XCP-ng or XenServer host.
2. Install xe-guest-utilities: `sudo apt install xe-guest-utilities`
3. Ensure xe-daemon is running: `sudo systemctl enable --now xe-daemon`
4. Observe that the VM's IP address is not reported in Xen Orchestra's Network 
tab — it shows "No IP record."

## Root Cause
Ubuntu 24.04 renames Xen virtual network interfaces from the traditional 
`eth0`/`eth1` naming to `enX0`/`enX1` etc. The version of xe-daemon shipped in 
the Ubuntu repos (7.20.2) does not handle this naming scheme and fails to write 
IP address data to xenstore, which is the mechanism Xen Orchestra reads to 
display VM IPs.

Running `xenstore-list attr` on an affected VM confirms that no network
data is written under the `attr` path, even when xe-daemon is active and
xenstore communication is otherwise functional.

## Workaround
Install xe-guest-utilities v10.0.0 directly from the upstream Xenserver GitHub 
releases page, which resolves the issue:

```
wget 
https://github.com/xenserver/xe-guest-utilities/releases/download/v10.0.0/xe-guest-utilities_10.0.0-1_amd64.deb
sudo dpkg -i xe-guest-utilities_10.0.0-1_amd64.deb
```


## Expected Behavior
`xe-guest-utilities` should correctly detect and report IP addresses for all 
active network interfaces regardless of naming scheme, including `enX*` 
interfaces introduced in Ubuntu 24.04.

## Upstream Issue
This issue has been reported upstream and confirmed by multiple users across 
several platforms:

- **Xenserver upstream issue (xe-guest-utilities):** 
https://github.com/xenserver/xe-guest-utilities/issues/164
- **XCP-ng upstream issue:** https://github.com/xcp-ng/xcp/issues/655
- **XCP-ng community forum thread:** 
https://xcp-ng.org/forum/topic/9434/ubuntu-24-04-vms-not-reporting-ip-addresses-to-xcp-ng-8-2-1

The root cause is also documented in upstream PR #120 which notes that
`guestmetric` is case-sensitive and fails to match `enX` interfaces
(uppercase X) as used by Ubuntu 24.04.

The upstream project has addressed this in v10.0.0. The Ubuntu package
should be updated to at minimum v10.0.0 to resolve this for Ubuntu 24.04
users.

## Additional Notes
- This issue affects any Ubuntu 24.04 VM running on Xen-based hypervisors 
(XCP-ng, XenServer, Citrix Hypervisor).

** Affects: xe-guest-utilities (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143698

Title:
  xe-guest-utilities (7.20.2) fails to report VM IP addresses to Xen
  Orchestra/XCP-ng on Ubuntu 24.04 due to network interface rename (eth*
  → enX*)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xe-guest-utilities/+bug/2143698/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to