News for hackers. Stuff that matters.
Re:LXD 2.14 has been released by psandersen on Sunday June 11, 2017 @04:25AM (#14531218)
Can you pass through a graphics card in anyway or would it need to be installed on the host? I'm thinking about making my main workstation a proxmox host, with the desktop environment a container.
Re:LXD 2.14 has been released by angry_octet on Sunday June 11, 2017 @04:48AM (#14531268)
There is still only one kernel, the host if you will. Since graphics drivers are kernel mode, it has to be loaded into the kernel. So VM style pass-through of PCI devices doesn't really make sense.

However, GPUs are increasingly supporting virtualisation and multiprocessing. For example, nVidia supports multiplexing a single GPU across multiple VMs for VMWare View. I'm not sure if there is special driver paravirtualisation magic happening but I suspect so. But there is at least some GPU process control and resource scheduling now, and I expect this technique will be accessible to linux in the near future.

At present you can map through the host devices created by kernel drivers into the container, and then access them via userland libraries. You are still dependent on the library versions and the driver version matching. This works for CUDA and OpenGL. https://blog.simos.info/how-to-run-graphics-accelerated-gui-...

Re:LXD 2.14 has been released by angry_octet on Friday June 16, 2017 @10:39AM (#14569396)
Relevant talk from GTC 2017. Note that a special GRID driver is required, and it must match the driver on the host (VMWare Horizon). http://on-demand.gputechconf.com/gtc/2017/presentation/s7349...

Also, the nVidia GRID licensing makes me vomit in my mouth.

Re:LXD 2.14 has been released by lathiat on Sunday June 11, 2017 @07:49AM (#14531596)
It is possible to do this but it's considered a bit non secure. So for your desktop it's fine, whether it's a good idea in a multi user environment is another story.

It also requires the drivers to be installed and loaded by the host.

Lots of problems with the multi user use case, such as many video cards can be used to DMA main memory and also potentially affecting the card permanantly in some way ahead of being used by another user later.