ubuntu-lxd-gpu-server

Automate LXD installation and NVIDIA GPU passthrough on Ubuntu servers.

3|1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/soulmachine/skills --skill ubuntu-lxd-gpu-server
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ubuntu-lxd-gpu-server
Source: https://github.com/soulmachine/skills/tree/main/ubuntu-lxd-gpu-server
Command: npx skills add https://github.com/soulmachine/skills --skill ubuntu-lxd-gpu-server

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nvidia-container-toolkit, lxd, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the setup of LXD on Ubuntu servers and passes all NVIDIA GPUs into LXD containers via CDI.

Core Features & Use Cases

  • Automated LXD Installation: Install LXD with a preseed configuration for a ZFS or directory storage pool.
  • GPU Passthrough: Enable GPU passthrough for every LXD container using NVIDIA CDI.
  • Use Case: When you need to set up an Ubuntu server with LXD and GPU support for containerized applications, this Skill can save you time and ensure consistent configuration.

Quick Start

Run the script to install LXD and set up GPU passthrough for Ubuntu:

sudo LXD_STORAGE=zfs:rpool/lxd bash scripts/install-lxd.sh

Frequently Asked Questions about ubuntu-lxd-gpu-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up LXD with GPU passthrough on an Ubuntu server?

Automating LXD setup with GPU passthrough on Ubuntu involves installing LXD with a preseed configuration for storage pools and using NVIDIA CDI to pass GPUs into containers.

What does NVIDIA CDI do for LXD containers?

NVIDIA CDI provides the mechanism for GPU passthrough, allowing you to pass all NVIDIA GPUs into LXD containers so containerized workloads can access GPU hardware directly.

Do I need nvidia-container-toolkit to enable GPU support in LXD?

Yes, nvidia-container-toolkit is required as a dependency alongside LXD to configure and enable NVIDIA CDI GPU passthrough for your Ubuntu server containers.

Can I configure a ZFS storage pool when installing LXD on Ubuntu?

Yes, the automated LXD installation supports preseed configuration for either a ZFS or directory storage pool, allowing you to specify storage like zfs:rpool/lxd during setup.

What's the best way to automate LXD installation and configuration for GPU workloads?

Using an automated script is the best way to install LXD and configure GPU passthrough for containerized workloads, ensuring consistent deployment and saving time on Ubuntu servers.

Why use LXD instead of other containerization tools for GPU passthrough on Ubuntu?

LXD offers system container virtualization with automated preseed configuration and native NVIDIA CDI integration, making it efficient for passing GPU hardware directly to containerized server workloads.