User Tools

Site Tools


virtualization:xenserver:xenserver_tools

This is an old revision of the document!


XenServer Client Issues

Guest Tools Removal

XCP-ng Management Agent: https://xcp-ng.org/docs/guests.html#windows

Tool: https://github.com/siodor/win-tools-cleanup

Citrix: https://support.citrix.com/article/CTX225911

Uninstall tools as a local admin (.\administrator) and do it from the server console rather than a remote session!

Install XenServer Tools

:!: Don't bother installing the Tools on a Linux guest if you don't have a Xen kernel.

dmesg | grep -i xen

:!: In XenCenter, mount the guest-tools.iso in the guest DVD drive.

FreePBX Distro

mount /dev/sr0 /mnt
mv /etc/redhat-release /etc/redhat-release-fpbx
#echo "CentOS release 6.6 (Final)" > /etc/redhat-release
echo "CentOS Linux release 7.1.1503 (Core)" > /etc/redhat-release
/mnt/Linux/install.sh
mv /etc/redhat-release /etc/redhat-release-centos
mv /etc/redhat-release-fpbx /etc/redhat-release
umount /dev/sr0
/etc/init.d/xe-linux-distribution start

Ubuntu/Debian

mount /dev/xvdd /mnt

/mnt/Linux/install.sh

wget -q http://updates.vmd.citrix.com/XenServer/5.6.0/GPG-KEY -O- | apt-key add -

/etc/init.d/xe-linux-distribution start

SME Server 8

mount /dev/xvdd /mnt

mv /etc/redhat-release /etc/redhat-release-sme
echo "CentOS release 5 (Final)" > /etc/redhat-release

/mnt/Linux/install.sh

/etc/init.d/xe-linux-distribution start

ln -s /etc/rc.d/init.d/xe-linux-distribution /etc/rc7.d/S26xe-linux-distribution

Windows

Script to Download

Run this PowerShell script to download the latest tools installer:

Write-Verbose "Loading Functions" -Verbose

function get-latestVersion {
    $uri = "https://pvupdates.vmd.citrix.com/updates.latest.tsv"
    $results = @()
    $temp = New-TemporaryFile
    wget $uri -OutFile $temp
    $raw = get-content $temp
    foreach ($line in $raw) 
    {
        $parts = $line.split("`t")
        $result = @{ 
            "URL"=$parts[0];
            "Version"=[version]$parts[1];
            "Size"=$parts[2];
            "Architecture"=$parts[3]
        }
        $results += $result
    }
    Write-Output $results
}

Write-Verbose "Setting Arguments" -Verbose
$StartDTM = (Get-Date)

$Vendor = "Citrix"
$Product = "XenServer"
$PackageName = "managementagentx64"
$Latest = get-latestVersion | ? architecture -eq "x64"
$Version = $Latest.version
$InstallerType = "msi"
$Source = "$PackageName" + "." + "$InstallerType"
$LogPS = "C:\Windows\Temp\$Vendor $Product $Version PS Wrapper.log"
$LogApp = "C:\Windows\Temp\XS65FP1.log"
$UnattendedArgs = "/i $PackageName.$InstallerType ALLUSERS=1 /Lv $LogApp /quiet /norestart"
$URL = $Latest.url

Start-Transcript $LogPS

if( -Not (Test-Path -Path $Version ) )
{
    New-Item -ItemType directory -Path $Version
}

CD $Version

Write-Verbose "Downloading $Vendor $Product $Version" -Verbose
If (!(Test-Path -Path $Source)) {
    Invoke-WebRequest -Uri $url -OutFile $Source
         }
        Else {
            Write-Verbose "File exists. Skipping Download." -Verbose
         }

Write-Verbose "Starting Installation of $Vendor $Product $Version" -Verbose
(Start-Process msiexec.exe -ArgumentList $UnattendedArgs -Wait -Passthru).ExitCode

Write-Verbose "Customization" -Verbose

Write-Verbose "Stop logging" -Verbose
$EndDTM = (Get-Date)
Write-Verbose "Elapsed Time: $(($EndDTM-$StartDTM).TotalSeconds) Seconds" -Verbose
Write-Verbose "Elapsed Time: $(($EndDTM-$StartDTM).TotalMinutes) Minutes" -Verbose
Stop-Transcript
virtualization/xenserver/xenserver_tools.1588960018.txt.gz · Last modified: 2020/05/08 11:46 by gcooper