Posted on November 4, 2016 at 11:22 pm
To install Debian Jessie 8 on XenServer 6.5 we need first to create a template for Debian 8. To do so, login as root via SSH on the XenServer and create a file:
vi debian8template.sh |
Add this content:
#!/bin/bash ## Script to install a Debian Jessie 8 template on Xenserver 6.5 ## https://gist.github.com/jniltinho/0455fb5f01cfd8bbdbff ## Forked by https://gist.github.com/gnanet/7e14d834515cf07335265de9d8a794ec ## Edited on 4 November 2016 by http://www.queryadmin.com/ ## -Support installation from cdrom (ISO) -> install-methods=cdrom,http,ftp,nfs ## -Set "default_template=false" so we can delete this template if needed, else we get "You cannot delete the specified default template" # Check if we are running on XenServer 6.5 CHECK65=`cat /etc/redhat-release | grep "XenServer release 6.5"` if [ "x${CHECK65}" == "x" ]; then echo "This script is intended to be run on XenServer 6.5"; exit 1; fi # The redirector aims to solve the problem of choosing a Debian mirror. # Read more at http://httpredir.debian.org/ MIRROR=http://httpredir.debian.org/debian/ # No need to edit something below WHEEZY=$(xe template-list name-label=Debian\ Wheezy\ 7.0\ \(64-bit\) --minimal) if [[ -z $WHEEZY ]] ; then WHEEZY=$(xe template-list name-label=Debian\ Wheezy\ 7.0\ \(64-bit\)\ \(experimental\) --minimal) if [[ -z $WHEEZY ]] ; then echo "Cant find Wheezy 64bit template, is this on 6.5 or above?" exit 1 fi fi NEWUUID=$(xe vm-clone uuid=$WHEEZY new-name-label="Debian Jessie 8.0 (64-bit)") xe template-param-set uuid=$NEWUUID other-config:install-methods=cdrom,http,ftp,nfs other-config:default_template=false other-config:debian-release=jessie xe vm-param-set uuid=$NEWUUID other-config-install-repository=$MIRROR |
Set needed permissions:
chmod +x debian8template.sh |
Run the script:
./debian8template.sh |
Now you should see the Debian 8 template on XenCenter:
Updated on November 19, 2016 at 12:04 pm
Other Posts
- Route OpenVPN Connections Through Floating IP
- How to Configure a Floating IP in a VPS (Hetzner)
- Set OpenVPN to Listed on a Specific IP Address
- Bash Trim Leading and Trailing Whitespace from a String
- Bash Get Name of Ethernet Network Interface
- VPN Providers with Dedicated Static IP Address
- OpenVPN Iptables Rules
- WireGuard VPN Iptables Rules
Updated Posts
- AMD Chipsets & Graphics Card Drivers for Windows 7, 8, 10
- AMD Radeon 7400 Drivers for Windows 10
- How to pass custom command-line parameters in InnoSetup
- Add Desktop shortcut for all Windows PC users
- Programmatically create desktop icon with InnoSetup
- GeneratePress - a Lightweight WordPress Theme 2021
- InnoSetup disable DesktopIcon via command-line
- Use cURL to authenticate with JWT Bearer tokens