Installing XenServer tools

4 posts / 0 new
Last post
#1 Mon, 2016-10-10 09:58
nowoe
  • nowoe's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2014-08-10

Hello,
I'd like to run Alpine Linux 3.4.4 as guest on a XenServer 6.5 installation. Installation as 'sys' was without troubles.
In order to install XenServer tools I ran
  apk add xe-guest-utilities
and
  service xe-guest-utilities start
to start them.

Output:

Detecting Linux distribution version...  [!!]
Mount xenfs on /proc/xen...     [ok]
Starting xe-daemon...   [ok]

XenCenter still reports that XenServer tools are not installed.
It's my first attempt to run Alpine Linux under XenServer so I don't know if the above is what should be done and what the expected output is. Why is 'Detecting Linux distribution version' failing? Many thanks for your help.

Mon, 2016-11-07 09:47
nowoe
  • nowoe's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2014-08-10

I've managed to get the service started without issues by editing /usr/sbin/xe-linux-distribution. Lines modified from

    eval $(sed -n \
               -e 's/^.*-\([0-9]*\)\.\([0-9]*\)\.[0-9]* .*$/major=\1;minor=\2/gp;' \
               -e 's/^.*-\([0-9]*\) .*$/major=\1;minor=/gp;' \
                         "${alpine_release}")

to
    eval $(sed -n \
               -e 's/^\([0-9]*\)\.\([0-9]*\)\.[0-9]*.*$/major=\1;minor=\2/gp;' \
                         "${alpine_release}")

(Seems the content/syntax of /etc/alpine-release has changed)
Service xe-guest-utilities start up at boot time successfully, but XenCenter still reports that XenServer Tools are not installed (so the vm cannot be shutdown gracefully from Dom0).

Might it be a version issue? APKBUILD of xe-guest-utilities seems to refer to sources from XenServer 5.5. Perhaps sources from 6.2.0 (http://updates.vmd.citrix.com/XenServer/6.2.0/rhel4x/SRPMS/) might work (xen guest utilities of FreeBSD VMs are reported as version 6.2.0 and work fine)?

Thu, 2016-11-10 18:15
stw
  • stw's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2016-02-25

Looks like the package is broken.
Could you please file a bug on https://bugs.alpinelinux.org (with target version 3.5.0)?
One of the alpine devs will fix it.

Sat, 2016-11-12 19:08 (Reply to #3)
nowoe
  • nowoe's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2014-08-10

Thanks for your response, but my account doesn't work on bugs.alpinelinux.org (can't login).
After upgrading to 3.4.6 things have changed: XenCenter now recognizes that xe-guest-utilities are installed, although it complains about the outdated version 5.5.

Log in or register to post comments