How do I get the ubuntu virtual machine to automatically adjust the screen resolution to match my macbook pro or external monitor?

I am running a ubuntu guest on a mac osx host using a virtual window. I am trying to get a screen resolution for automatic setup for both my macbook pro and an external (2nd) monitor.

Online tutorials let me use the CLI to add permissions such as

xrandr --addmode 1440x900 

I already tried:

 xrandry --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync 

so when I type 'xrandr', this is the output:

 Screen 0: minimum 64 x 64, current 1024 x 768, maximum 32000 x 32000 VBOX0 connected 1024x768+0+0 0mm x 0mm 1024x768 60.0*+ 800x600 60.0 640x480 60.0 

So, how do I get the ubuntu virtual machine to automatically adjust the screen resolution according to my macbook pro or external monitor?

+4
source share
2 answers

The key was to increase the video memory in VirtualBox for my ubuntu virtual machine. See this link for an answer. See this question on ubuntu forums.

+3
source

The installation of virtualbox-guest-x11 worked for me.

Host: Mid 2014 MacBookPro 15in

Guest: Ubuntu 12.04.5 LTS Desktop AMD64

sudo apt-get install virtualbox-guest-x11

0
source

All Articles