XenServer – Automate installs

In this video we look at automating the install of Citrix XenServer 6.02 by using PXE with answer files. We have previously set up PXE installs of XenServer ; so now we add in the XML answer file. The PXE boot file could look like:


default local
prompt 1
timeout 60

label local
        localboot 0

label install-xenserver
        kernel mboot.c32
        append xs602/xen.gz  --- xs602/vmlinuz xencons=hvc console=hvc0 console=tty0  answerfile=http://webserver/xs.xml--- xs602/install.img

Once we boot into the install the answer are provided by the supplied answerr file. In this case on our web server and called xs.xml. The answer file again could look like this depending on your requirements.


<?xml version="1.0"?>
   <installation mode="fresh" srtype="ext">
      <root-password type="hash"> $1$FwjF6PE7$8sXs2JzyJood3w5VwHC.8. </root-password>
      <source type="url"></source>
          <script stage="filesystem-populated" type="url">

      <admin-interface name="eth0" proto="static">

Note the hash as the type for the root password. this is not in the Citrix documentation but allows for hased passwords in the answer file. Just grab the password from /etc/passwd on an existing XenServer



Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s