Windows 8 and 8.1 Forums


Virtual Box - Error Code - Resolution help!

  1. #1


    Posts : 2
    windows 7 & 8

    Virtual Box - Error Code - Resolution help!


    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 System SpecsSystem Spec

  2. #2


    Orbiting the Moon
    Posts : 2,975
    Windows 10 x64


    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:
    "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata “Windows 8” CustomVideoMode1 1366x768x32
    
    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: VM Trouble (2)

    So open your vbox file and look for <ExtraData>, under it add the resolution:
    Code:
    <ExtraData>
    <ExtraDataItem name="CustomVideoMode1" value="1366x768x32"/>
    You can add any other resolutions following the above like this:
    Code:
    <ExtraData>
    <ExtraDataItem name="CustomVideoMode2" value="1280x720x32"/>
    <ExtraDataItem name="CustomVideoMode3" value="1280x720x16"/>
    <ExtraDataItem name="CustomVideoMode4" value="1920x1080x32"/>
    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 System SpecsSystem Spec

  3. #3


    Posts : 2
    windows 7 & 8


    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 System SpecsSystem Spec

  4. #4


    Orbiting the Moon
    Posts : 2,975
    Windows 10 x64


    You're welcome!

    Glad to hear that!
      My System SpecsSystem Spec

  5. #5


    Posts : 2
    Window 8

    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 System SpecsSystem Spec

  6. #6


    Orbiting the Moon
    Posts : 2,975
    Windows 10 x64


    Quote Originally Posted by Asseem View Post
    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 System SpecsSystem Spec

  7. #7


    Posts : 2
    Window 8

    Thanks Hpatchi


    I did it...Very Very Thanks of u
    Last edited by Asseem; 10 Dec 2013 at 23:03.
      My System SpecsSystem Spec

  8. #8


    Orbiting the Moon
    Posts : 2,975
    Windows 10 x64


    Nice to hear it worked!
      My System SpecsSystem Spec

Virtual Box - Error Code - Resolution help!
Related Threads
After connecting my new laptop to the my 30" tv with an HDMI cord and then removing it later, the resolution was messed up. I received a notification bubble saying that my resolution was at the recommended settings. I went to my screen resolution settings and the slider said it was at 1366x768...
So I wanted to change my desktop wallpaper but then my Personalize window won't open. Same goes with Screen resolution. 51036 When I right click on my desktop and click Personalize or Screen resolution option, a message pops up that says this.. 51037 I think my files are corrupted. Your...
Windows 8, "File: \BCD Error Code: 0xc0000034" Good Day Everyone, Trying to resolve this error: https://www.eightforums.com/attachments/performance-maintenance/43833d1401090904t-windows-8-missing-file-bcd-error-code-0xc0000034-20140526_015104.jpg I...
I'm using an AlienWare M14 machine. I tried to create a virtual machine locally using Client Hyper-V on Windows 8 Pro, but it still doesn't work (took me a lot of time). I added the Hyper-V features in "Turn windows feature on or off", and all of the requirements to run Hyper-V are fulfilled (SLAT,...
Hi there Virtual Iso mounter works just fine on Netbook / ultra book with no physical DVD device. Computer with physical DVD device -- no DVD in the device of course - - message "Problem mounting xxxx.iso" where xxxx is name of the iso. However the ISO is ACTUALLY mounted and can be read...
hyper-v - error in creating external virtual switch I got an error in creating external virtual switch at hyper-v on windows 8 pro x64. I have one xp vm and tried to make an network connection, but I coul not success. Please let me know how to make creating external virtual switch at...
Just upgraded to Windows 8 via clean install. Everything seemed to be working OK, and then I noticed that I was not able to mount an .iso. Looking a little closer, I noticed that my DVD and BD drives were missing. I have checked for updates, but everything seems to be up-to-date. I have also...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook