Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: kmac on February 08, 2011, 02:12:14 PM

Title: Xenserver Tools in SMEServer 8 beta 6
Post by: kmac on February 08, 2011, 02:12:14 PM
I have SMEServer 8 beta 6 installed on Citrix Xenserver 5.6.1 FP1. I am trying to install Xenserver Tools.  It fails with the message "Fatal Error: Failed to determine Linux distribution and version."
According to this post:
http://forums.contribs.org/index.php?topic=43417.0 (http://forums.contribs.org/index.php?topic=43417.0)
I need to change the redhat-release from "SME Server release 8.0beta6" to "CentOS release 5.5 (Final)"
The way I read this, I need to change the redhat-release in "/etc/motd" and run "expand-template /etc/redhat-release"
However, /etc/redhat/release stays as "SME Server release 8.0beta6"
Any idea on the proper way to change /etc/redhat-release?

Thanks,

Kevin
Title: Re: Xenserver Tools in SMEServer 8 beta 6
Post by: cactus on February 08, 2011, 06:17:47 PM
Easiest would be to create a custom template fragment for it with the proper value in your case "CentOS release 5.5 (Final)".

This can easiest be done like this IMHO:

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/motd
echo "CentOS release 5.5 (Final)" >> /etc/e-smith/templates-custom/etc/motd/template-begin
expand-template /etc/redhat-release

Better would be to contact Citrix/Xen Server and have the strings for SME Server included in their detection system, are you sure that there is no switch to override or specify the architecture when installing XenServer tools?
Title: Re: Xenserver Tools in SMEServer 8 beta 6
Post by: cactus on February 08, 2011, 06:21:59 PM
are you sure that there is no switch to override or specify the architecture when installing XenServer tools?
I could imagine that this might still work (perhaps with some adaptation) and you might be able to manually specify the architecture/OS, see step 4 of http://knowledgelayer.softlayer.com/questions/399/How+to+install+XenServer+Tools+-+Linux

A little less extensive information seems to be in the XenServer docs: http://docs.vmd.citrix.com/XenServer/5.0.0/1.0/en_gb/guest.html#guest_agent_linux
Title: Re: Xenserver Tools in SMEServer 8 beta 6
Post by: kmac on February 09, 2011, 02:24:27 AM
Cactus,
Thanks for the Reply.  I created the custom template fragment that you suggested and it worked like a charm.
I was able to then install Xenserver tools, and on reboot, everything looks as it should. I will test and see if I find any issues,
however so far it looks great.

Kevin

Title: Re: Xenserver Tools in SMEServer 8 beta 6
Post by: zi4 on November 20, 2011, 06:31:15 PM
Kevin,
I know the thread is already old, but I'm still trying to put the xs-tools inside my SMEserver VM. Are you sure XenCenter tells you "Optimized (version 5.6 installed)" in Visualization state?
The install.sh ran fine with the instructions above, installed the citrix kernel in SMEserver 7.51.
 
 In SMEserver 8.0b6:
Code: [Select]
[root@sme8 Linux]# ./install.sh
 Detected `CentOS release 4.8 (Final)' (centos version 4).

 The following changes will be made to this Virtual Machine:
  * packages to be installed/upgraded:
    - kernel-xenU-2.6.9-100.EL.xs6.0.0.66.i686.rpm
    - xe-guest-utilities-6.0.0-743.i386.rpm
    - xe-guest-utilities-xenstore-6.0.0-743.i386.rpm
 Continue? [y/n] y
 Preparing...                ########################################### [100%]
    1:xe-guest-utilities-xens########################################### [ 50%]
    2:xe-guest-utilities     ########################################### [100%]
 error: Failed dependencies:
        kernel < 2.6.12 conflicts with initscripts-8.45.30-2.el5.sme.2.i386
        kernel < 2.6.17 conflicts with hal-0.5.8.1-59.el5.i386
        kernel < 2.6.13 conflicts with kudzu-1.2.57.1.24-1.el5.centos.i386
[root@sme8 Linux]#

So, it didn't replace the kernel, just the other 2 packages. Anyway, both SMEservers 7.51 and 8.0 still have "XenServer Tools not installed". Tested with XenServer 5.6 and 6.0.
I followed these instructions, also available here in this forum:
http://ozdoc.mine.nu/index.php/Sme_on_xenserver
If someone was successful, please post!  It was a breeze installing these xs-tools on ClearOS - wich uses: /etc/redhat-release # CentOS release 5.4 (Final).
 I can post differences if any of you can help me where to look.
Stefan
Title: Re: Xenserver Tools in SMEServer 8 beta 6
Post by: kmac on November 21, 2011, 01:13:07 AM
Stefan,
 This has been several months ago and I no longer work where I was doing this, so I do not have
a Xenserver to test this on. However to the best of my recollection, the Xentools installed properly and
it worked just fine.
Sorry I cannot help you any more than this.

Kevin