- Как обновиться до последней версии OpenGL на компьютере с Virtualbox Ubuntu Linux?
- 2 ответа
- VirtualBox 2.1.0 и трансляция OpenGL вызовов
- Opengl драйвера для virtualbox
- VirtualBox & OpenGL
- What do we need?
- Make sure Guest Additions are installed
- Configure virtual machine to use 3D acceleration
- Test configuration
- Linux host, Windows guest
- Conclusion
- virtualbox.org
- How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
- Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
Как обновиться до последней версии OpenGL на компьютере с Virtualbox Ubuntu Linux?
Я использую Ubuntu 16.10 в VirtualBox версии 5.1.10 с установленными последними гостевыми дополнениями. Моя хост-система — Ubuntu 14.04 с графическим адаптером:
00: 02.0 VGA-совместимый контроллер: Intel Corporation HD Graphics 530 (версия 06)
В соответствии с его спецификациями он поддерживает OpenGL до версии 4.5 в Linux. Мой графический адаптер гостевой системы показан как:
00: 02.0 VGA-совместимый контроллер: InnoTek Systemberatung GmbH Графический адаптер VirtualBox
Согласно glxinfo моя текущая версия OpenGL на гостевой системе:
Как обновить графический драйвер в гостевой системе до новейшей версии OpenGL?
2 ответа
Драйверы OpenGL в гостевых дополнениях VirtualBox ограничены OpenGL 2.1. Несмотря на множество запросов на улучшение возможностей OpenGL на форумах пользователей VBox, я не видел упоминаний о том, что разработчики VBox работают над OpenGL 3 или лучшей поддержкой. Тем не менее, он имел поддержку OpenGL 2.0 только в 2009 году и постепенно обновлялся до OpenGL 2.1. Они могут туда добраться.
У вас всегда есть возможность установить программное обеспечение для рендеринга драйверов OpenGL, но они не годятся ни для чего, кроме самых основных требований. Например: на их FTP-сайте есть драйвер рендеринга OpenGL32 для Blender, который позволяет Blender для Windows фактически работать в гостевой системе Windows, но частота кадров при анимации Позы находится в диапазоне 0,5-2,0 кадров в секунду. Не хорошо.
Обратите внимание, что платные продукты VMware ( VMware Fusion для Mac, VMware Workstation для Linux и VMware Workstation для Windows) имеют возможности 3D на уровне функций DirectX 10 и OpenGL 3.3. Если вы готовы платить за них, они могут работать на вас (есть пробные версии, которые можно скачать и установить бесплатно).
Вы могли бы подумать, что портирование не составит большого труда, все четыре продукта VMware. и это всего лишь драйвер для их собственного виртуального графического адаптера. верно?
После установки графического драйвера дополнений гостя VirtualBox любой аппаратный трехмерный графический запрос гостевого приложения будет отправлен на графическую карту хоста через этот драйвер.
Следовательно, мы не сможем иметь больше OpenGL в гостевой системе, чем в хосте. Кроме того, не все функции аппаратного ускорения реализованы в еще экспериментальных драйверах 3D- графики от Virtual Box.
Чтобы добиться максимальной производительности, убедитесь, что выполнены все следующие условия:
- графические драйверы хоста обновлены
- используйте самую последнюю версию VirtualBox и соответствующие гостевые дополнения
- установить последнюю гостевую ОС
Мы не можем обновлять гостевые дополнения графического драйвера отдельно.
Источник
VirtualBox 2.1.0 и трансляция OpenGL вызовов
На прошлой неделе произошло событие, которое в принципе может быть затерто в истории софтостроения, но мне оно показалось интересным. Сейчас системы виртуализации развиваются маленькими, осторожными шажками, поэтому найти что-то интересное, или хотя бы значимое, отличие между версиями 2.х и 3.х или даже 4.х не всегда возможно.
Поэтому release notes на версию VirtualBox 2.1.0 я листал без особого интереса. Но за что зацепился глаз и заставил почитать повнимательнее, так это «Трансляцию OpenGL вызовов прямо в драйвер host машины».
Самой VirtualBox пользуюсь давно в целях одновременного подключения к корпоративной VPN и одновременного качания торрентов, запуска программ, которые существуют только в Windows ипостасии или теста разных деструктивных действий.
В принципе понятно, что все равно процессорные вычисления будут происходить внутри guest’а и такой же производительности как на чистой Windows не получится. Кроме того, к большому сожалению, игр на чистом OpenGL выходит все меньше и меньше — все производители переходят постепенно на DirectX. Но тем не менее для меня это было интересно и стоило посмотреть как работает.
Итак, трансляция вызовов по умолчанию отключена, поэтому необходимо в настройках машины, на вкладке General включить опцию 3D Acceleration.
Дальше необходимо обновить установленные внутри guest’а Guest Additions, чтобы установить новый видео драйвер. Перезагружаем guest’а. Все готово к проверке.
Для тестирования производительности я использовал OpenArena и демку вот отсюда http://dri.freedesktop.org/wiki/Benchmarking
Настройки по качеству я ставил одинаковые, но основная проблема это выставить разрешение. Насколько я понимаю guest в VirtualBox не может получить монопольного доступа к экрану, поэтому даже в режиме full-screen все будет рисоваться как в окне, поэтому для тестирования я выставил 1024х768 и подгонял размер окна под эти параметры.
Средний fps на демке внутри VirtualBox получился 43 fps. На чистой Vista — 85 fps.
Не знаю сколько выдает vmware или wine, но по мне для начала очень неплохо — можно пускать SecondLife клиента или погамиться в простенькие игрушки прямо из виртуальной машины и ни в чем себе не отказывать 🙂
Источник
Opengl драйвера для virtualbox
Updated: January 2, 2009
This is the second of the three articles dedicated to configuring and using 3D virtualization in virtual machines.В Today, we will learn how to enable 3D acceleration for OpenGL applications (and games) for Windows virtual machines runningВ in VirtualBox installed on either a Windows or a Linux host.
In the first article, we saw how we can enable 3D acceleration for DirectX programs in Windows, using VMware products. The choice of the host platform did not matter. We were able to run our 3D-enabled Windows guests on top of both Windows and Linux hosts.В In the last article, we’ll try to configure a Linux host and a Linux virtual machine to share GPU resources.В Follow me.
VirtualBox & OpenGL
What do we need?
You need VirtualBox 2.1.0 (or higher) installed. From version 2.1.0, VirtualBox officially support 3D acceleration for OpenGL applications. This feature greatly complements the VMware & DirectX combo. The choice of the host is not important.
For this tutorial, I’ve used the following:
- VirtualBox 2.1.0 installed on Windows XP SP3 host (RE: Windows host example)
- VirtualBox 2.1.0 installed on Ubuntu 8.10 host (RE: Linux host example)
- Windows XP SP3 installed as the guest operating system in both cases
- Guest Additions installed in the guest operating system
- Some configurations changed in the virtual machine settings
- A game that uses OpenGL to test the functionality
You may also have to refer to some of the other tutorials in the Virtualization section to get everything going. My tutorials are chronological and incremental and build one upon another. So if you’re having difficulties mastering the installation and configuration of either VirtualBox and/or Windows XP as a guest operating system, you should spend some time reading.В In particular:
Make sure Guest Additions are installed
Boot your virtual machine once and check whether the Guest Additions are installed. Similarly to VMware Tools, the Guest Additions feature an icon in the system tray.В Now, shut down the machine and enable the 3D acceleration.
Configure virtual machine to use 3D acceleration
This is much simpler than the VMware configuration. You do not have to edit any configuration file manually. The entire procedure takes 17 seconds and is done entirely using GUI.
Open VirtualBox. Select the virtual machine you want to use. Click on Settings . Under General, change the Video Memory Size to a desired amount, in our example 64MB, and tick the box Enable 3D Acceleration . That’s it!
Now boot the guest, install the game of your choice and test. I selected OpenArena for the task.
Test configuration
The performance was not stellar. It was reasonable, similar to the results obtained with VMware Server & DirectX. The game worked, although it was much slower than a native installation.
Linux host, Windows guest
Similarly, we do the same thing on Linux.
Now, surprise, surprise, the performance on the Ubuntu host was much, much better than on Windows! The game performance and responsiveness were almost as good as the native installation.
Well, since the 3D acceleration is still an experimental feature, it is quite expectable that different setups should yield markedly different results. For now, though, it seems that if you want to run OpenGL applications, having a Linux host is the best choice.
In a way, this sounds logical, because DirectX is a purely Windows feature and OpenGL is its open-source equivalent. VirtualBox, being developed by Sun, one of the open-source pioneers, running on top of the open-source Ubuntu, seems like a more prominent candidate for a more seamless OpenGL integration.
Conclusion
VirtualBox & OpenGL is a great combination, especially if you have a Linux host. I admit the need for virtualized OpenGL applications seems less of an issue here, because Linux natively supports these applications, but if and when a need might arise, you will get excellent results.
Again, please, keep in mind the currently experimental feature of the whole thing. I cannot promise the same results. Still, considering the fact I have tested the functionality on four different systems, including Windows and two flavors of Linux, including 3 different machines, including both Intel and AMD architecture, including 32-bit and 64-bit operating systems, you should be fine.В Best of all, the configuration is utterly simple. Ten seconds and you’re done!
So, we’ve had two articles, two great solutions so far. We have the VMware & DirectX combo and we have the VirtualBox & OpenGL, something for everyone. In the third article, we’ll attempt to introduce 3D acceleration into the Linux guests.
Источник
virtualbox.org
End user forums for VirtualBox
- Board index‹Guest systems‹Windows Guests
- Change font size
- Print view
- FAQ
- Login
How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by DDE » 9. Apr 2017, 18:50
I have a host using Windows10 64b OS, a nvidia 1050 Graphic cards.
I create a VM with Windows10 64b OS, with VBoxGuestAdditions installed, 2D and 3D acceleration activated.
The guest can use OpenGL 2.0, GPU Caps Viewer says that the OpenGL supported version is 1.1
Is it possible to get more than openGL 1.1 .
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by socratis » 9. Apr 2017, 21:22
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by srb » 20. Jul 2017, 18:51
I’m interested in the not-simple answer, because this is discrepant with other information provided in the virtualbox documentation, Chapter/section 4.5.1 section here: https://www.virtualbox.org/manual/ch04.html (Sorry I’m a new member so I can’t post links, had to add spaces to circumvent that silly account limitation)
specifically noted at the footer:
So, how do I get OpenGL 2.0 on my Windows (10) guest?
ninja speed edit:
As per the instructions, I have installed guest additions via safe mode, and yes i have 2d and 3d acceleration enabled in the vm. My Host is Ubuntu 16.04, and yes my Ubuntu Host supports OpenGL 3.0 as per running
Code: Select all Expand viewCollapse view glxinfo | grep «OpenGL version»
which returns
Code: Select all Expand viewCollapse view OpenGL version string: 3.0 Mesa 12.0.6
yet glview436 still tells me just opengl 1.1 is supported on my windows guest, and my apps requiring opengl2.0 at minimum are failing.
virtualbox installed from virtualbox dot org (not ubuntu repositories), and is Version 5.1.24 r117012 (Qt5.5.1)
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by mpack » 21. Jul 2017, 09:41
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by srb » 25. Jul 2017, 15:47
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by mpack » 25. Jul 2017, 16:17
You have Linux installed as the host OS on a MacBook Pro? Interesting. I’m not sure why we’re having this conversation in the «Windows Hosts» forum though. I’ll move it to «Windows Guests».
The GAs seem to be installed, and the host does indeed support OpenGL 3.0. I would expect VirtualBox OpenGL 2.1 to now be available, if you installed the GAs properly. Note that installing in safe mode is not prescribed for Win10 guests, that was only for XP. However I don’t know if it does any harm.
What OpenGL vendor do your guest apps see?
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by srb » 25. Jul 2017, 20:08
Oops, sorry about replying in the wrong forum. I didn’t notice it was (previously) on Windows Hosts. I had just found the relevant thread title about OpenGL on Windows 10 Guest linked to on Google and clicked through.
I tried installing GA without safe mode first, then with safe mode second, but neither worked.
Vendor is showing up as Microsoft Corporation.
Maybe my problems are a result of not being able to install the Experimental WDDM Driver? This is a shot in the dark, but I’ve noticed some discrepancies in what I see and what other’s have shown. For example, in my GA installer I see these options:
And I can’t deselect the Direct3D support to install the experimental driver as is suggested can be done in the Chapter 4 VirtualBox support document, or on some other links like howtogeek shows this screenshot for installing experimental WDDM Driver:
and then the option for:
So, it looks like in the GA installation, I have no option to install the WDDM driver, which I presume would also reflect a different OpenGL vendor string? As I said, just a shot in the dark as I’m piecing things together.
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by mpack » 26. Jul 2017, 09:07
It makes sense that you don’t see the same options as someone installing the GAs on a different version of Windows.
So it makes sense that you won’t be offered the question. If 3D is enabled then I’d expect the WDDM driver to be installed. That clearly isn’t the case, since the vendor string shows you are still using the basic OpenGL support built into the Windows OS since XP days.
What version of Windows 10 is it? Also what is the origin of this VM, e.g. was it an upgrade from an older Windows that already had the GAs installed?
Just found this in the manual too, I don’t know if it’s still current — but it must be said that I’d already noted without mentioning it that OpenGL 3.0 is itself quite old. My current Win10 host with NVidia drivers is on OpenGL 4.5.0:
I also found this, but surely this is just an oversight (manual not updated), because Win8 and later is AFAIK almost unusable without WDDM drivers.
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by mpack » 26. Jul 2017, 09:15
Please try this. Uninstall the Guest Additions completely. Even better, after installation go into the registry and check for references to the GAs. Don’t do this if you’re not confident, as we don’t want you deleting references to the VBox hard disk etc.
Then shut down the VM. Make sure 3D acceleration is enabled in the guest settings (let me know if either 2D or 3D is grayed). Then launch the VM again, boot normally and reinstall the GAs as you would any other app — no messing with safe mode. Then check the OpenGL vendor again.
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by mpack » 26. Jul 2017, 10:11
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by mpack » 26. Jul 2017, 15:27
Well, I’m afraid that the news from the devs is not good. Apparantly back in 4.2.0 it was discovered that OpenGL support in Windows 8+ was broken, so it was switched off pending an investigation — which has never happened.
The only way to get OpenGL 2.1 in a Windows guest is to install basic 3D (not WDDM), in safe mode, in an XP, Vista or Win7 guest. There is no other way to get accelerated OpenGL of any description.
Bugtracker ticket 12048 was the original report of the problem. On that ticket a user has contributed a patch for the GAs installer, but nobody has tested it. I may try to find time myself — but if anyone else has the time then that would be great too.
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by srb » 26. Jul 2017, 16:12
Thanks so much for the time to dig so deep into the issue. Greatly appreciated.
I’ll follow up on the bugtracker and see what I can test/contribute if anything.
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by jcotton » 15. Aug 2017, 05:23
Thank you for the detail, partial fix and sad conclusion. I did everything here before finding the ticket and greatly appreciate discovering a confirmation.
My host is Manjaro (Arch) 64bit with a Radeon 7770 card on the latest Mesa drivers running VirtualBox 5.1.26.
Trimmed GPU details on the host:
Code: Select all Expand viewCollapse view $ glxinfo | grep «OpenGL»
OpenGL renderer string: Gallium 0.4 on AMD CAPE VERDE (DRM 2.50.0 / 4.12.4-2-MANJARO, LLVM 4.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.1.5
OpenGL core profile shading language version string: 4.50
OpenGL version string: 3.0 Mesa 17.1.5
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.1.5
Before adding the registry hack from Ticket 12048, GPU Caps Viewer in the Windows10 64bit guest was reporting:
Code: Select all Expand viewCollapse view VirtualBox Graphics Adapater for Windows 8+ v5.1.26
OpenGL 1.1 (GDI Generic)
After the registry hack, GPU Caps Viewer reports:
Code: Select all Expand viewCollapse view OpenGL 2.1 (Chromium with 80 ext.)
Curious if that really would provide 2.1 capabilities. However, my software needs OpenGL 3.3+ and it still won’t run.
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by Tazling » 8. Dec 2017, 22:33
I think I just hit the same brick wall. Host: OSX El Cap 10.11.6 Guest: Windows 10
I am unable to run the Blender app in Windows environment because «no 3d acceleration / no OpenGL 2.1» (wtte). I did enable 3d acceleration in VM settings but it doesn’t seem to help.
Is this a dead end, i.e. is there no way to get around this limitation? It’s a bit of a body blow because the whole reason I built a VM was to run Blender in a Windows environment (to get access to some Blender tools that are, alas, Windows only). It sounds from the discussion so far as if this is hopeless at present, and I might as well just give up and resign myself to dedicating a separate hw platform to Windows (argh). Having no advanced/3d graphics support is quite disappointing (when I have a perfectly good GeForce GTX 970 installed).
Code: Select all Expand viewCollapse view OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 970 OpenGL Engine
OpenGL version string: 2.1 NVIDIA-10.11.14 346.03.15f06
OpenGL shading language version string: 1.20
Re: How to get OpenGL 2.0 (3.0) available on windows 10 guest ?
by socratis » 8. Dec 2017, 23:06
Источник