selivan / selivan.github.io

my blog
https://selivan.github.io
12 stars 10 forks source link

2019/01/31/virtualbox-linux-guest-autoresize-screen #55

Open selivan opened 5 years ago

selivan commented 5 years ago

Comments for: https://selivan.github.io/2019/01/31/virtualbox-linux-guest-autoresize-screen.html

vitalyrepin commented 4 years ago

I managed to solve the problem with VBoxSVGA screen resizing. It took almost an hour. First, make sure that your kernel is built with CONFIG_DRM_VMWGFX and vmwgfx is loaded.

Second (most tricky part) - make sure that /usr/bin/VBoxClient --vmsvga is launched AS ROOT!!!! Otherwise it lacks some permissions. Now I just added it into system bootup scripts.

selivan commented 4 years ago

@vitalyrepin Nice job! Mentioned your comment in the article.

lcmurtaugh commented 4 years ago

Thanks, this made the difference for me!

meisme-dev commented 3 years ago

VBoxClient --vmsvga doesn't seem to work when I add it to systemd I don't know why.

selivan commented 3 years ago

@meisme-dev VBoxClient is part of virtualbox-guest-x11, it probably should be started from X session.

Are you sure your systemd service has access to your X server(DISPLAY variable, user account for accessing X server socket, may be something else)?

Try running it from terminal in X session and check if it works from there.

dxvictor commented 3 years ago

I'm running lubuntu. I installed virtualbox-guest-* packages as noted above. and then switched to VBoxSVGA display controller. After a reboot I went to Preferences->LXQt Settings->Monitor Settings and selected a new resolution. Resolution immediately changed and I confirmed I wanted to keep the new settings.

What surprises me is that finding the right sequence of steps was not easy. Seems odd that this would be difficult at all. Anyone who would want to run a GUI front end to any OS probably doesn't want 800x600. Even on a command line this is pretty clunky.

Anyway, thanks to the above individuals for clarifying the correct approach.

meghanacosmos commented 3 years ago

Awesome!! Works for me!! Thanks for the hack!

selivan commented 3 years ago

@Meghana-12 you are welcome :)

omasbioladen commented 1 year ago

I tried so many things and as vitalyrepin's VBoxClient foldern I do not have I just ran the app out of terminal with sudo lading to the demand for a boot from CD. But then after starting from menue the ezising works although the Vbox's window frame showing strange behavior.