Jump to content
UltiMaker Community of 3D Printing Experts

OpenGL error on virtual machine


fairchilde

Recommended Posts

Posted · OpenGL error on virtual machine

I am trying to run Cura 4.1.0 on a virtual machine but when I launch it, I get the following error:

 

Failed to probe OpenGL

Could not probe OpenGL. This program requires OpenGL 2.0 or higher. Please check your video card drivers.

 

I know that typically this would be installed on a physical machine, but I’d really like to try to get this running from a virtual platform. I’ve dug through forums and found that some people are looking into video card passthrough, but I don’t have that option. I found a post saying that the OP’s IT department was able to get it running on a virtual machine using some kind of software, but nothing was listed and they aren’t replying.

 

I was hoping to see if this was something you folks have come across before and might know how I can proceed. I’m just looking for some possible breadcrumbs..

 

Currently, I’m trying to install into Server 2016, but I could also run it on Windows 10 instead. I am getting that error on both operating systems. I could also try to install into a Linux OS, but I haven't attempted anything like that yet.

 

I'd be connecting to the VM via RDP. 

 

I’m running my virtual environment on a HyperV host

 

Any help would be appreciated!

  • Link to post
    Share on other sites

    Posted · OpenGL error on virtual machine

    This StackExchange post explains the problem adequately:

    https://stackoverflow.com/questions/51705471/current-state-and-solutions-for-opengl-over-windows-remote

     

    Quote

    A RDP session of Windows does not expose the graphics card, at least not directly. (...)
    Starting a OpenGL context higher than v1.1 fails because of this.

    (...)

    You can start the OpenGL program [outside the RDP session], allowing it to see the graphics card, create an opengl context and then connect via WindowsRemote. This always works, as Windows remote just transfers the window content.

     

    As mentioned in that answer, perhaps you could write a script that closes the RDP connection and then launches Cura

    https://social.technet.microsoft.com/Forums/windowsserver/en-US/c8295ef8-3711-4576-9293-2c4965280165/opengl-and-remote-desktop?forum=winserverTS

  • Link to post
    Share on other sites

    Posted · OpenGL error on virtual machine

    This script works for me from a Windows RDP session:
     

    Quote

     

    @echo off
    echo Remote Desktop will be temporarily disconnected. Please reconnect after a few seconds.
    pause
    @echo on

    REM The active session has an arrow as the first character
    setlocal EnableDelayedExpansion
    FOR /F %%A in ('qwinsta') do (
        set tempSessionName=%%A
        if "!tempSessionName:~0,1!"==">"  (
            @echo on
            tscon.exe !tempSessionName:~1! /v /dest:console
            @echo off
        )    
    )
    @echo off
    echo Starting Cura . . .
    @echo on
    call "C:\Program Files\Ultimaker Cura 4.1\Cura.exe"
    @echo off
    pause


     

     

    Caveat: it needs to be run elevated to connect back to the console. I don't know how this will work on a server hosting multi-user RDP sessions.

  • Link to post
    Share on other sites

    Posted · OpenGL error on virtual machine

    Thanks @ahoeben, can you give me a bit of a breakdown whats happening in that script? also, you said you run that from a Windows RDP session... so that is run on the remote computer.. as a bat file? 

  • Link to post
    Share on other sites

    Posted · OpenGL error on virtual machine

    It is indeed a bat file, which I start from the RDP session on a remote computer. The script closes the RDP session, and you have to start another RDP session, but Cura will have launched on the remote computer. See the social.technet.microsoft.com link above for what the script does.

  • Link to post
    Share on other sites

    Posted · OpenGL error on virtual machine

    Hmm... tried running that bat file elevated and this is its output - unfortunately, same end result.OpenGL.thumb.JPG.cf6fa911b7f2ce7671cefe7abe681dcc.JPG

  • Link to post
    Share on other sites

    Posted · OpenGL error on virtual machine

    @fairchilde Were you ever disconnected from your RDP session? If not, then that is why it didn't work for you.

     

    I have used the exact script mentioned above and it works "as described". However, once I connect back via RDP, Cura is not usable even though it is in fact launched.

     

    Back to the drawing board.....

  • Link to post
    Share on other sites

    Posted · OpenGL error on virtual machine

    I just found that if you run nVidia GPU on your remote system, update the drivers and then run OpenGL enabling utility.

    Get it from nvidia website 

    https://developer.nvidia.com/nvidia-opengl-rdp

     

    Hope it helps

    • Like 1
    • Thanks 1
    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.3 stable released
        In this stable release, Cura 5.3 achieves yet another huge leap forward in 3D printing thanks to material interlocking! As well as introducing an expanded recommended print settings menu and lots of print quality improvements. Not to mention, a whole bunch of new printer profiles for non-UltiMaker printers!
          • Thanks
          • Like
        • 24 replies
      • Here it is. The new UltiMaker S7
        The UltiMaker S7 is built on the success of the UltiMaker S5 and its design decisions were heavily based on feedback from customers.
         
         
        So what’s new?
        The obvious change is the S7’s height. It now includes an integrated Air Manager. This filters the exhaust air of every print and also improves build temperature stability. To further enclose the build chamber the S7 only has one magnetically latched door.
         
        The build stack has also been completely redesigned. A PEI-coated flexible steel build plate makes a big difference to productivity. Not only do you not need tools to pop a printed part off. But we also don’t recommend using or adhesion structures for UltiMaker materials (except PC, because...it’s PC). Along with that, 4 pins and 25 magnets make it easy to replace the flex plate perfectly – even with one hand.
         
        The re-engineered print head has an inductive sensor which reduces noise when probing the build plate. This effectively makes it much harder to not achieve a perfect first layer, improving overall print success. We also reversed the front fan direction (fewer plastic hairs, less maintenance), made the print core door magnets stronger, and add a sensor that helps avoid flooding.
         

         
        The UltiMaker S7 also includes quality of life improvements:
        Reliable bed tilt compensation (no more thumbscrews) 2.4 and 5 GHz Wi-Fi A 1080p camera (mounted higher for a better view) Compatibility with 280+ Marketplace materials Compatibility with S5 project files (no reslicing needed) And a whole lot more  
        Curious to see the S7 in action?
        We’re hosting a free tech demo on February 7.
        It will be live and you can ask any questions to our CTO, Miguel Calvo.
        Register here for the Webinar
          • Like
        • 18 replies
      • UltiMaker Cura Alpha 🎄 Tree Support Spotlight 🎄
        Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm
         
        We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.  
          • Like
        • 22 replies
    ×
    ×
    • Create New...