Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Since LXC (Linux Containers) is a kernel level super-chroot, I've been wondering what sort of video driver the containers have:

My host is Ubuntu 12.04 64-bit machine with ATI gpu. Will the LXC container have access to the same driver? Or do they need to be installed on each container?

share|improve this question
    
Please share a bit more on what you're trying to accomplish. Are you trying to run GUI applications or even OpenGL-enabled applications in your LXC container? –  gertvdijk Dec 14 '12 at 12:57
add comment

2 Answers

Container-based 'virtualisation' technologies such as OpenVZ and LXC don't virtualize any hardware, unlike Xen, KVM, VMware, etc. Another major difference is that LXC/OpenVZ containers are running in the same instance of a single Linux kernel, whereas real virtual machines are running their own kernel.

Because the containers are inside the same kernel and don't manage any hardware, they're 'running' the same driver, yet they don't have any knowlegde about it. All processes are simply chroot'ed and this is completely independent of hardware drivers (kernel modules).

share|improve this answer
    
so, the question is: if i run LIBGL_DEBUG=verbose glxinfo | grep rendering inside the lxc container console, will i see "direct rendering: yes"? –  lurscher Dec 14 '12 at 12:47
    
@lurscher I can't tell what you will see on your hardware. Usually, people are not running anything directly related to hardware in containers. Either way, I think this article might give you some insight. –  gertvdijk Dec 14 '12 at 12:56
    
i mean, i can see direct rendering: yes on the host, but that doesn't translate directly to the container, because the system installation (including the fglrx driver) will not be shared with the containers, right? That article seems to point that at least some direct rendering is possible using the open source driver, which is a good fallback plan for me, but if i could rely on the propietary fglrx ati driver it would be golden –  lurscher Dec 14 '12 at 13:06
add comment

To the best of my knowledge the lxc containers will have acess to the driver. check out this site for more info http://libvirt.org/drvlxc.html

share|improve this answer
    
Your link is a page about the Libvirt LXC client/plugin, they call a 'driver'. I don't see any information regarding video drivers or alike. –  gertvdijk Dec 14 '12 at 8:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.