{"id":1121,"date":"2011-10-17T13:39:00","date_gmt":"2011-10-17T17:39:00","guid":{"rendered":"http:\/\/mossiso.com\/?p=1121"},"modified":"2012-02-23T14:11:46","modified_gmt":"2012-02-23T19:11:46","slug":"centos-6-idrac6-and-poweredge-r510","status":"publish","type":"post","link":"https:\/\/mossiso.com\/2011\/10\/17\/centos-6-idrac6-and-poweredge-r510\/","title":{"rendered":"CentOS 6, iDrac6 and PowerEdge R510"},"content":{"rendered":"
I was updating one server to use CentOS 6, and ran into this issue of setting up the iDRAC for remote console use. In previous versions, I would add a line to the \/etc\/inittab file. This is now unused. RedHat is favoring the “Upstart” system developed by and for Ubuntu. It starts services on request, rather than all at once.<\/p>\n
So here is how I set up my Dell PowerEdge R510 with CentOS 6 to use the iDRAC6.<\/p>\n
Info was taken from the RedHat manual<\/a>, the Dell iDRAC manual<\/a>, and probably a bunch of other sites<\/a> that I googled for.<\/p>\n These steps are by no means comprehensive or detailed. I barely even know what’s going on myself, but it seems to work. It’s kind of cool to see a system boot up in your terminal. It’s like your terminal turns into a monitor connected to the server.<\/p>\n To connect to the managed system text console, open an iDRAC6 command prompt (displayed through an SSH session):<\/p>\n and type:<\/p>\n Only one To exit the console type these three keys: The default (and maximum) size of the history buffer is 8192 characters. You can set this number to a smaller value using the command:<\/p>\n RedHat changed an important part of their system with the upgrade from version 5 to 6. This affects CentOS which is the same thing, but rebranded. I was updating one server to use CentOS 6, and ran into this issue of setting up the iDRAC for remote console use. In previous versions, I would add … Continue reading CentOS 6, iDrac6 and PowerEdge R510<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1122,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[167],"tags":[222,179,223],"class_list":["post-1121","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical","tag-linux","tag-servers","tag-systems-administration"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/mossiso.com\/wp-content\/uploads\/2011\/10\/Screen-Shot-2011-10-17-at-Oct-17-1.34.40-PM.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9wosP-i5","_links":{"self":[{"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/posts\/1121"}],"collection":[{"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/comments?post=1121"}],"version-history":[{"count":7,"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/posts\/1121\/revisions"}],"predecessor-version":[{"id":1126,"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/posts\/1121\/revisions\/1126"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/media\/1122"}],"wp:attachment":[{"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/media?parent=1121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/categories?post=1121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mossiso.com\/wp-json\/wp\/v2\/tags?post=1121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<\/a><\/p>\n
Setting up the iDrac6<\/h3>\n
Edit BIOS<\/h4>\n
\n
F2<\/code> to enter the BIOS setup utility during POST.<\/li>\n
<Enter><\/code>.<\/li>\n
\n
serial communication....On with serial redirection via com2<\/code><\/li>\n
serial port address....Serial device1 = com1, serial device2 = com2<\/code><\/li>\n
external serial connector....Serial device 1<\/code><\/li>\n
failsafe baud rate....57600<\/code><\/li>\n
remote terminal type....vt100\/vt220<\/code><\/li>\n
redirection after boot....Enabled<\/code><\/li>\n<\/ul>\n
Edit iDRAC settings<\/h4>\n
\n
<Ctrl><E><\/code> when prompted during POST. If your operating system begins to load before you press
<Ctrl><E><\/code>, allow the system to finish booting, and then restart your system and try again.<\/li>\n
\n
<Enter><\/code>. NIC Selection is displayed.<\/li>\n
\n
\n
\n
<Enter><\/code>.<\/li>\n
<Esc><\/code>.<\/li>\n<\/ol>\n
\n
<Esc><\/code>.<\/li>\n
Set up Linux OS (to do after OS is installed)<\/h4>\n
\n
\n
\/boot\/grub\/grub.conf<\/code>file as follows:
cp \/boot\/grub\/grub.conf \/boot\/grub\/grub.conf.orig<\/code><\/li>\n
\/boot\/grub\/grub.conf<\/code> file as follows:<\/li>\n<\/ol>\n
\n
serial --unit=0 --speed=57600<\/code>
terminal --timeout=10 serial console<\/code><\/li>\n
kernel ............. console=ttyS1,57600 console=tty1<\/code><\/li>\n
\/boot\/grub\/grub.conf<\/code>\n
\n#
\n#\u00a0 Note that you do not have to rerun grub after making changes to this file
\n#\u00a0 NOTICE: You have a \/boot partition. This means that
\n#\u00a0 all kernel and initrd paths are relative to \/boot\/, eg.
\n#\u00a0 root (hd0,0)
\n#\u00a0 kernel \/vmlinuz-version ro root=\/dev\/Logical1\/LogVol00
\n#\u00a0 initrd \/initrd-version.img
\n#boot=\/dev\/sda
\ndefault=0
\ntimeout=5
\n #splashimage=(hd0,0)\/grub\/splash.xpm.gz<\/strong>
\n#hiddenmenu
\nserial –unit=1 –speed=57600<\/strong>
\nterminal –timeout=5 console serial<\/strong>title CentOS (2.6.18-164.11.1.el5) SOL Redirection
\nroot (hd0,0)
\nkernel \/vmlinuz-2.6.18-164.11.1.el5 ro root=\/dev\/Logical1\/LogVol00 console=tty1 console=ttyS1,57600<\/strong>
\ninitrd \/initrd-2.6.18-164.11.1.el5.img
\ntitle CentOS (2.6.18-164.el5)
\nroot (hd0,0)
\nkernel \/vmlinuz-2.6.18-164.el5 ro root=\/dev\/Logical1\/LogVol00
\ninitrd \/initrd-2.6.18-164.el5.img<\/div>\n<\/li>\n<\/ol>\nEnabling Login to the Console After Boot<\/h4>\n
\n
\/etc\/init\/serial-ttyS1.conf<\/code>file.Sample File:
\/etc\/inittab<\/code>\n
\nstop on starting runlevel [016]respawn
\nexec \/sbin\/agetty -h -L 57600 ttyS1 vt102<\/div>\n<\/li>\n<\/ol>\nEdit the file
\/etc\/securetty<\/code><\/h4>\n
\n
\/etc\/securetty<\/code>file as follows:
cp \/etc\/securetty \/etc\/securetty.orig<\/code><\/li>\n
\/etc\/securetty<\/code>as follows:Add a new line with the name of the serial tty for COM2:
ttyS1<\/code>Sample File:
\/etc\/securetty<\/code>\n
\nvc\/2
\nvc\/3
\nvc\/4
\nvc\/5
\nvc\/6
\nvc\/7
\nvc\/8
\nvc\/9
\nvc\/10
\nvc\/11
\ntty1
\ntty2
\ntty3
\ntty4
\ntty5
\ntty6
\ntty7
\ntty8
\ntty9
\ntty10
\ntty11
\n*ttyS1*<\/div>\n<\/li>\n<\/ol>\nRedirect the video output over ssh connections<\/h2>\n
Starting a Text Console Through SSH (Remote Access, SOL)<\/h3>\n
ssh root@xxx.xxx.xxx.xxx<\/code><\/p>\n
console com2<\/code><\/p>\n
console com2<\/code> client is supported at a time. The
console -h com2<\/code> command displays the contents of the serial history buffer before waiting for input from the keyboard or new characters from the serial port.<\/p>\n
<\/code>
<Ctrl ><Shift >\\<\/code><\/p>\n
racadm config -g cfgSerial -o cfgSerialHistorySize < number ><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"