This post covers how to Install Citrix XenServer using pxe.
As a prerequisite you need to have tftp server configured.
Create tftp dir for xenserver
mkdir -p /tftpboot/images/xenserver |
Mount & copy required boot files from xenserver iso
mount -o loop /downloads/XenServer-6.1-install-cd.iso /tmp/cd/ cd /tftpboot/images/xenserver cp `find /tmp/cd/ -name install.img` ./ cp `find /tmp/cd/ -name vmlinuz` ./ cp `find /tmp/cd/ -name xen.gz` ./ |
Append following lines in /tftpboot/pxelinux.cfg/default
label Install Citrix XenServer kernel mboot.c32 append images/xenserver/xen.gz dom0_max_vcpus=1-2 dom0_mem=752M,max:752M com1=115200,8n1 console=com1,vga --- images/xenserver/vmlinuz xencons=hvc console=hvc0 console=tty0 --- images/xenserver/install.img |
Now you can install xenserver using pxe. You can use http / local / nfs as image source.
We have tested installation using http only. You can mount xen iso on html chile path & use it for installation.
e.g http://192.168.1.1/yum/xen/
If you wish to skip installation methods (http/local/nfs) & start installation using pxe, you can use answer file.
Append following lines in /tftpboot/pxelinux.cfg/default
label Install Citrix XenServer kernel mboot.c32 append images/xenserver/xen.gz dom0_max_vcpus=1-2 dom0_mem=752M,max:752M com1=115200,8n1 console=com1,vga --- images/xenserver/vmlinuz xencons=hvc console=hvc0 console=tty0 answerfile_device=eth0 answerfile=http://192.168.1.1/yum/xenfile --- images/xenserver/install.img |
Sample answer file, here we have defined path http://192.168.1.1/yum/xenfile
<?xml version="1.0"?> <installation srtype="ext"> <primary-disk>sda</primary-disk> <keymap>us</keymap> <root-password>mypassword</root-password> <source type="url">http://192.168.1.1/yum/xen/</source> <admin-interface name="eth0" proto="dhcp" /> <timezone>Asia/India</timezone> </installation> |
Be cautious using above answer file, this will erase /dev/sda & install fresh xenserver.