Skip to content

fiveangle/create-openvino-lxc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

create-openvino-lxc

A Proxmox VE script to create an LXC container with Intel OpenVINO and GPU acceleration using Intel integrated graphics.

Features

  • Creates a Debian 13 (Trixie) unprivileged LXC container
  • Configures Intel iGPU passthrough for hardware acceleration
  • Installs OpenVINO 2025 with GPU support
  • Installs Intel legacy compute runtime for pre-Gen12 GPUs (Skylake, Kaby Lake, Coffee Lake, etc.)
  • Configures VA-API for video acceleration
  • Sets up a Python virtual environment with OpenVINO

Requirements

  • Proxmox VE host with Intel integrated graphics
  • Intel GPU visible at /dev/dri/renderD128
  • ZFS storage (script uses local-zfs by default)

Supported GPUs

This script includes the Intel legacy compute runtime which supports:

  • Broadwell
  • Skylake (HD Graphics 530, etc.)
  • Kaby Lake
  • Coffee Lake
  • Apollo Lake / Gemini Lake
  • Ice Lake

For newer GPUs (Tiger Lake, Alder Lake, etc.), you may need to modify the script to use the standard (non-legacy) Intel compute runtime.

Usage

# Make script executable
chmod +x create-openvino-lxc.sh

# Run with default settings (auto-selects next VMID, hostname: openvino-gpu)
./create-openvino-lxc.sh

# Run with custom hostname
./create-openvino-lxc.sh my-openvino-container

The script will prompt you to set the root password for the container.

After Installation

Access the container

pct enter <CTID>

Use OpenVINO as ovuser

su - ovuser
source ~/openvino-env/bin/activate
python3 -c "import openvino as ov; print(ov.Core().available_devices)"

Use GPU as root

GPU access requires a login shell to load group memberships:

# From inside container after pct enter:
su -l root -c 'clinfo -l'

# Or from Proxmox host:
pct exec <CTID> -- su -l root -c 'clinfo -l'

Check GPU status

clinfo -l      # OpenCL devices
vainfo         # VA-API status

Configuration

Edit the script to modify these defaults:

  • MEMORY=4096 - Container RAM in MB
  • CORES=4 - CPU cores
  • DISK_SIZE=16 - Root disk size in GB
  • STORAGE="local-zfs" - Proxmox storage pool

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages