WIP Wiki
From Advance Install docs:
- CloudStack programs the PXE server with the host MAC address, host IP address, and boot image file based on the bare metal template the user has chosen.
- CloudStack programs the DHCP server with the MAC address and IP.
- CloudStack enables PXE boot on the host and powers it on using IPMI interface.
- The host broadcasts a DHCP request and receives a reply from the DHCP server. This reply consists of an IP address for the host, PXE boot server address, and a pointer to the boot image file.
- The host then contacts the PXE boot server and downloads the image file using TFTP protocol. The image file is a live kernel and initrd with PING software installed.
- The host starts the boot process using the downloaded file from the TFTP server.
- After these steps complete successfully, the host is ready for the workload.
Setup PXE Server. Add steps for CentOS/Ubuntu
Setup dhcpd. Add steps for CentOS/Ubuntu
Setup samba.
Create samba share directory as root or sudo user, make it writable by everyone:
mkdir -p /sambashare
chmod 777 /sambashare
Edit /etc/smb.conf or /etc/samba/smb.conf:
(optional: make workgroup = WORKGROUP //expected default in window7, but not needed)
#Change security to share (deprecated though)
security = share
#Add this at the end of the file, the root share folder/name is Share
[Share]
path = /sambashare
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes
Install an OS on one server that is identical (resources, disk etc.) to the servers which will be eventually used as baremetal hosts which are servers on which an OS is provisioned using IPMI/PXE.
Next we need to save the disk image as a template. The idea is to use this template/disk-image to PXE boot via CloudStack (CS). CS controls the baremetal host using IPMI and provisions a template using DHCP and PXE/TFTP.
Get latest PING: http://ping.windowsdream.com/ | Docs: http://ping.windowsdream.com/ping/doc-3.00/intro.html
PING is a small Linux system that backups/creates the image of the template OS on to a network/local disk.
Setup Management Server, install ipmitool. For Mac OSX, build it from http://sourceforge.net/projects/ipmitool/ version 1.8.11 (.12 may fail)