Author: | Nate Coraor <nate@psu.???> |
---|---|
Version: | 0.2 |
Copyright: | Creative Commons Attribution Non-Commercial Share Alike |
This document is an attempt at step-by-step instructions for installing Debian Squeeze on a Dell PowerEdge 1950 using IPMI's Serial Over LAN console abilities. It also assumes you're going to install Debian via a PXE netboot. These instructions are valid for Debian's other boot methods, but since you're cool enough to use IPMI, you should be using netboot too.
To configure the Baseboard Management Controller (BMC), you're probably going to need a monitor and keyboard. This is because the BMC is disabled from the factory, and I say probably because (if you're really motivated) you could create a USB drive that boots Linux and enables it from within the OS. But we're going to assume you're not going to do that.
The 1950's net0 is a shared BMC/host port.
When the hardware boots, you will be presented with the opportunity to enter BIOS Setup:
_ F2 = Setup Phoenix ROM BIOS PLUS Version 1.10 2.2.6 F10 = Utility Mode Copyright 1985-1988 Phoenix Technologies Ltd. F11 = Boot Menu Copyright 1990-2008 Dell Inc. F12 = PXE Boot All Rights Reserved Dell System PowerEdge 1950 www.dell.com Testing memory. Please wait.You'll want to strike <F2> with hasty abandon until F2 = Setup changes to Entering Setup.
As the hardware continues to boot, you will eventually be presented with the option to set up Remote Access:
Press <Ctrl-E> for Remote Access Setup within 5 sec.....Striking <Ctrl-E> as instructed will bring up the RAC Utility:
┌──────────────────── Remote Access Configuration Utility ─────────────────────┐ │ Copyright 2006 Dell Inc. All Rights Reserved 1.25 │ │ │ └──────────────────────────────────────────────────────────────────────────────┘ ┌──────────────────────────────────────────────────────────────────────────────┐ │ Baseboard Management Controller Revision 1.77 │ │ Primary Backplane Firmware Revision 1.05 │ │ ────────────────────────────────────────────────────────────────────────── │ │ │ │ IPMI Over LAN ................................................ Off │ │ NIC Selection ................................................ Shared │ │ LAN Parameters ............................................... <ENTER> │ │ LAN User Configuration ....................................... <ENTER> │ │ Reset To Default ............................................. <ENTER> │ │ System Event Log Menu ........................................ <ENTER> │ │ │ │ │ │ │ │ │ │ │ │ │ Up,Down Arrow to select │ SPACE,+,- to change │ ESC to exit │ F1=Help
IPMI Over LAN ................................................ On NIC Selection ................................................ SharedFailover NIC mode supposedly uses 802.3ad (LACP) to pair both interfaces, which I haven't tested, but it's a neat feature.
Examples, of course, your configuration will be different.
LAN Parameters ............................................... <ENTER> │ IPMI Ove┌────────────────────────────────────────────────────────┐ │ │ NIC Sele│ ──────────────────────────────────────────────────── │red │ │ LAN Para│ IP Address Source ............... Static │TER> │ │ LAN User│ DHCP Host Name .................. <ENTER> │TER> │ │ Reset To│ Ethernet IP Address ............. 10. 1 . 1 . 28 │TER> │ │ System E│ MAC Address ..................... 08:00:20:C0:FF:EE │TER> │ │ │ Subnet Mask ..................... 255.255.255. 0 │ │ │ │ Default Gateway ................. 10. 1 . 1 . 1 ▒ │ │ │ │ ──────────────────────────────────────────────────── ▒ │ │ │ │ VLAN Enable ..................... On ▒ │ │ │ │ VLAN ID ......................... 0001 ▒ │ │ │ │ VLAN ............................ Priority 0 │ │A nice feature of the PE 1950 (and other newer Dell BMCs) is that they support 802.1q VLAN Tagging. Thus, since the port is shared, you can put the BMC on a management network while the host OS lives on a public network, all with a single network cable.
LAN User Configuration ....................................... <ENTER> │ LAN Parameters .┌─────────────────────────────────────────────┐<ENTER> │ │ LAN User Configu│ Account Access ....... Enabled │<ENTER> │ │ Reset To Default│ Account Privilege .... Admin │<ENTER> │ │ System Event Log│ ───────────────────────────────────────── │<ENTER> │ │ │ Account User Name .... [root ] │ │ │ │ Enter Password ....... [ ] │ │ │ │ Confirm Password ..... [ ] │ │ │ └─────────────────────────────────────────────┘ │
Strike <ESC> to pop up the Exit menu.
│ NIC Selection ..........┌──────────────────────────┐.......... Shared │ │ LAN Parameters .........│ Save Changes and Exit │.......... <ENTER> │ │ LAN User Configuration .│ Discard Changes and Exit │.......... <ENTER> │ │ Reset To Default .......│ Return to Setup │.......... <ENTER> │ │ System Event Log Menu ..└──────────────────────────┘.......... <ENTER> │Choose Save Changes and Exit.
Assuming you followed step 1 in Initial BMC Configuration, upon exiting the BMC configuration, you'll be presented with the BIOS setup. If not, reboot and strike <F2> vigorously.
The BIOS configuration:
_ Dell Inc. (www.dell.com) - PowerEdge 1950 BIOS Version 2.2.6 ┌──────────────────────────────────────┬───────────────────────────────────────┐ │ Service Tag: HAHANO │ Asset Tag: │ └──────────────────────────────────────┴───────────────────────────────────────┘ ┌──────────────────────────────────────────────────────────────────────────────┐ │ System Time .......................................... 00:00:00 │ │ System Date .......................................... Thu Jan 01, 1970 │ │ │ │ Memory Information ................................... <ENTER> │ │ CPU Information ...................................... <ENTER> │ │ │ │ SATA Port A .......................................... Off │ │ │ │ Boot Sequence ........................................ <ENTER> │ │ Boot Sequence Retry .................................. Disabled │ │ │ │ Integrated Devices ................................... <ENTER> │ │ PCI IRQ Assignment ................................... <ENTER> │ │ ▒ │ │ Serial Communication ................................. <ENTER> ▒ │ Up,Down Arrow to select │ SPACE,+,- to change │ ESC to exit │ F1=Help
You can play with the Failsafe Baud Rate or Remote Terminal Type if you want, these worked for me:
Serial Communication ................................. <ENTER> │ Sy┌─────────────────────────────────────────────────────────────────────┐ │ │ │ Serial Communication ....... On with Console Redirection via COM2 │ │ │ Me│ External Serial Connector .. COM1 │ │ │ CP│ Failsafe Baud Rate ......... 57600 │ │ │ │ Remote Terminal Type ....... VT100/VT220 │ │ │ SA│ Redirection After Boot ..... Enabled │ │ │ └─────────────────────────────────────────────────────────────────────┘ │
Embedded Server Management ........................... <ENTER> │ CPU In┌───────────────────────────────────────────────────────────────┐ │ │ │ Front-Panel LCD Options ............... User-Defined String │ │ │ SATA P│ User-Defined LCD String ............... <ENTER> │ │ │ └───────────────────────────────────────────────────────────────┘ │ User-Defined LCD String ............... <ENTER> │ ┌─────────────────────────────────────────────────────────────────┐ │ │ SATA │ DER BLINKENLICHTEN │ │ │ └─────────────────────────────────────────────────────────────────┘ │
Integrated Devices ................................... <ENTER> │ System┌───────────────────────────────────────────────────────────────┐ │ │ │ Integrated RAID Controller ........ Enabled │ │ │ Memory│ Embedded SATA ..................... Off │ │ │ CPU In│ IDE CD-ROM Controller ............. Auto │ │ │ │ User Accessible USB Ports ......... All Ports On │ │ │ SATA P│ Embedded Gb NIC1 .................. Enabled with PXE │ │ │ │ MAC Address ..................... 080020C0FFEE │ │ │ Boot S│ Capability Detected ............. TOE │ │ │ Boot S│ Embedded Gb NIC2 .................. Enabled ▒ │ │ │ │ MAC Address ..................... 00E8DEADBEEF ▒ │ │ │ Integr│ Capability Detected ............. TOE │ │ │ PCI IR└───────────────────────────────────────────────────────────────┘ │And copy down NIC1's MAC Address for entry into your DHCP config later.
Strike <ESC> to pop up the Exit menu.
│ ┌──────────────────────────┐ │ │ SATA Port A ............│ Save Changes and Exit │.. Off │ │ │ Discard Changes and Exit │ │ │ Boot Sequence ..........│ Return to Setup │.. <ENTER> │ │ Boot Sequence Retry ....└──────────────────────────┘.. Disabled │Choose Save Changes and Exit. The host reboots.
netboot is the image used to PXE boot and install Debian. Note that net'inst' is not net'boot'!
default menu.c32 prompt 0 menu title PXE Boot Menu label squeeze-eth0-ttys1 menu label ^Squeeze via eth0/ttyS1 kernel debian/squeeze/amd64/linux append locale=en_US.UTF-8 interface=eth0 console-tools/archs=skip-config console-keymaps-at/keymap=us hostname=x domain=x preseed/url=http://foo.bar.baz/preseed-squeeze.cfg console=ttyS1,57600n8 DEBIAN_FRONTEND=text initrd=debian/squeeze/amd64/initrd.gz -- quietDEBIAN_FRONTEND is optional. You may have success with the default curses interface, but if you have all kinds of screen draw problems, switch to text.
next-server 1.2.3.4; filename "/debian/squeeze/amd64/pxelinux.0";Where "next-server" is the address of your TFTP server and "filename" is the path to netboot's pxelinux.0 from the root of the tftpboot directory.
Your BMC should now be responding on the network. Use IPMItool to manipulate it.
You can use the -P <password> argument to ipmitool to avoid typing your password so much, but this will expose it to anyone who views the arguments (like via ps(1)) while the command is executing.
% ipmitool -I lanplus -H bmc.example.org -U root -P hax chassis bootdev pxe Set Boot Device to pxe
% ipmitool -I lanplus -H bmc.example.org -U root -P hax chassis power reset Chassis Power Control: Reset
% ipmitool -I lanplus -H bmc.example.org -U root sol activate Password: [SOL Session operational. Use ~? for help]Your console should begin to show the hardware POST.
If the install gets messed up and you need to restart, but you've already written some stuff to the disk, the BIOS will no longer attempt to PXE boot by default. Repeat step 2 if you need to restart the installation.
# grep GRUB_CMDLINE_LINUX= /etc/default/grub GRUB_CMDLINE_LINUX="console=ttyS1,57600n8" # grep GRUB_SERIAL_COMMAND= /etc/default/grub GRUB_SERIAL_COMMAND="serial --unit=1 --speed=57600 --word=8 --parity=no --stop=1" # update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.30-2-amd64 Found initrd image: /boot/initrd.img-2.6.30-2-amd64 done #
# apt-get install firmware-bnx2 # reboot