4K resolution in Windows 10 guest

Discussions about using Windows guests in VirtualBox.
Locked
aanderson
Posts: 11
Joined: 17. Aug 2015, 01:01

4K resolution in Windows 10 guest

Post by aanderson »

I am running a Windows 10 64bit guest using VirtualBox 5.02 on a Windows 8.1 64bit host. I have installed the latest expansion pack and guest additions and have 2d and 3d acceleration enabled. I have a 4K monitor connected to my host running at 4K UHD 3840x2160@30HZ. However when I auto-size the guest in full screen and view the display properties the maximum resolution is 2560x1440. My host does not have a DisplayPort video output and due to this limitation I can only run 4K at 30HZ over HDMI. In the guest if I view the display properties of the display adapter it is locked to 60HZ which may be part of the problem. Does anyone have any idea on how I can get 4K running in my Windows 10 guest?
aanderson
Posts: 11
Joined: 17. Aug 2015, 01:01

Re: 4K resolution in Windows 10 guest

Post by aanderson »

After further investigation it does appear Virtualbox is filtering the supported host resolutions by the fixed 60hz refresh rate value:
refresh.jpg
refresh.jpg (87.33 KiB) Viewed 34217 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: 4K resolution in Windows 10 guest

Post by mpack »

I expect it is Windows which shows you a filtered list, not VirtualBox.
aanderson
Posts: 11
Joined: 17. Aug 2015, 01:01

Re: 4K resolution in Windows 10 guest

Post by aanderson »

I followed the instructions in this post and in the guest VM I manually specified the resolution using the guest addition VBoxControl.exe command. Setting the VM custom video mode from the host using VBoxManage command had no effect. After restarting the VM I visually confirmed the resolution was set to 4K UHD.

VBoxControl.exe addcustommode 3840 2160 32
VBoxControl.exe setvidmode 3840 2160 32 1
FrankLB
Posts: 2
Joined: 4. Nov 2018, 04:54

Re: 4K resolution in Windows 10 guest

Post by FrankLB »

When I use "VBoxControl.exe listcustommodes" or "VBoxControl.exe addcustommode 3840 2160 32" at my windows 10 guest, I always got the error "VBoxControl.exe: error: Error opening video registry key!".

Here's my configuration:
Host: windows 10 + Intel UHD graphics 630 (integrated within Intel CPU, supporting 3820x2160 at 30Hz)
Guest: windows 10
VirtualBox: 5.2.20

BTW, I did use "With the guest running open a 'cmd' window as administrator."

I searched the internet and this Virtualbox forum and did not found any clue related to "error opening video registry key". Does anyone know how to solve this issue? Thanks.
FrankLB
Posts: 2
Joined: 4. Nov 2018, 04:54

Re: 4K resolution in Windows 10 guest

Post by FrankLB »

I figured out the solution. That is, I have to add a custom video display at the host instead of the guest VM.

Here's the steps:
1. at the host (not the guest), open a 'cmd' window as administrator.
2. go to VBox Addtion directory (e.g. C:\Program Files\Oracle\VirtualBox)
3. run the command
.\VBoxManage.exe setextradata "your-VM-name" CustomVideoMode1 3840x2160x32
4. start your VM
5. at the VM, use HOME+F to switch to the full screen mode which is 4k at my display monitor.

Note: at the VM, when I ran "VBoxControl.exe listcustommodes", I still got the same error "Error opening video registry key!".
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: 4K resolution in Windows 10 guest

Post by socratis »

  1. This thread is 3+ years old. A lot of things have changed, a lot of thing may not apply. Doesn't make sense to keep it open, locking it. Please open a new thread if you have any new issues.
  2. You didn't need to add the CustomVideoMode1 key, FullScreen works without that.
  3. I cannot reproduce the error that you're seeing with VBoxControl:
    C:\>VBoxControl --nologo addcustommode 1440 1024 32
    writing mode 0 (1440x1024x32)
    
    C:\>VBoxControl --nologo listcustommodes
    Mode: 1440 x 1024 x 32
    PS. I do *not* see that custom listing in the Win10 options offered...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Locked