简体   繁体   English

Boot2docker VM图形

[英]Boot2docker VM graphics

Boot2docker is a lightweight Linux distribution running in VirtualBox VM. Boot2docker是在VirtualBox VM中运行的轻量级Linux发行版。 All basic functionality works fine, I am able to use docker containers in MacOS X. 所有基本功能都可以正常工作,我可以在MacOS X中使用docker容器。

However my application requires OpenGL rendering and I cannot get it working. 但是,我的应用程序需要OpenGL渲染,因此无法正常工作。 How do I control which graphics acceleration is used inside that VirtualBox VM? 如何控制该VirtualBox VM内部使用的图形加速? I want to completely remove any 3D acceleration functions, because Mesa software drivers should just work perfectly (tested on VMware VM). 我想完全删除所有3D加速功能,因为Mesa软件驱动程序应该可以正常运行(在VMware VM上进行了测试)。

Is there a way to control boot2docker VM graphics settings like I do for normal VirtualBox VMs? 有没有办法像我对普通VirtualBox VM一样控制boot2docker VM图形设置?

I'd say the most straightforward way (and I'd place this as a feature/bug request with the boo2docker devs) would be to install a pure Mesa llvm softpipe build for OpenGL. 我想说的最直接的方法(并将其作为boo2docker开发人员的功能/错误请求放置)是为OpenGL安装纯的Mesa llvm软件管道构建。 This should give you OSMesa. 这应该给您OSMesa。 However for a classical OpenGL context you'll probably need some kind of X server (until EGL / offscreen Wayland works satisfactory). 但是,对于经典的OpenGL上下文,您可能需要某种X服务器(直到EGL /屏幕外Wayland令人满意)。 A X.org server with a dummy device should work perfectly, as long as you use framebuffer objects. 只要您使用帧缓冲对象,带有dummy设备的X.org服务器就应该可以正常工作。

It turns out that boot2docker is just a wrapper around the VBoxManage command. 事实证明,boot2docker只是VBoxManage命令的包装。 And if you really want to, you can control the VM created by boot2docker using VBoxManage command - you can change 3D graphics acceleration, VMem, etc. 而且,如果确实需要,您可以使用VBoxManage命令控制boot2docker创建的VM-您可以更改3D图形加速,VMem等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM