[SOLVED] Debian Appliance Builder - help needed on config changes

RobFantini

Famous Member
May 24, 2012
2,085
118
133
Boston,Mass
Hello
We've been using dab templates from https://bitbucket.org/flybyte/dab-templates for some time.

I know there were updates to dab and configuration changes are needed - so need some help to know what to fix.

our debian9 dab template no longer builds:
Code:
# make
dab bootstrap --minimal
initialize VE faab30ff-f6b7-4e9a-aef0-b77f79cf6543
create basic environment
command 'lxc-start -n faab30ff-f6b7-4e9a-aef0-b77f79cf6543 -f /opt/dab-templates/debian9/config' failed with exit code 1
command 'lxc-start -n faab30ff-f6b7-4e9a-aef0-b77f79cf6543 -f /opt/dab-templates/debian9/config' failed with exit code 1
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 1

then from logfile:
Code:
control.tar.gz
data.tar.xz
lxc-start: faab30ff-f6b7-4e9a-aef0-b77f79cf6543: confile.c: parse_line: 2340 Unknown configuration key "lxc.utsname"
lxc-start: faab30ff-f6b7-4e9a-aef0-b77f79cf6543: parse.c: lxc_file_for_each_line_mmap: 102 Failed to parse config: lxc.utsname = localhost
Failed to load rcfile
command 'lxc-start -n faab30ff-f6b7-4e9a-aef0-b77f79cf6543 -f /opt/dab-templates/debian9/config' failed with exit code 1

any clues on how to fix that? documents / release notes etc.
 
works here, what does 'apt show dab' say?
 
works here, what does 'apt show dab' say?

here :
Code:
# apt show dab
Package: dab
Version: 3.0-10
Priority: optional
Section: admin
Maintainer: Proxmox Support Team <support@proxmox.com>
Installed-Size: unknown
Depends: perl (>= 5.6.0-16), wget, make, binutils, lxc-pve, libuuid-perl
Download-Size: 26.5 kB
APT-Manual-Installed: yes
APT-Sources: http://download.proxmox.com/debian stretch/pvetest amd64 Packages
Description: Debian LXC Appliance Builder
 This package contains scripts to automate the creation of LXC
 appliances.

N: There are 6 additional records. Please use the '-a' switch to see them.

AND

I am not using standard PVE templates .

And probably need configuration changes due to the lxc3 upgrade or something.
 
i tried with the debian9 template from you link above

if yours is not the same, please post it
 
Hi - thanks for the help so far. I am not certain which config file so here are a few:

here is /opt/dab-templates/debian9/config
Code:
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.utsname = localhost
lxc.rootfs = /opt/dab-templates/debian9/rootfs

and dab.conf
Code:
suite: stretch
CacheDir: ../cache
#Source: http://ftp.debian.org/debian SUITE main contrib
#Source: http://ftp.debian.org/debian SUITE-updates main contrib
#Source: http://security.debian.org SUITE/updates main contrib
Architecture: amd64
Name: fantini-bakery
Version: 9.0-3
Section: system
Infopage: http://pve.proxmox.com/wiki/Debian_Appliance_Builder
Description: Debian Stretch 9 (minimal/custom)
 made at nfs.fantinibakery.com:/opt/dab-templates/debian9   see  Makefile
 
Last edited:
ok so lxc.utsname should be changed to lxc.uts.name

there were a few options that changed from lxc 2 to 3, but those did generate a depreciation warning (since 2.1 afair)

see man 5 lxc.container.conf
 
ok so lxc.utsname should be changed to lxc.uts.name

there were a few options that changed from lxc 2 to 3, but those did generate a depreciation warning (since 2.1 afair)

see man 5 lxc.container.conf

thank you , this is the new config file that allowed a successful make
Code:
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.uts.name = localhost
lxc.rootfs.path = /opt/dab-templates/debian9/rootfs