Last active
September 7, 2018 23:18
-
-
Save jniltinho/0455fb5f01cfd8bbdbff to your computer and use it in GitHub Desktop.
Script to install a Debian Jessie 8.0 template on Xenserver 6.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Script to install a Debian Jessie 8.0 template on Xenserver 6.5 | |
## https://gist.github.com/hingstarne/5320400 | |
# Add your favourite mirror here | |
MIRROR=http://ftp.us.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.1 (64-bit)") | |
xe template-param-set uuid=$NEWUUID other-config:install-methods=http,ftp,nfs other-config:default_template=true | |
xe template-param-set uuid=$NEWUUID other-config:install-methods=http other-config:debian-release=jessie | |
xe vm-param-set uuid=$NEWUUID other-config-install-repository=$MIRROR |
The same thing for me.
Doesn't work.
hey, roadancer and klukonin check your xenserver version, if you get such error, this means you still have 6.2
Fresh install of 6.5 has to be like this:
cat /etc/redhat-release
XenServer release 6.5.0-90233c (xenenterprise)
Why does this error happen, I need to install debian jessie on XCP 1.4.9 and I am not allowed to upgrade...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starting VM 'Debian Jessie 8.1 (64-bit)'
Internal error: xenopsd internal error: XenguestHelper.Xenctrl_dom_linux_build_failure(2, " panic: xc_dom_core.c:609: xc_dom_find_loader: no loader\"")