Skip to content

DazzyWalkman/lxd-openwrt-simplified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lxd-openwrt-simplified
===========

Scripts for building LXD/LXC images from OpenWrt rootfs tarballs. 

This is a simplified version of https://github.com/mikma/lxd-openwrt.

This version assumes the user has already got an OpenWrt 22.03 or later rootfs tarball containing ALL essential packages, e.g. by buildroot or by image builder.

What it will do:

1. unpack the tarball provided by the user.

2. build metadata and inject container-specific files/settings.

3. repack the tarball according to lxc/lxd requirements. 

Requirements
------------

It's recommended you use Debian or Ubuntu on the build system. 
* fakeroot is needed. Or user can config the script to use sudo.

Configuration
-------------

Refer to the top of build_cust.sh.
And users may have to monitor the entropy available, as this script will disable the urngd service of the OpenWrt in favor of EGD on host, with the assumption that the OpenWrt instance shares entropy with the host.

Usage
-----

./build_cust.sh <rootfs tarball> <lxd|plain>

Example
-------

./build_cust.sh openwrt-snapshot-r13592-x86-64-generic-rootfs.tar.gz plain

You may be also interested in my wrapper scripts for running OpenWrt as lxc containers in Proxmox VE: https://github.com/DazzyWalkman/oplxc4pve

About

A simplified version of lxd-openwrt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published