Restore snapshot has wrong screen size

Discussions related to using VirtualBox on Windows hosts.
xerces8foo
Posts: 99
Joined: 3. May 2014, 16:44

Restore snapshot has wrong screen size

Post by xerces8foo »

VB: 6.0.4
Host: Windows 8.1 64 bit 16GB RAM
Guest: Windows 2012R2 64 bit, 8GB RAM
Guest Additions: installed

What I did was:
- start the VM, log into guest Windows
- take a snapshot
- use the VM for a while
- Power off, with"Restore last snapshot"
- start VM again

Result:
- VM starts but has screen size reset to 640x480

This happens every time with this VM, even with newer snapshots.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Restore snapshot has wrong screen size

Post by mpack »

Known problem, already discussed in the "Discuss the 6.0.4 release" topic. Try installing the latest test build of the Guest Additions.
xerces8foo
Posts: 99
Joined: 3. May 2014, 16:44

Re: Restore snapshot has wrong screen size

Post by xerces8foo »

I still see this (another host, another guest).

VB: 6.1.38
Host: Windows 10 Pro 21H2 64 bit, 32 GB RAM
Guest: Windows 10 Pro 21H2 64 bit, 8 GB RAM
Guest Additions: installed, version 6.1.38

If I start the VM to a snapshot that was taken while it was running, then the following happens:
- during loading it shows the VM screen (gray snapshot) in correct size
- then it makes the VM window very small (see screenshot)
- then it makes it 640x480

Screenshot of all 3 steps attached. Or not, I get this error: Sorry, the board attachment quota has been reached.
I will put them up later if/when the board recovers...
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Restore snapshot has wrong screen size

Post by scottgus1 »

The forum is having trouble uploading things for now. You can zip the screenshots then post the zip file on a file-sharing site with "everyone can read" permissions. (Please don't use a picture sharing site.)
xerces8foo
Posts: 99
Joined: 3. May 2014, 16:44

Re: Restore snapshot has wrong screen size

Post by xerces8foo »

xerces8foo
Posts: 99
Joined: 3. May 2014, 16:44

Re: Restore snapshot has wrong screen size

Post by xerces8foo »

Looks like this issue in the tracker: https://www.virtualbox.org/ticket/2942 "Save state -> Start/resume does not restore window size"
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Restore snapshot has wrong screen size

Post by scottgus1 »

I'm sorry, Xerces, looks like we missed the post of the screenshots link and it has expired. The bugtracker ticket looks similar to what you're reporting but is very old. Can you please try using Upload Attachment again? It's working now. Also, please zip and upload the VM's .vbox file, after this behavior has occurred.
xerces8foo
Posts: 99
Joined: 3. May 2014, 16:44

Re: Restore snapshot has wrong screen size

Post by xerces8foo »

the images attached

(the size limits are very...limiting)
Attachments
third screenshot
third screenshot
VB-snap-3.png (31.88 KiB) Viewed 1786 times
second screenshot
second screenshot
VB-snap-2.png (8.71 KiB) Viewed 1786 times
VB-snap-1.zip
first screenshot
(233.28 KiB) Downloaded 4 times
xerces8foo
Posts: 99
Joined: 3. May 2014, 16:44

Re: Restore snapshot has wrong screen size

Post by xerces8foo »

scottgus1 wrote:Also, please zip and upload the VM's .vbox file, after this behavior has occurred.
attached
Attachments
Win10 test.zip
(3.33 KiB) Downloaded 5 times
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Restore snapshot has wrong screen size

Post by fth0 »

While the VM is not running, try removing the guest size hints with

Code: Select all

cd "C:\Program Files\Oracle\VirtualBox"
VBoxManage setextradata "Win10 test" "GUI/LastGuestSizeHint" ""
VBoxManage setextradata "Win10 test" "GUI/LastGuestSizeHint1" ""
xerces8foo
Posts: 99
Joined: 3. May 2014, 16:44

Re: Restore snapshot has wrong screen size

Post by xerces8foo »

Did that, started the VM again, no change, behaves as before: big window, very small window, then middle size window
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Restore snapshot has wrong screen size

Post by fth0 »

Yet another idea: There is an undocumented setting that may or may not help:

Code: Select all

cd "C:\Program Files\Oracle\VirtualBox"
VBoxManage setextradata "Win10 test" "GUI/AutomountGuestScreens" "1"
Please provide a (zipped) VBox.log file from a VM run with this setting. To undo the setting:

Code: Select all

cd "C:\Program Files\Oracle\VirtualBox"
VBoxManage setextradata "Win10 test" "GUI/AutomountGuestScreens" ""
Edit:
Corrected the undo setting command for posterity.
Last edited by fth0 on 25. Nov 2022, 16:08, edited 1 time in total.
xerces8foo
Posts: 99
Joined: 3. May 2014, 16:44

Re: Restore snapshot has wrong screen size

Post by xerces8foo »

Are you sure the undo command is the same as the first one?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Restore snapshot has wrong screen size

Post by scottgus1 »

The undo command probably should be either:

VBoxManage setextradata "Win10 test" "GUI/AutomountGuestScreens"

or

VBoxManage setextradata "Win10 test" "GUI/AutomountGuestScreens" ""
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Restore snapshot has wrong screen size

Post by fth0 »

xerces8foo wrote:Are you sure the undo command is the same as the first one?
Of course not. ;) Thanks for asking! :)
Post Reply