Skip to content

Instantly share code, notes, and snippets.

@dash17291
Last active December 10, 2015 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dash17291/4374177 to your computer and use it in GitHub Desktop.
Save dash17291/4374177 to your computer and use it in GitHub Desktop.
Debian wheezy preseed file for lxc-create -t debian lxc version 0.9.0.alpha2.
#variables needed: container number, hostname, ip, mac, auto, consoles
#lxc-debconfig lxc-debconfig/preseed-file string /etc/lxc/debconfig/wheezy.preseed
#lxc-debconfig lxc-debconfig/preseed-file select
lxc-debconfig lxc-debconfig/apt-recommends boolean false
lxc-debconfig lxc-debconfig/debconf-frontend select noninteractive
lxc-debconfig lxc-debconfig/debconf-priority select low
#lxc-debconfig lxc-debconfig/late-host-command string
#lxc-debconfig lxc-debconfig/capabilities string mac_admin mac_override sys_admin sys_module
lxc-debconfig lxc-debconfig/mount0/entry string /etc/resolv.conf /vz/lxc/template/rootfs/etc/resolv.conf none bind 0 0
lxc-debconfig lxc-debconfig/mount0/comment string Bind mounting host's resolv.conf to the container.
lxc-debconfig lxc-debconfig/distribution select wheezy
#lxc-debconfig lxc-debconfig/parent-distribution select
lxc-debconfig lxc-debconfig/architecture select amd64
lxc-debconfig lxc-debconfig/archives multiselect wheezy-security
#lxc-debconfig lxc-debconfig/parent-archives multiselect
#lxc-debconfig lxc-debconfig/archives0/repository string
#lxc-debconfig lxc-debconfig/archives0/list string
#lxc-debconfig lxc-debconfig/archives0/comment string
#lxc-debconfig lxc-debconfig/archives0/source boolean
#lxc-debconfig lxc-debconfig/archives0/key string
lxc-debconfig lxc-debconfig/mirror string http://http.us.debian.org/debian/
lxc-debconfig lxc-debconfig/mirror-security string http://security.debian.org/
#lxc-debconfig lxc-debconfig/mirror-backports string
#lxc-debconfig lxc-debconfig/parent-mirror string
#lxc-debconfig lxc-debconfig/parent-mirror-security string
#lxc-debconfig lxc-debconfig/parent-mirror-backports string
lxc-debconfig lxc-debconfig/archive-areas multiselect main, contrib, non-free
#lxc-debconfig lxc-debconfig/parent-archive-areas multiselect
#lxc-debconfig lxc-debconfig/packages string less mc aptitude iputils-ping iptables manpages
lxc-debconfig lxc-debconfig/passwd/root-password password root
lxc-debconfig lxc-debconfig/eth0-method select static
#lxc-debconfig lxc-debconfig/eth0-comment string
lxc-debconfig lxc-debconfig/eth0-bridge string br0
lxc-debconfig lxc-debconfig/eth0-mac string
#lxc-debconfig lxc-debconfig/eth0-veth string
lxc-debconfig lxc-debconfig/eth1-method select static
#lxc-debconfig lxc-debconfig/eth1-comment string
lxc-debconfig lxc-debconfig/eth1-bridge string br1
lxc-debconfig lxc-debconfig/eth1-mac string
#lxc-debconfig lxc-debconfig/eth1-veth string
lxc-debconfig lxc-debconfig/auto boolean true
live-debconfig live-debconfig/scripts multiselect hostname, ifupdown, openssh-server, passwd, selinux, sysvinit, util-linux
live-debconfig live-debconfig/passwd/shadow boolean true
live-debconfig live-debconfig/passwd/root-password password root
live-debconfig live-debconfig/passwd/root-password-again password root
#live-debconfig live-debconfig/passwd/root-password-crypted password
live-debconfig live-debconfig/passwd/user-name string cscs
live-debconfig live-debconfig/passwd/user-fullname string cscs
live-debconfig live-debconfig/passwd/user-password password cscs
live-debconfig live-debconfig/passwd/user-password-again password cscs
#live-debconfig live-debconfig/passwd/user-password-crypted password
#live-debconfig live-debconfig/passwd/user-home string
#live-debconfig live-debconfig/passwd/user-uid string
#live-debconfig live-debconfig/passwd/user-gid string
#live-debconfig live-debconfig/passwd/user-default-groups string
#live-debconfig live-debconfig/passwd/user-system-user boolean
live-debconfig live-debconfig/hostname/hostname string template
live-debconfig live-debconfig/ifupdown/lo-enable boolean false
#live-debconfig live-debconfig/ifupdown/lo-comment string
live-debconfig live-debconfig/ifupdown/eth0-ipv4-method select static
#live-debconfig live-debconfig/ifupdown/eth0-ipv4-comment string
live-debconfig live-debconfig/ifupdown/eth0-ipv4-address string 10.20.30.101
#live-debconfig live-debconfig/ifupdown/eth0-ipv4-broadcast string
live-debconfig live-debconfig/ifupdown/eth0-ipv4-gateway string 10.20.30.1
#live-debconfig live-debconfig/ifupdown/eth0-ipv4-mtu string
live-debconfig live-debconfig/ifupdown/eth0-ipv4-netmask string 255.255.255.0
#live-debconfig live-debconfig/ifupdown/eth0-ipv4-network string
#live-debconfig live-debconfig/ifupdown/eth0-ipv4-post-up string
live-debconfig live-debconfig/ifupdown/eth1-ipv4-method select static
#live-debconfig live-debconfig/ifupdown/eth1-ipv4-comment string
live-debconfig live-debconfig/ifupdown/eth1-ipv4-address string 10.20.40.101
#live-debconfig live-debconfig/ifupdown/eth1-ipv4-broadcast string
#live-debconfig live-debconfig/ifupdown/eth1-ipv4-gateway string
#live-debconfig live-debconfig/ifupdown/eth1-ipv4-mtu string
live-debconfig live-debconfig/ifupdown/eth1-ipv4-netmask string 255.255.255.0
#live-debconfig live-debconfig/ifupdown/eth1-ipv4-network string
#live-debconfig live-debconfig/ifupdown/eth1-ipv4-post-up string
#live-debconfig live-debconfig/ifupdown/nameserver-addresses string 212.24.188.130 212.24.188.131
#live-debconfig live-debconfig/ifupdown/nameserver-domain string lan
#live-debconfig live-debconfig/ifupdown/nameserver-search string
#live-debconfig live-debconfig/ifupdown/nameserver-options string
live-debconfig live-debconfig/sysvinit/lxc-enable boolean true
live-debconfig live-debconfig/sysvinit/lxc-consoles string 3
live-debconfig live-debconfig/sysvinit/lxc-disable-services string umountfs umountnfs.sh umountroot hostname.sh mountkernfs.sh mountall.sh mountnfs.sh checkroot.sh
live-debconfig live-debconfig/util-linux/hwclockaccess boolean false
live-debconfig live-debconfig/selinux/enable boolean false
#live-debconfig live-debconfig/ferm/ipv4-ports string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment