• 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: squeeze
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-6.0-tom
Version: 6.0-6-tom1
Section: system
Maintainer: Tom Dobes <tomdobes@purdue.edu>
Infopage: http://wiki.mcpstars.org/build_debian_squeeze_amd64_openvz_pve_template
Description: Debian Squeeze for Tom
 The base Debian Squeeze 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 dhcp3-common
	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.tail
	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/ squeeze main
deb-src http://debian.osuosl.org/debian/ squeeze main

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

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
  • run make in that directory


  • 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_squeeze_amd64_openvz_pve_template.txt · Last modified: 2012/10/10 19:14 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS