Apparent guest addition misfunction?

Discussions related to using VirtualBox on Mac OS X hosts.
marcociotti
Posts: 5
Joined: 21. Mar 2013, 20:05

Apparent guest addition misfunction?

Post by marcociotti »

Hi everybody,

I had a problem while virtualising Win7 on Mac OSX host.
I've installed Win7 last week together with all updates and guest addictions and from then it worked properly until today when, trying to open the virtual machine I see the attached screenshot.

Any clue at all? When Win7 is turning on (black screen with coloured window) the size is the default one that you have without guest addictions installed (that's why the title) then, as soon as it turns light blue it happens. I can't scroll windows or do anithing that is not in what you see in the screenshot.

What should I do??

Many Thanks
Attachments
Screen Shot 2013-03-21 at 18.14.47.png
Screen Shot 2013-03-21 at 18.14.47.png (36.44 KiB) Viewed 2909 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Apparent guest addition misfunction?

Post by mpack »

I suspect you probably shut down the VM while it was minimized/hidden. Try dragging it back to the required size, and remember in future that whatever window size its in when it shuts down, that's normally what size it will have when it starts again. Sometimes, however, the state is confused.
marcociotti
Posts: 5
Joined: 21. Mar 2013, 20:05

Re: Apparent guest addition misfunction?

Post by marcociotti »

It can't be extended, that is the problem...
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Apparent guest addition misfunction?

Post by Perryg »

I don't know why this happens but I have seen it here a few times. The only way they fixed it was by editing the control file.

First the guest and VirtualBox must be shut down and you should make a backup of the *.vbox file before you start.

Then find the control file called *.vbox for the guest and open it is a text editor.
Look for the line <ExtraDataItem name="GUI/LastGuestSizeHint" value="1134,891"/> in your *.vbox file and set it to a value of 1024,768
Save the file and start the guest.
marcociotti
Posts: 5
Joined: 21. Mar 2013, 20:05

Re: Apparent guest addition misfunction?

Post by marcociotti »

How do I backup the .vbox? Is it just to be safe, right?
I will let you know if it works.

How can it happen suddenly?!
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Apparent guest addition misfunction?

Post by loukingjr »

Perryg wrote:I don't know why this happens but I have seen it here a few times. The only way they fixed it was by editing the control file.

First the guest and VirtualBox must be shut down and you should make a backup of the *.vbox file before you start.

Then find the control file called *.vbox for the guest and open it is a text editor.
Look for the line <ExtraDataItem name="GUI/LastGuestSizeHint" value="1134,891"/> in your *.vbox file and set it to a value of 1024,768
Save the file and start the guest.
Perry, something seems amiss with the hint function. Because I was having issues opening guests to the size I set in VBox preferences I tried your suggestion above. I edited <ExtraDataItem name="GUI/LastGuestSizeHint" value="1440,1050"/> to ... value="1920,1080" directly, which opened the guest to that size. However, after shutting down the guest and restarting it it was back to "value=1440,1050". Something seems to be not working.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Apparent guest addition misfunction?

Post by Perryg »

loukingjr wrote:
Perryg wrote:I don't know why this happens but I have seen it here a few times. The only way they fixed it was by editing the control file.

First the guest and VirtualBox must be shut down and you should make a backup of the *.vbox file before you start.

Then find the control file called *.vbox for the guest and open it is a text editor.
Look for the line <ExtraDataItem name="GUI/LastGuestSizeHint" value="1134,891"/> in your *.vbox file and set it to a value of 1024,768
Save the file and start the guest.
Perry, something seems amiss with the hint function. Because I was having issues opening guests to the size I set in VBox preferences I tried your suggestion above. I edited <ExtraDataItem name="GUI/LastGuestSizeHint" value="1440,1050"/> to ... value="1920,1080" directly, which opened the guest to that size. However, after shutting down the guest and restarting it it was back to "value=1440,1050". Something seems to be not working.
@loukongjr,

The reply above your's is only to get back to a usable screen. Everything is over written as soon as you save. or shut down the guest and it should open at the same size as it was shut down with.

I also see a few of the newer guests that do not obey the shut down rules and resize to a large screen (at least the login screen) but this seems to be coming from the guest OS. As for your VBoxManage hint that is what it is, a hint AFAIK. If you shut down bigger it should open bigger. Now the max size in the main manager is suppose to set the max and if that is not working I would post a ticket at bugtracker

One thing you might try is to set the max, reset the hint to what ever you want and when you start the guest turn off auto resize and see if that stops the growing or shrinking.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Apparent guest addition misfunction?

Post by loukingjr »

I guess I'll post something on bug tracker although I'm not sure it's a bug. It seems guests with "Auto" in their monitor preferences work but those without it don't.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
marcociotti
Posts: 5
Joined: 21. Mar 2013, 20:05

Re: Apparent guest addition misfunction?

Post by marcociotti »

I tried what you say but even though I save the changes made with text edit once I oper VB and the guest it overwrites it with 241,72 instead of 1920,1080 previously written...
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Apparent guest addition misfunction?

Post by loukingjr »

marcociotti wrote:I tried what you say but even though I save the changes made with text edit once I oper VB and the guest it overwrites it with 241,72 instead of 1920,1080 previously written...
try editing both the .vbox and vbox-prev file. should start at least once to the correct size.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Apparent guest addition misfunction?

Post by mpack »

Editing the -prev file is pointless. Nothing uses it, it's just a backup.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Apparent guest addition misfunction?

Post by loukingjr »

mpack wrote:Editing the -prev file is pointless. Nothing uses it, it's just a backup.
well, when I didn't edit it my guest opened in whatever resolution was in the .vbox-prev file but okay.

edit: The guests do remember what size they were if you drag it's window to whatever size but setting a certain size in hint doesn't seem to be working. I did file a bug report.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
marcociotti
Posts: 5
Joined: 21. Mar 2013, 20:05

Re: Apparent guest addition misfunction?

Post by marcociotti »

try editing both the .vbox and vbox-prev file. should start at least once to the correct size.
I think it is just a backup as well and anyway whenever I save changes on the .vbox the -prev is automatically updated, therefore nothing has to be edited anymore...

Is TextEdit good, right?
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Apparent guest addition misfunction?

Post by loukingjr »

marcociotti wrote:
try editing both the .vbox and vbox-prev file. should start at least once to the correct size.
I think it is just a backup as well and anyway whenever I save changes on the .vbox the -prev is automatically updated, therefore nothing has to be edited anymore...

Is TextEdit good, right?
text edit worked for me. I think .vobx-prev only updates after you launch the guest. the whole Hint setting seems to be broken but I posted a bug report as I mentioned. ticket https://www.virtualbox.org/ticket/11628
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
rpmurray
Volunteer
Posts: 918
Joined: 3. Mar 2009, 00:29
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7, Mac OS X (various flavors)
Location: Between Heaven and Hell

Re: Apparent guest addition misfunction?

Post by rpmurray »

Just for clarification; have you shut down the VMs and quit the VirtualBox application BEFORE editing the .vbox files?
Post Reply