Skip to content

Archipel Node Stateless PXE Boot How To Windows Like

magadan edited this page Apr 29, 2012 · 61 revisions

deploy-windows

Note: Page in progress. ( Want help ? Edit this file )

ANSOS 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 ANSOS nodes, example 10, the pool range will be 192.168.0.200-192.168.0.210
  • 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.

Start the services.

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 )
  • memdisk ( right click, save as )
  • create a subfolder pxelinux.cfg
  • create a subfolder images\ansos
  • initrd from ANSOS ISO - initramfs-2.6.32-220.4.2.el6.x86_64.img put on subfolder images\ansos
  • Vmlinuz from ANSOS ISO - vmlinuz-2.6.32-220.4.2.el6.x86_64 put on subfolder images\ansos

Your tftp directory should be like this:

tftp-dir

Configure TFTP Server ( Windows Components )

Note: Page in progress. ( Want help ? Edit this file )

Define your ANSOS remote rootfs

Note: Page in progress. ( Want help ? Edit this file )

Appending Options for rootfs

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

  • smb shares mount point
  • iscsi
  • nfs

Note: Page in progress. ( Want help ? Edit this file )

Configure PXE Settings

Inside the pxelinux.cfg folder on tftp32/64, create a file called default then copy and paste the menu code on the box above.

obs: some values must be set, you will see how to on section: Configure mount point to ANSOS per host settings on this FAQ.

  • hostname=node1
  • ARCHIPEL_MOUNT_ADDRESS=//ip_smb_server/stateless
  • ARCHIPEL_MOUNT_OPTIONS=user=username,password=password
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 images\ansos\vmlinuz-2.6.32-220.4.2.el6.x86_64
APPEND append initrd=images\ansos\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. So first of all, create a folder on a server named stateless:

Inside this folder, create the subfolders

folders

and put the file archipel-mount-post on scripts subfolder. ( edit the file to your needs ).

#!/bin/bash
echo "IP.IP.IP.IP xmpp_host.domain.com" >> /etc/hosts
REMOTE_FS="//your_smb_server/vms"
if [[ ! -n $(mount | grep "$REMOTE_FS") ]]; then
    mount -t cifs -o password=root $REMOTE_FS /vm
fi

You can create this Share on the same Windows server that you install the TFTP, DHCP Servers.Dont forget to set a exclusive user and password to ANSOS mount the share automatically.

To more detail about the setting per host, open the Page on Generic Archipel Configuration section.

Read more about the benefits of ANSOS via pxe boot. ...

Clone this wiki locally