Skip to content

Archipel Node Stateless PXE Boot How To Windows Like

magadan edited this page Apr 29, 2012 · 61 revisions

deploy-windows

Note: FAQ in development. ( Want help ? Edit this file )

Boot PXE demo:

boot-anim

Screenshot: PXE Menu Boot

boot2

Introduction

To boot your Servers by PXE with ANSOS you will need:

  • Configure a DHCP Server
  • Configure a TFTP Server
  • Define your ANSOS remote rootfs
  • Configure PXE Settings
  • Configure mount point to ANSOS per host settings ( host identification and VM Guests archives )

Configurations

In Windows you have two ways to do that

  • Use a bundle tftp32/64 with all components include like dhcp, tftp and pxe files.
  • Use a dhcp, tftp and pxe from Windows Components ( applies to Windows 2003, 2008 )

From Bundle tftp32/64

Download the package opensource from http://tftpd32.jounin.net/

Choose 32 or 64 bits: tftpd__ standard edition (installer)

Select a directory and Install the package.

Open TFTP Admin Interface

tftp-admin

Configure options, follow the screenshots:

tftp2tftp3

Configure DHCP Server ( bundle tftp32 or tftp64 )

tftp4

Configure the options:

  • IP pool starting address: put the initial IP address of wished dhcp range, ex. 192.168.0.200
  • Size of pool: put the number of you want ANSOS nodes, example 20, the pool range will be 192.168.0.200-192.168.0.220
  • Boot file: pxelinux.0 ( this file is available [here](http://dl.dropbox.com/u/75505198/archipel/pxelinux.0) )
  • WINS/DNS Server: set your internal dns server
  • Default router: set your default gateway, ex. your firewall.
  • Mask: set netmask ex. 255.255.255.0
  • Domain Name: put the internal domain name of your network
  • Mark bind dhcp address: to your internal interface will talk with ANSOS node servers.

Configure DHCP Server ( Windows Components )

Note: If you choose use the bundle, this step is not necessary, skip to TFTP Server configuration;

( in construction ... )

Configure TFTP Server

Configure TFTP Server ( bundle tftp32 or tftp64 )

On the root installation directory of tftp, you need have this files and create some folders:

  • pxelinux.0 ( right click, save as )
  • menu.c32 ( right click, save as )
  • create a subfolder pxelinux.cfg
  • create a subfolder images\ansos
  • initrd from ANSOS - initramfs-2.6.32-220.4.2.el6.x86_64.img put on subfolder images\ansos
  • Vmlinuz from ANSOS - vmlinuz-2.6.32-220.4.2.el6.x86_64 put on subfolder images\ansos

Configure TFTP Server ( Windows Components )

Define your ANSOS remote rootfs

Appending Options for rootfs

You have 03 options to mount a remote root file system:

  • smb shares mount point
  • iscsi
  • nfs

Configure PXE Settings

in construction...

DEFAULT menu.c32
PROMPT 0
NOESCAPE 0
ALLOWOPTIONS 0
TIMEOUT 50

menu color border 	37;40 	#00000000 #00000000 none
menu color title  	1;37;40	#00000000 #00000000 none
menu color tabmsg  	40;37	#88888888 #00000000 none
menu color sel  	1;37;42	#ffffffff #ff808080 none
menu color unsel  	1;40;32	#ff00ff00 #00000000 none

# Archipel Boot PXE
LABEL Archipel Boot PXE
MENU  Archipel Boot PXE
LINUX memdisk
KERNEL vmlinuz-2.6.32-220.4.2.el6.x86_64
APPEND append initrd=initramfs-2.6.32-220.4.2.el6.x86_64.img vmlinuz0 root=live:CDLABEL=archipel-node-image rootfstype=auto ro liveimg nomodeset check rootflags=ro crashkernel=512-2G:64M,2G-:128M elevator=deadline install quiet rd_NO_LVM stateless=1 rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM BOOTIF=eth0 ip=dhcp hostname=node1 ARCHIPEL_MOUNT_ADDRESS=//ip_smb_server/stateless ARCHIPEL_MOUNT_OPTIONS=user=username,password=password 


LABEL local
        MENU LABEL Boot Disco Local
        LOCALBOOT 0

Configure mount point to ANSOS per host settings

Network shares

In order to store data, and be able to conserve information across reboot, ANSOS needs a network share. For now, we strongly suggest to use a CIFS based share (NFS has some bugs preventing sqlite to work properly. But you may want to try). So first of all, create a folder on a server named stateless:

( FAQ in construction... )

Clone this wiki locally