VirtualBox will not Resize Window

This is for discussing general topics about how to use VirtualBox.

VirtualBox will not Resize Window

Postby ASolar » 12. Jul 2015, 23:48

=== SPECS ===
Virtual Platform: GNOME CentOS 7
From: OSX 10.10.4
00:00:00.710145 OS Product: Darwin
00:00:00.710149 OS Release: 14.4.0
00:00:00.710152 OS Version: Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64
00:00:00.710222 DMI Product Name: MacBookPro11,3
00:00:00.710291 DMI Product Version: 1.0
00:00:00.710300 Host RAM: 16384MB total, 7511MB available

=== PROBLEM ===
Virtual Box Screen Resolution is stuck at 1024x768 in OSX with CentOS 7 & Ubuntu 14.04 (grayed out)
Full Screen = Doesn't Work
Resize = Doesn't Work

=== COMMAND LINE VIRTUAL BOX TESTING ===
$ vboxmanage getextradata global GUI/MaxGuestResolution
No value set!
$ vboxmanage setextradata global GUI/MaxGuestResolution auto
Value: auto

=== CAUSE ===
Virtual Box Video Detect Settings for NVIDIA OSX?
XORG?
X11?

=== VBOX.log ===
00:00:11.839883 GUI: UIFrameBufferPrivate::NotifyChange: Screen=0, Origin=0x0, Size=1024x768, Sending to async-handler
00:00:11.839940 GUI: UIMachineView::sltHandleNotifyChange: Screen=0, Size=1024x768
00:00:11.839950 GUI: UIFrameBufferPrivate::handleNotifyChange: Size=1024x768
00:00:11.839976 GUI: UIFrameBufferPrivate::performResize: Size=1024x768, Directly using source bitmap content

SEE ATTACHED SCREEN SHOT
Attachments
Screen Shot 2015-07-12 at 5.42.16 PM.png
Screen Shot 2015-07-12 at 5.42.16 PM.png (103.74 KiB) Viewed 29457 times
ASolar
 
Posts: 7
Joined: 12. Jul 2015, 23:31

Re: VirtualBox will not Resize Window

Postby Perryg » 13. Jul 2015, 00:58

Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox will not Resize Window

Postby ASolar » 14. Jul 2015, 05:17

I did take a look at the website:
http://www.virtualbox.org/manual/ch01.h ... ize-window

Here is what my settings look like... (for some reason even after I select 2d and 3d it grays it out on startup is this related?)

(see screenshot)
Attachments
Screen Shot 2015-07-13 at 11.12.12 PM.png
Settings After Virtual Machine Startup
Screen Shot 2015-07-13 at 11.12.12 PM.png (38.05 KiB) Viewed 29426 times
Screen Shot 2015-07-13 at 11.10.23 PM.png
Initial Settings
Screen Shot 2015-07-13 at 11.10.23 PM.png (48.52 KiB) Viewed 29426 times
ASolar
 
Posts: 7
Joined: 12. Jul 2015, 23:31

Re: VirtualBox will not Resize Window

Postby ASolar » 14. Jul 2015, 05:27

NOTE: Selecting SCALE MODE ( host key + C ) still doesn't work. Make screen look very odd. I know this should work for linux because I've seen it before.

This has something to do with VIRTUAL SCREEN being grayed out.

(see screenshot)
Attachments
Screen Shot 2015-07-13 at 11.23.15 PM.png
VIRTUAL SCREEN being grayed out
Screen Shot 2015-07-13 at 11.23.15 PM.png (82.26 KiB) Viewed 29425 times
ASolar
 
Posts: 7
Joined: 12. Jul 2015, 23:31

Re: VirtualBox will not Resize Window

Postby loukingjr » 14. Jul 2015, 05:45

@ASolar, Perryg posted the link to Guest Additions in the manual. He did that so you would Install the Guest Additions into your Guest.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8827
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: VirtualBox will not Resize Window

Postby ASolar » 14. Jul 2015, 06:10

http://www.virtualbox.org/manual/ch04.html
Doesn't have a section for OSX for some reason?

In the past I've been able to get Virtual Box to do arbitrary resolutions without adding any libraries.

Do you mean I have to add something special to Virtual Box 5.0.0 just to resize? Shouldn't the video resolution automatically adjust without doing some type of weird setting?

8)
ASolar
 
Posts: 7
Joined: 12. Jul 2015, 23:31

Re: VirtualBox will not Resize Window

Postby loukingjr » 14. Jul 2015, 06:20

It doesn't have section for OSX because there are no guest additions for OSX guests. You are not installing guest additions in an OSX guest, you are installing them in a CentOS 7 guest. Guest additions were always required. The only was you could adjust a guest's screen size without installing them yourself is if you installed a guest that had them pre-installed such as Linux Mint.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8827
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: VirtualBox will not Resize Window

