Virtual Box - Error Code - Resolution help!

asc1892

New Member
Messages
2
Hey guys,

So I'm a beginner at this kind of stuff. Downloaded Windows 8 through VirtualBox. Everything worked great! However the screen was not the correct resolution for my laptop. I read some posts and figured I would follow it. In the process I used the command script through the virtualbox folder on windows 7. I entered in a line of code...

VBoxManage.exe setextradata “Windows 8” CustomVideoMode1 1366x768x32

I typed this out several times and nothing happened...then I changed the "L" on model to 1 because I wasnt sure if it was an L or a 1.

Then when I submitted it and went back into VirtualBox, it screwed up and gave me this message...


Failed to open a session for the virtual machine Windows 8.
One of the custom modes was incorrect. The format or bit count of the custom mode value is invalid. (VERR_VGA_INVALID_CUSTOM_MODE).
Result Code: E_FAIL (0x80004005)
Component: Console
Interface: IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}



Now, I cant view anything and it is completely not working. Does anyone know how to fix this issue?

Your help will be greatly appreciated! :)
 

My Computer

System One

  • OS
    windows 7 & 8
Hi there and welcome to the forums!

The command should work if VBoxManage' folder is added in the PATH environment variable in Windows.

The other fix would be by using the whole path in command prompt, so running this should work:
Code:
[COLOR=#333333][FONT=Segoe UI]"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata “Windows 8” CustomVideoMode1 1366x768x32
[/FONT][/COLOR]

This is where VBox is usually installed, change to where your VBox is installed if another folder is used.

However the machine should be turned off when running the command above.

There is also a way for adding the resolutions entry manually in XML code in your VM .vbox file.
See this: http://www.eightforums.com/virtualization/6908-vm-trouble-2-a.html#post95943

So open your vbox file and look for <ExtraData>, under it add the resolution:
Code:
[COLOR=#333333][I]<ExtraData>[/I][/COLOR]
[COLOR=#ff0000][I]<ExtraDataItem name="CustomVideoMode1" value="1366x768x32"/>[/I][/COLOR]

You can add any other resolutions following the above like this:
Code:
[COLOR=#333333][I]<ExtraData>[/I][/COLOR]
[COLOR=#ff0000][I]<ExtraDataItem name="CustomVideoMode2" value="1280x720x32"/>
[/I][/COLOR][COLOR=#FF0000][I]<ExtraDataItem name="CustomVideoMode3" value="1280x720x16"/>
[/I][/COLOR][COLOR=#FF0000][I]<ExtraDataItem name="CustomVideoMode4" value="1920x1080x32"/>[/I][/COLOR]

name changes (incrementally) with each added line, this means that the name is unique per line.

... and so on.

Remember:
VM must be turned off when modifying this file, you are limited to a max of 16 custom resolutions AND they don't work after you've installed the "Guest Additions" so keep that in mind when using this technique.

That's it
Hopachi
 

My Computer

System One

  • OS
    Windows 10 x64
    Computer type
    Laptop
    System Manufacturer/Model
    HP Envy DV6 7250
    CPU
    Intel i7-3630QM
    Motherboard
    HP, Intel HM77 Express Chipset
    Memory
    16GB
    Graphics Card(s)
    Intel HD4000 + Nvidia Geforce 630M
    Sound Card
    IDT HD Audio
    Monitor(s) Displays
    15.6' built-in + Samsung S22D300 + 17.3' LG Phillips
    Screen Resolution
    multiple resolutions
    Hard Drives
    Samsung SSD 250GB + Hitachi HDD 750GB
    PSU
    120W adapter
    Case
    small
    Cooling
    laptop cooling pad
    Keyboard
    Backlit built-in + big one in USB
    Mouse
    SteelSeries Sensei
    Internet Speed
    slow and steady
    Browser
    Chromium, Pale Moon, Firefox Developer Edition
    Antivirus
    Windows Defender
    Other Info
    That's basically it.
Thank you so much!! The top part worked perfectly to get rid of the error message and I was able to boot up windows 8 again via virtual machine!!

Thank you!

p.s. the screen resolution also worked with just what you said in the command prompt!! wooo!!
 

My Computer

System One

  • OS
    windows 7 & 8
You're welcome!

Glad to hear that!
 

My Computer

System One

  • OS
    Windows 10 x64
    Computer type
    Laptop
    System Manufacturer/Model
    HP Envy DV6 7250
    CPU
    Intel i7-3630QM
    Motherboard
    HP, Intel HM77 Express Chipset
    Memory
    16GB
    Graphics Card(s)
    Intel HD4000 + Nvidia Geforce 630M
    Sound Card
    IDT HD Audio
    Monitor(s) Displays
    15.6' built-in + Samsung S22D300 + 17.3' LG Phillips
    Screen Resolution
    multiple resolutions
    Hard Drives
    Samsung SSD 250GB + Hitachi HDD 750GB
    PSU
    120W adapter
    Case
    small
    Cooling
    laptop cooling pad
    Keyboard
    Backlit built-in + big one in USB
    Mouse
    SteelSeries Sensei
    Internet Speed
    slow and steady
    Browser
    Chromium, Pale Moon, Firefox Developer Edition
    Antivirus
    Windows Defender
    Other Info
    That's basically it.
i Have same problem Hopachi

but i did'nt understand ur first line "The command should work if VBoxManage' folder is added in the PATH environment variable in Windows."

Plz Explain Me

I am suffering from same Problem
 

My Computer

System One

  • OS
    Window 8
    Computer type
    Laptop
but i did'nt understand ur first line "The command should work if VBoxManage' folder is added in the PATH environment variable in Windows."

Plz Explain Me

I am suffering from same Problem

Welcome to the forums, Asseem.

All you need is already covered if you check the entire post.

Extra info about the PATH:
Any program path that's added to the PATH variable can be executed from command prompt just by typing the one of the exe's name from the folder...
How to set the path in Microsoft Windows

The rest is explained in previous post.


Your run VboxManage.exe for your VM and your own chosen resolution:
Code:
VBoxManage.exe setextradata “Windows 8” CustomVideoMode1 1366x768x32

Replace the VM name (here "Windows 8") and the resolution (width x height x color-depth) to match your needs.
Chapter 9. Advanced topics

If we ignore the PATH (not really needed for this it's just to ease repetitive things) and run the command directly then you add the program's path in the command:
Code:
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata “Windows 8” CustomVideoMode1 1366x768x32

That is the same as modifying the machine vbox file by adding manually the code line below.
(You don't really need to run the command if you have issues with it: just open the vbox file of your VM and add a line below the <ExtraData> tag).
Example resolution 1366x768, 32bit color:
Code:
<ExtraDataItem name="CustomVideoMode1" value="1366x768x32"/>

For full HD you add 1920x1080x32 instead of 1366x768x32...

VM needs to be turned off before modification and needs to be started afterwards to see the changes.


Check the links for details.


That's all
 

My Computer

System One

  • OS
    Windows 10 x64
    Computer type
    Laptop
    System Manufacturer/Model
    HP Envy DV6 7250
    CPU
    Intel i7-3630QM
    Motherboard
    HP, Intel HM77 Express Chipset
    Memory
    16GB
    Graphics Card(s)
    Intel HD4000 + Nvidia Geforce 630M
    Sound Card
    IDT HD Audio
    Monitor(s) Displays
    15.6' built-in + Samsung S22D300 + 17.3' LG Phillips
    Screen Resolution
    multiple resolutions
    Hard Drives
    Samsung SSD 250GB + Hitachi HDD 750GB
    PSU
    120W adapter
    Case
    small
    Cooling
    laptop cooling pad
    Keyboard
    Backlit built-in + big one in USB
    Mouse
    SteelSeries Sensei
    Internet Speed
    slow and steady
    Browser
    Chromium, Pale Moon, Firefox Developer Edition
    Antivirus
    Windows Defender
    Other Info
    That's basically it.
Nice to hear it worked! :thumb:
 

My Computer

System One

  • OS
    Windows 10 x64
    Computer type
    Laptop
    System Manufacturer/Model
    HP Envy DV6 7250
    CPU
    Intel i7-3630QM
    Motherboard
    HP, Intel HM77 Express Chipset
    Memory
    16GB
    Graphics Card(s)
    Intel HD4000 + Nvidia Geforce 630M
    Sound Card
    IDT HD Audio
    Monitor(s) Displays
    15.6' built-in + Samsung S22D300 + 17.3' LG Phillips
    Screen Resolution
    multiple resolutions
    Hard Drives
    Samsung SSD 250GB + Hitachi HDD 750GB
    PSU
    120W adapter
    Case
    small
    Cooling
    laptop cooling pad
    Keyboard
    Backlit built-in + big one in USB
    Mouse
    SteelSeries Sensei
    Internet Speed
    slow and steady
    Browser
    Chromium, Pale Moon, Firefox Developer Edition
    Antivirus
    Windows Defender
    Other Info
    That's basically it.
Back
Top