Skip to content

Add iso2lxc: convert TurnKey ISO to Proxmox LXC template#46

Open
marcos-mendez wants to merge 1 commit intoturnkeylinux-apps:masterfrom
popsolutions:master
Open

Add iso2lxc: convert TurnKey ISO to Proxmox LXC template#46
marcos-mendez wants to merge 1 commit intoturnkeylinux-apps:masterfrom
popsolutions:master

Conversation

@marcos-mendez
Copy link
Copy Markdown

Summary

Add iso2lxc utility to /usr/local/sbin/ for converting TurnKey product ISOs into Proxmox-compatible LXC container templates.

Usage

cd /turnkey/fab/products/moodle
make
iso2lxc
# Output: build/debian-13-turnkey-moodle_19.0-1_amd64.tar.gz

What it does

  • Extracts squashfs from product ISO
  • Removes device nodes, kernel modules, and mount points that break unprivileged LXC containers
  • Creates minimal /dev structure with symlinks (no mknod)
  • Masks kernel-dependent systemd services
  • Packages as .tar.gz following TKL naming convention
  • Auto-detects product name and version from changelog

Tested

Built and deployed Moodle v19 as unprivileged LXC on Proxmox 6.8.

Extracts squashfs from product ISO and repackages as a Proxmox-compatible
LXC container template (.tar.gz), following TKL naming convention.
Removes device nodes, kernel modules, and mount points that break
unprivileged containers. Masks kernel-dependent systemd services.

Usage: run 'iso2lxc' from any product directory after 'make'.
Output: build/debian-{VER}-turnkey-{APP}_{TKLVER}-{REV}_{ARCH}.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant