How to explicitly fix the guest resolution so it doesn;t revert to 800x600 after

Started by kalpana, Nov 01, 2023, 04:01 AM

Previous topic - Next topic

kalpana

I have Ubuntu 22.04 running as a guest in virtual box (hosted on Windows 10)

Since I installed virtual Box guest additions, Ubuntu reboots result in the resolution being reset to 800x600, so I have to explicitly reset it (to 1290x1080) via display settings after every reboot.

How do I fix this (literally fix it to 1290x1080)?

I found this post https://forums.virtualbox.org/viewto...p?f=3&t=103812 but cannot work out where/how to enter the command:


VBoxManage setextradata "VM name" "GUI/LastGuestSizeHint" "1024,768"


(in my case, the resolution needs to be 1290x1024, so I assume I can just replace 1024,768 with 1290,1080 but no idea where the file(?) is that I need to edit).