Setting the Resolution in an X-less VM
Ever been working in a VM that is command line only and wished it wasn’t so small? Well, that was how I felt constantly until now. Step on past the break to see how to change the resolution in an X-less install by utilizing uvesafb.
Let’s look at this from two points of view: Ubuntu and Gentoo.
Ubuntu with Grub2:
First, we are assuming that you want to make your window 1024x768-24... adjust as you see fit.
Install v86d so you can get uvesafb:
gene@ubuntu01:~$ sudo apt-get install v86d
Edit /etc/default/grub so that the lines referenced below are changed:
... GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1024x768-24,mtrr=3,scroll=ywrap" ... GRUB_GFXMODE=1024x768
Now add the following to /etc/initramfs-tools/modules:
uvesafb mode_option=1024x768-24 mtrr=3 scroll=ywrap
Now we need to force the use of the framebuffer:
gene@ubuntu01:~$ echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
Lastly we need to apply these changes and reboot:
gene@ubuntu01:~$ sudo update-grub2 gene@ubuntu01:~$ sudo update-initramfs -u gene@ubuntu01:~$ sudo reboot
Gentoo:
I could reinvent the wheel here... or I can just let Spock, the author of uvesafb, tell us how this is done at http://dev.gentoo.org/~spock/projects/uvesafb/
That's it. I hope you enjoy having a little more real estate in your command line only VM's.
Gene Liverman is a Systems Administrator of *nix and VMware at a university.
Trending Topics
| OpenLDAP Everywhere Reloaded, Part I | May 23, 2012 |
| Chemistry the Gromacs Way | May 21, 2012 |
| Make TV Awesome with Bluecop | May 16, 2012 |
| Hack and / - Password Cracking with GPUs, Part I: the Setup | May 15, 2012 |
| An Introduction to Application Development with Catalyst and Perl | May 14, 2012 |
| Cryptocurrency: Your Total Cost Is 01001010010 | May 09, 2012 |
- OpenLDAP Everywhere Reloaded, Part I
- Convert video to MP4 for Nook Tablet with best Video to Nook Tablet Converter
- Validate an E-Mail Address with PHP, the Right Way
- Readers' Choice Awards 2011
- Hack and / - Password Cracking with GPUs, Part I: the Setup
- Make TV Awesome with Bluecop
- Examining Load Average
- Why Python?
- Building a Two-Node Linux Cluster with Heartbeat
- Python for Android
- Euro 2012 Coupon Codes - Get 20% Off Pavtube TiVo Converter
8 hours 8 min ago - Euro 2012 Big Sale: 20% Off Instant Savings on TiVo Converter
8 hours 11 min ago - MakeMKV works as well, though
8 hours 53 min ago - Euro 2012 Big Sale: 20% Off Instant Savings on TiVo Converter
9 hours 26 min ago - Awesome
1 day 7 hours ago - Who worries approx the
1 day 9 hours ago - Convert DVD to MKV File with
1 day 9 hours ago - Really nice article! Catalyst
1 day 10 hours ago - michael kors outlet
1 day 15 hours ago - Default configuration of /etc/ssh/ssh-config
2 days 3 hours ago





Comments
more simple approach
Well, I prefer doing this either via a (virtual) network based login (SSH, or if you mind the CPU overhead, telnet on a dedicated subnetwork) or via serial port emulation (which will provide you with e.g. a PTY to connect to).
Setting up graphics (even though it's just a framebuffer, not full X) just feels so wrong for this... But the article might fit some other usage scenario, e.g. if you absolutely want to use that fancy VM frontend which happens to display framebuffer output, whether X is running or not... So see this just as a small reminder that even VMs might provide more user interfaces than the (emulated) graphics output.