CentOS Console Resolution


Warning: Illegal string offset 'lang' in /home/kurakin/domains/kurakin.info/public_html/wp-content/plugins/wp-highlightjs/wp_highlight.js.php on line 119

Warning: Illegal string offset 'lang' in /home/kurakin/domains/kurakin.info/public_html/wp-content/plugins/wp-highlightjs/wp_highlight.js.php on line 119

Warning: Illegal string offset 'lang' in /home/kurakin/domains/kurakin.info/public_html/wp-content/plugins/wp-highlightjs/wp_highlight.js.php on line 119

Warning: Illegal string offset 'lang' in /home/kurakin/domains/kurakin.info/public_html/wp-content/plugins/wp-highlightjs/wp_highlight.js.php on line 119

Sometimes you need just a bit bigger console window when you working with your CentOS virtual installation with only NAT network enabled and you are too lazy to mess with port forwarding on VirtualBox or your preferred Virtualization software. Just for few small short experiments.

So, in grub.conf you’ll find something like that (default install using NetInstall image):

title CentOS (2.6.18-238.19.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.19.1.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-238.19.1.el5.img

And you need to add next string to kernel:

console=ttyS0,57600 console=tty0 vga=792

So it would look like:

title CentOS (2.6.18-238.19.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.19.1.el5 ro root=/dev/VolGroup00/LogVol00 console=ttyS0,57600 console=tty0 vga=792
initrd /initrd-2.6.18-238.19.1.el5.img

Other values for vga parameter:

791 - 1024x768, 16 bit
792 - 1024x768, 24 bit
794 - 1280x1024, 16 bit
795 - 1280x1024, 24 bit

After reboot it should work.

One thought on “CentOS Console Resolution

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.