The window size is controlled by the VM's screen resolution. If you manually resize the window on the host you'll only zoom on the image returned by the VM, so of course this gives a very bad image quality.
Change the screen's resolution in the VM's configuration, either via the GUI, or directly via the command line with xrandr
.
First run xrandr
with no arguments, it'll display all outputs (in this case they're just the virtual outputs emulated by VirtualBox).
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
...
Now run xrandr --output <output> --size <resolution>
and replace "output" and "size" with the connected output that you got from the previous command (in this case VGA1
) and the resolution you want to set, I recommend setting it just a bit lower than your actual monitor to leave space for the taskbar and Virtualbox window title bar.
Example : xrandr --output VGA1 --size 1920x1040
.
Once you set the resolution in the VM, VirtualBox will automatically resize its window on the host.
By the way, here's the official Ubuntu documentation about changing the screen's resolution.
Things to consider :have you updated graphics drivers for the host machine? Do you get similar issues for a different guest (e. g. Linux mint or any other distro)? Does the guest vm have enough graphics resources to deal with full screen animations? By default IIRC VirtualBox assigns about 20mb for video for the guest . Try giving the guest more resources. 128 mb video ram and 1gb Ram should get you started. Depending on what graphics card you have it may not be able to cope with visual effects. Give a standard desktop environment (e. g. Xfce with no composting) a try. If symptoms persist it i – user67350 – 2014-05-12T13:33:49.003
1Once you've fixed this issue, be sure to turn on graphics acceleration for the VM in it's VirtualBox settings. – Jon Onstott – 2014-05-15T15:42:52.597