• install temporary proxmox ve install in KVM VM
  • install dab
  • make a temporary directory with the following files (based on PVE debian minimal and debian 64-bit vm's):


Suite: wheezy
CacheDir: ../cache
Source: http://debian.osuosl.org/debian/ SUITE main
#Source: http://debian.osuosl.org/debian/ SUITE-updates main
Source: http://security.debian.org/ SUITE/updates main
Architecture: amd64
Name: debian-7.0-tom
Version: 7.0-beta2-tom1
Section: system
Maintainer: Tom Dobes <tomdobes@purdue.edu>
Infopage: http://wiki.mcpstars.org/build_debian_wheezy_amd64_openvz_pve_template
Description: Debian Wheezy for Tom
 The base Debian Wheezy amd64 install plus essential utils.


BASEDIR:=$(shell dab basedir)

all: info/init_ok
	dab bootstrap --minimal
	dab exec aptitude -y purge dmidecode isc-dhcp-client isc-dhcp-common libkmod2 kmod
	dab install locales
	sed -e 's/^# en_US.UTF-8/en_US.UTF-8/' -i ${BASEDIR}/etc/locale.gen
	dab exec dpkg-reconfigure -f noninteractive locales
	dab install screen rsync psmisc file patch
	dab install dnsutils
	dab exec cp /dev/null /etc/motd
	echo "America/Chicago" > ${BASEDIR}/etc/timezone
	dab exec dpkg-reconfigure -f noninteractive tzdata
	cat sources.list > ${BASEDIR}/etc/apt/sources.list
	dab exec aptitude forget-new
	rm ${BASEDIR}/etc/ssh/ssh_host_*_key*
	dab finalize

info/init_ok: dab.conf
	dab init
	touch $@

.PHONY: clean
	dab clean
	rm -f *~

.PHONY: dist-clean
	dab dist-clean
	rm -f *~


deb http://debian.osuosl.org/debian/ wheezy main
deb-src http://debian.osuosl.org/debian/ wheezy main

deb http://debian.osuosl.org/debian/ wheezy-updates main
deb-src http://debian.osuosl.org/debian/ wheezy-updates main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
  • run make in that directory (Note: Since dab is in /usr/sbin/, this has to be done as root)


  • at the end of this, we don't seem to have a package cache in the VM… maybe related to the sources.list copy which we do to add the deb-src lines? Everything's fine after you run aptitude update once in the VM.
computer/build_debian_wheezy_amd64_openvz_pve_template.txt · Last modified: 2013/06/28 13:17 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS