Archive for the XenServer Category

Creating CentOS 5.6 templates in XenServer

Sunday, July 24th, 2011 | Permalink

#!/bin/bash

CENTOS=$(xe template-list name-label="CentOS 5 (32-bit)" --minimal)

distro="CentOS 5.6"
arches=("32-bit" "64-bit")


for arch in ${arches[@]} ; do
echo "Attempting $distro ($arch)"
    if [[ -n $(xe template-list name-label="$distro ($arch)" params=uuid --minimal) ]] ; then
echo "$distro ($arch)" already exists, Skipping
    else

NEWUUID=$(xe vm-clone uuid=$CENTOS new-name-label="$distro ($arch)")
        xe template-param-set uuid=$NEWUUID other-config:install-methods=http,ftp,nfs \
other-config:default_template=true
echo "Success"
    fi
done
echo "Done"

Installing the XenServer Linux Pack After XenServer Deployment

Sunday, July 24th, 2011 | Permalink

  1. Download the Linux supplemental pack from citrix.com
  2. Upload the ISO to XenServer using WinSCP
  3. From the XenServer console (or Putty), go to the directory the ISO was uploaded in to
  4. Run the following commands:
    mkdir -p /mnt/iso
    mount -o loop XS-linuxcd.iso /mnt/iso
    cd /mnt/iso
  5. Now run ./install.sh
  6. The client will begin installing. There will be a momentary loss of connectivity to XenCenter whilst XAPI is restarted

Categories

Rob Goodair