Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xen Guest Utilities in VM with Ubuntu 24.04 not reporting the IP addresses to Xen Orchestra #164

Open
salvador-andes opened this issue Jul 26, 2024 · 6 comments

Comments

@salvador-andes
Copy link

salvador-andes commented Jul 26, 2024

Xen Orchestra not showing the IP addresses of the VM when the OS is Ubuntu 24.04. The VM is running xe-guest-utilities version 7.20.2-0ubuntu1, which is the one automatically installed when I used the command "sudo apt install xe-guest-utilities".

image
image

I have another VM on the same server running Ubuntu 22.04 but in that case it shows the IP addresses

image image
@LunfanZhang
Copy link
Collaborator

First of all, you should check if the IP address is actually allocated, either by static configuration or by the DHCP server, simply with CLI ip addr to check.
Then you should check if the guest agent is still work, it is a Deamon which named xe-deamon I think.
and next , if you ensure the IP address is allocated and guest agent is running , checking the xenstore key with CLI xenstore-ls attr to make sure ip address is actually dump the agent

@seba11
Copy link

seba11 commented Sep 24, 2024

Same issue here. I'm using cloud-config template to deploy ubuntu VMs. When I first time deploy newest ubuntu 24.04 using same template i found the issue not reporting the ip address to XO.
Maybe it is because ubuntu 24.04 have changed net interface names. It's not eth0, eth1.... anymore.
image
image

xe-daemon is installed and running.
image

@LunfanZhang
Copy link
Collaborator

I just test in the internal ENV, install the latest guest agent in the Ubuntu, and the IP address can be reported successfully, see the blew output:
:/home/guest-agent/LinuxGuestTools-8.4.0-1# xenstore-ls data os_distro = "ubuntu" os_majorver = "24" os_minorver = "04" os_name = "Ubuntu 24.04 LTS" os_uname = "6.8.0-31-generic" set_clipboard = "" updated = "1" /home/guest-agent/LinuxGuestTools-8.4.0-1# xenstore-ls attr PVAddons = "" BuildVersion = "1" Installed = "1" MajorVersion = "8" MicroVersion = "0" MinorVersion = "4" vif = "" 0 = "" ipv4 = "" 0 = "192.168.0.10" ipv6 = "" 0 = "fe80::d40d:faff:fe52:430f" 1 = "" ipv4 = "" 0 = "10.71.57.128" ipv6 = "" 0 = "fe80::c027:88ff:fe1d:5c76" 2 = "" ipv4 = "" 0 = "10.71.57.142" ipv6 = "" 0 = "fe80::e8a2:73ff:fe7b:7e57" root@alex:/home/guest-agent/LinuxGuestTools-8.4.0-1# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: enX0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether d6:0d:fa:52:43:0f brd ff:ff:ff:ff:ff:ff inet 192.168.0.10/24 metric 100 brd 192.168.0.255 scope global dynamic enX0 valid_lft 445799sec preferred_lft 445799sec inet6 fe80::d40d:faff:fe52:430f/64 scope link valid_lft forever preferred_lft forever 3: enX1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether c2:27:88:1d:5c:76 brd ff:ff:ff:ff:ff:ff inet 10.71.57.128/21 metric 100 brd 10.71.63.255 scope global dynamic enX1 valid_lft 3201sec preferred_lft 3201sec inet6 fe80::c027:88ff:fe1d:5c76/64 scope link valid_lft forever preferred_lft forever 4: enX2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether ea:a2:73:7b:7e:57 brd ff:ff:ff:ff:ff:ff inet 10.71.57.142/21 metric 100 brd 10.71.63.255 scope global dynamic enX2 valid_lft 7074sec preferred_lft 7074sec inet6 fe80::e8a2:73ff:fe7b:7e57/64 scope link valid_lft forever preferred_lft forever
And according to the https://github.com/xenserver/xe-guest-utilities/blob/master/guestmetric/guestmetric_linux.go#L191
Guest agent is able to parse the network name enX0, So I think the issue is not related to the guest agent

@stormi
Copy link
Contributor

stormi commented Sep 25, 2024

Maybe the ubuntu package is outdated in ubuntu repositories?

@seba11
Copy link

seba11 commented Sep 25, 2024

Maybe the ubuntu package is outdated in ubuntu repositories?

probably you are right
https://ubuntu.pkgs.org/24.04/ubuntu-universe-amd64/xe-guest-utilities_7.20.2-0ubuntu1_amd64.deb.html

@LunfanZhang
Copy link
Collaborator

I check the guest agent 7.20.2, and it can not support the network name like enX
Generally, we suggest using the latest guest agent with latest Distros to avoid some compatibility issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants