{"id":15825,"date":"2018-10-30T06:39:37","date_gmt":"2018-10-30T06:39:37","guid":{"rendered":"https:\/\/blog.taragana.com\/?p=15825"},"modified":"2019-01-03T13:37:25","modified_gmt":"2019-01-03T13:37:25","slug":"enable-lxd-gpu-pass-through-in-ubuntu-18-04-bionic-beaver","status":"publish","type":"post","link":"https:\/\/blog.taragana.com\/enable-lxd-gpu-pass-through-in-ubuntu-18-04-bionic-beaver-15825","title":{"rendered":"Enable LXD GPU pass-through in Ubuntu 18.04 (Bionic Beaver)"},"content":{"rendered":"\n

Problem<\/h2>\n\n\n\n

One of the biggest challenge (aside from upgrading nvidia & cuda) in upgrading from Ubuntu 16.04 to Ubuntu 18.04 is enabling GPU passthrough in LXD Containers. Due to a bug in parsing logic, it cannot properly parse Blacklisted line in nvidia-410 drivers.<\/p>\n\n\n\n

Solution<\/h2>\n\n\n\n

The simplest solution is to upgrade lxd to 3.0.2. To do that you have to enable pre-released updates (bionic-proposed).<\/p>\n\n\n\n

\"\"
Enable Pre-released updates from Ubuntu Software<\/figcaption><\/figure>\n\n\n\n

Then just upgrade lxd:<\/p>\n\n\n\n

sudo apt upgrade lxd<\/code><\/pre>\n\n\n\n

Reboot and you are done.<\/p>\n\n\n\n

Why GPU Passthrough?<\/h2>\n\n\n\n

I have explained how to enable GPU Passthrough from LXD container but would you like to know what exactly am I doing with it?<\/p>\n\n\n\n

I am using it to fine-tune Deep Learning<\/strong> algorithms from LXD containers. Having them in containers makes it very easy to move them to a different server with better GPU(s) and well as to Cloud.<\/p>\n","protected":false},"excerpt":{"rendered":"

Problem One of the biggest challenge (aside from upgrading nvidia & cuda) in upgrading from Ubuntu 16.04 to Ubuntu 18.04 is enabling GPU passthrough in LXD Containers. Due to a bug in parsing logic, it cannot properly parse Blacklisted line in nvidia-410 drivers. Solution The simplest solution is to upgrade lxd to 3.0.2. To do […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[147,151,153,149,148,137,150,109,152],"_links":{"self":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/15825"}],"collection":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/comments?post=15825"}],"version-history":[{"count":2,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/15825\/revisions"}],"predecessor-version":[{"id":15841,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/15825\/revisions\/15841"}],"wp:attachment":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/media?parent=15825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/categories?post=15825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/tags?post=15825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}