Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Debian 7.2.0 as a guest operating system on VirtualBox 4.2.18 (host OS is Windows 7). I installed Debian without any graphical user interface. When I start up Debian, the console size is awfully small (about 80x40). How could I change that?

share|improve this question
up vote 5 down vote accepted

The resolution of virtual consoles can be set by adding the following lines to /etc/default/grub and then running update-grub (maybe as root):


Just change the 1024x768 to the resolution you want.

share|improve this answer
Thanks Risto for your reply. With slight modifications, and with the help of askubuntu.com/questions/18444/… I was able to solve my problem. – tuope Oct 31 '13 at 19:02
Glad to hear that you solved the problem! – Risto Salminen Oct 31 '13 at 19:05
doesn't work in debian 8.2 jessie on VMWare Workstation 12 – Gizmo Sep 8 '15 at 21:06
Is there a way to do this without GRUB? As in, not taking GRUB into account -- when the system has already been booted? – amn yesterday

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.