All Things Xen

General ramblings regarding Citrix XenServer & its open source counter part.

Increasing Ubuntu's Resolution

Increasing Ubuntu's Resolution

Maximizing Desktop Real-estate with Ubuntu

With the addition of Ubuntu (and the likes) to Creedence, you may have noticed that the default resolution is 1024x768.  I certainly noticed it and with much work on 6.2 and Creedence Beta, I have a quick solution to maximizing the screen resolution for you.

The thing to consider is that a virtual frame buffer is what is essentially being used.  You can re-invent X configs all day, but the shortest path is to - first - ensure that that the following files are installed on your Ubuntu guest VM:

sudo apt-get install xvfb xfonts-100dpi xfonts-75dpi xfstt

Once that is all done installing, the next step is to edit Grub -- specifically /etc/default/grub:

sudo vi /etc/default/grub

Considering your monitor's maximum resolution (or not if you want to remote into Ubuntu using XRDP), look for the variable GRUB_GFXMODE.  This is where you can specify your desired BOOT resolutions that we will instruct the guest VM to SUSTAIN into user-space:

GRUB_GFXMODE=1280x960,1280x800,1280x720,1152x768,1152x700,1024x768,800x600

Next, adjust the variable GRUB_PAYLOAD_LINUX to equal keep, or:

GRUB_PAYLOAD_LINUX=keep

Save the changes and be certain to execute the following:

sudo update-grub
sudo reboot

Now, you will notice that even during the boot phase that the resolution is large and this will carry into user space: Lightdm, Xfce, and the likes.

Finally, I would highly suggest installing XRDP for your Guest VM.  It allows you to access that Ubuntu/Xbunutu/etc desktop remotely.  Specific details regarding this can be found through Ubuntu's forum:

http://askubuntu.com/questions/449785/ubuntu-14-04-xrdp-grey


Enjoy!

--jkbs | @xenfomation

 

 

Basic Network Testing with IPERF
VGA over Cirrus in XenServer 6.2

Related Posts

 

Comments 6

Guest - ylk on Tuesday, 23 December 2014 20:28

Thanks man! This helped me to change the resolution.

1
Thanks man! This helped me to change the resolution.
JK Benedict on Thursday, 25 December 2014 04:46

Thanks, YLK - I am so glad to hear this helped someone else!

Now... install XRDP and leverage the power to Remote Desktop (securely) per user or for your Admin purposes!

0
Thanks, YLK - I am so glad to hear this helped someone else! Now... install XRDP and leverage the power to Remote Desktop (securely) per user or for your Admin purposes!
gfpl on Friday, 06 March 2015 10:52

thanks guy is very good help me !!!

0
thanks guy is very good help me !!!
Guest - hans on Thursday, 03 September 2015 23:49

i have tried this.. but why when i reboot the screen can not display..? mine ubuntu 12
thanks..

0
i have tried this.. but why when i reboot the screen can not display..? mine ubuntu 12 thanks..
Guest - Adaministrator on Friday, 04 September 2015 10:00

Thanks very much for the tip, one would think xs-tools takes care of this with a driver like all other hypervisors.

0
Thanks very much for the tip, one would think xs-tools takes care of this with a driver like all other hypervisors.
Fredrik Wendt on Monday, 14 September 2015 21:48

Would be really nice to see all steps needed (CLI on dom0) to go from http://se.archive.ubuntu.com/ubuntu/dists/vivid/main/installer-amd64/current/images/netboot/xen/xm-debian.cfg to a running vm!

0
Would be really nice to see all steps needed (CLI on dom0) to go from http://se.archive.ubuntu.com/ubuntu/dists/vivid/main/installer-amd64/current/images/netboot/xen/xm-debian.cfg to a running vm!

About XenServer

XenServer is the leading open source virtualization platform, powered by the Xen Project hypervisor and the XAPI toolstack. It is used in the world's largest clouds and enterprises.
 
Commercial support for XenServer is available from Citrix.