Installation guide

PXE installation of XenServer Host
32
named XenServer_4.1.0 and then copy the directory packages.main from the Base
Pack disk to XenServer_4.1.0/packages.main.
2. If Linux support is also desired, copy packages.linux from the Linux Pack disk to
XenServer_4.1.0/packages.linux. This structure allows you to install either both
packages by having the answerfile's source element contain the enclosing directory
XenServer_4.1.0, or you can install just the base pack (no support for Linux VMs) by
putting in the path to XenServer_4.1.0/packages.main.
For example, to install both packages from the webserver http://pxehost.example.com where
the packages are in the directories mentioned above relative to the server's document root, the
answerfile would contain this source element:
<source type="url">http://pxehost.example.com/XenServer_4.1.0</source>
or, to install just the basic pack and skip Linux support:
<source type="url">
http://pxehost.example.com/XenServer_4.1.0/packages.main
</source>
Procedure C.4. To prepare the destination system
1. Start the system and enter the Boot Menu (F12 in most BIOSes) and select to boot from
your Ethernet card.
2. The system should then PXE boot from the installation source you set up, and the instal-
lation script will commence. if you have set up an answerfile, the installation can proceed
unattended.
C.2. Creating an answerfile for unattended PXE installation
In order to perform installations in an unattended fashion, you need to create an XML answerfile.
Here is an example answerfile:
<?xml version="1.0"?>
<installation>
<primary-disk>sda</primary-disk>
<guest-disk>sdb</guest-disk>
<guest-disk>sdc</guest-disk>
<keymap>us</keymap>
<root-password>mypassword</root-password>
<source type="url">http://pxehost.example.com</source>
<post-install-script type="url">
http://pxehost.example.com/myscripts/post-install-script
</post-install-script>
<admin-interface name="eth0" proto="dhcp" />
<timezone>Europe/London</timezone>
</installation>