Postby ASolar » 14. Jul 2015, 06:55

Thanks!

I'll have to research this out a bit further. It looks like yum / rpm won't install some packages maybe needed on the Linux system.

From: http://www.virtualbox.org/manual/ch04.html#idp96235792
SAYS: to install DKMS

http://linux.dell.com/dkms/
http://en.community.dell.com/techcenter ... x-projects

It still seems odd to me that I need to install something like (DKMS / VBoxGuestAdditions.iso) just to get my window to resize.

Thanks again for the help!
ASolar
 
Posts: 7
Joined: 12. Jul 2015, 23:31

Re: VirtualBox will not Resize Window

Postby ASolar » 15. Jul 2015, 06:25

Part of what I'm not understanding is why we need to install DKMS to get window resizing to work?

DKMS looks to be mostly related to Dynamic Kernel Modules (from early 2000 / Dell Project?) and not really Video Display Detection. Also Virtual Box knows that my screen resolution is okay at 1024x768 and it also shows (grayed out) 1920x1200. The max display size on a Mac / OSX 10.10.4 is 2880 x 1800 with NVIDIA GeForce GT 750M 2048 MB. Perhaps the crux of the problem is that Virtual Box doesn't detect the host/native display size. Why do we need to install DKMS and if we do why isn't DKMS supported as a standard Linux YUM / RPM package ("yum search dkms" shows nothing)

Is there any other standard way of getting video displays to resize or Virtual Box without installing DKMS?
ASolar
 
Posts: 7
Joined: 12. Jul 2015, 23:31

Re: VirtualBox will not Resize Window

Postby loukingjr » 15. Jul 2015, 06:31

DKMS has nothing to do with resizing the screen. It is recommended so every time there is a Kernel update you don't have to rebuild the Guest additions. DKMS does it for you.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8827
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: VirtualBox will not Resize Window

Postby ASolar » 15. Jul 2015, 07:00

Okay, so according to the Virtual Box Help (http://www.virtualbox.org/manual/ch01.h ... ize-window) preserving the aspect ratio in scale mode (host key + C) works only on Windows hosts and on Mac OS X hosts. I have Mac OS X running a Linux Client so everything should be okay.

The problem is when I resize Virtual Box it ignores the aspect ratio or stays fixed at 1024x768. When I ask Virtual Box to take a Screen Shot of the display it shows the screen shot with the corrected Aspect Ratio even though my display is smooshed.

(see attached screenshot)

Do you have Virtual Box working with screen resizing that keeps the aspect ratio on OSX?

:cry:
Attachments
Screen Shot 2015-07-15 at 12.53.55 AM.png
Screen Shot 2015-07-15 at 12.53.55 AM.png (55.97 KiB) Viewed 29404 times
ASolar
 
Posts: 7
Joined: 12. Jul 2015, 23:31

Re: VirtualBox will not Resize Window

Postby Perryg » 29. Jul 2015, 02:12

The guest additions are installed in the guest. While the guest is running click the device tab at the top and select to insert guest additions. This will mount the additions in the virtual CD drive and you install them in the guest using the terminal. For the correct way to install kernel mod packages in CentOS you need to read and follow the instructions here https://forums.virtualbox.org/viewtopic ... 29&t=15679

Use the fedora section as it is the same as CentOS.
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox will not Resize Window

Postby UberGeekDude » 25. Feb 2019, 21:36

I have a Windoze 10 VM and experiencing the same "issue" with greyed out screen resolution in the VM.

For me, the screen size adjustment was within the Windoze screen resolution settings: right-click the desktop, select Display Settings, and change the Resolution to max (1600x1200) was available.

One setting in the VM, I checked 2D and 3D acceleration that increased the Video Memory to 256MB. Not sure that helps, though.

Regards.
UberGeekDude
 
Posts: 1
Joined: 25. Feb 2019, 21:32

Re: VirtualBox will not Resize Window

Postby BillG » 26. Feb 2019, 00:13

And you think that your problem is related to a problem with a Linux guest on an OSX host four years ago?
Bill
BillG
Volunteer
 
Posts: 4178
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 7,8,Server

Re: VirtualBox will not Resize Window

Postby socratis » 26. Feb 2019, 00:22

UberGeekDude wrote:the screen size adjustment was within the Windoze screen resolution settings
This is technically correct, good advice.

BillG wrote:your problem is related to a problem with a Linux guest on an OSX host four years ago?
And this is correct too, that's why the thread gets locked and returns back to its "grave"...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25828
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to Using VirtualBox

Who is online

Users browsing this forum: No registered users and 7 guests