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
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.
- Readers' Choice Awards 2013
- Linux Kernel News - November 2013
- Advanced Hard Drive Caching Techniques
- December 2013 Issue of Linux Journal: Readers' Choice
- Sublime Text: One Editor to Rule Them All?
- Mars Needs Women
- Raspberry Pi: the Perfect Home Server
- Web Administration Scripts
- Linux Systems Administrator
- IBM Will Minimize Impact of Future Disasters
- thanks for share, great
15 hours 43 min ago
- There are factors which are
20 hours 43 min ago
- Gnome 3 ?
21 hours 28 min ago
- Reply to comment | Linux Journal
1 day 1 hour ago
- "Redis RethinkDB 4.5%" on Best NoSQL Databases
1 day 11 hours ago
- on the ground
1 day 18 hours ago
- I was able to read the whole
1 day 19 hours ago
- since i have read the title i
1 day 22 hours ago
- Belanja Online Cari Voucher Diskon
1 day 22 hours ago
- The kernel doesn't really
2 days 11 hours ago