This is a quick note on how to install xe-guest-utilities on OpenSUSE Leap 15.5.

Unlike other distros like AlmaLinux where xe-guest-utilities is provided by EPEL repository, on OpenSUSE Leap, this package is available in the guest-tools.iso disk. At least, I was not able to find any similar package on OpenSUSE’s repositories which provide this Xe guest utilities.

Therefore, we first need to attach the guest-tools.iso disk to the VM.

On Xen Orchestra web ui, perform the following:

  • Home -> VMs, click on the OpenSUSE VM.
  • Click on “Console” tab, and select the guest-tools.iso from the dropdown selection.

Then, ssh into the VM and perform the guest util’s installation:

❯ lsblk
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sr0      11:0    1   16M  0 rom
xvda    202:0    0 31.8G  0 disk
├─xvda1 202:1    0    2M  0 part
├─xvda2 202:2    0   33M  0 part /boot/efi
└─xvda3 202:3    0 31.8G  0 part /

❯ sudo mount /dev/sr0 /mnt
mount: /mnt: WARNING: source write-protected, mounted read-only.

Navigate to the directory where the file install.sh resides:

❯ cd /mnt/Linux/

❯ ./install.sh -h
usage: install.sh [-d <DISTRO> -m <MAJOR>] [-k]

    -d <DISTRO>       Specifies the distro name.
    -m <MAJOR>        Specifies the major version of the distro release.
    -k                Do not update the kernel.
    -n                Non interactive mode.

The -d and -m options must be used together. If neither is given then
auto-detection will be attempted.

Install the xe-guest-utilities package with:

❯ sudo ./install.sh -d sles -m 15
Distribution `sles' version `15' given on command line.

The following changes will be made to this Virtual Machine:
  * update arp_notify sysctl.
  * packages to be installed/upgraded:
    - xe-guest-utilities-7.30.0-12.x86_64.rpm

Continue? [y/n]


Preparing...                          ################################# [100%]
Updating / installing...
   1:xe-guest-utilities-7.30.0-12     ################################# [100%]

You should now reboot this Virtual Machine.

❯ sudo reboot

Here is the result after the VM booting up.

❯ sudo systemctl status xe-linux-distribution.service
● xe-linux-distribution.service - Linux Guest Agent
     Loaded: loaded (/usr/lib/systemd/system/xe-linux-distribution.service; enabled; vendor preset: disabled)
     Active: active (running) since Sun 2024-06-02 13:07:06 UTC; 1min 16s ago
    Process: 613 ExecStartPre=/usr/sbin/xe-linux-distribution /var/cache/xe-linux-distribution (code=exited, status=0/SUCCESS)
   Main PID: 640 (xe-daemon)
      Tasks: 9 (limit: 2282)
     CGroup: /system.slice/xe-linux-distribution.service
             ├─ 640 /usr/sbin/xe-daemon
             └─ 649 logger -t xe-daemon -p debug

Jun 02 13:07:06 thounchey3 systemd[1]: Starting Linux Guest Agent...
Jun 02 13:07:06 thounchey3 systemd[1]: Started Linux Guest Agent.

❯ systemctl is-enabled xe-linux-distribution.service
enabled

References: