chiark / gitweb /
Docs: new README.schroot-setup
[autopkgtest.git] / doc / README.schroot-setup
1 This file is a quick summary of how to get autopkgtest working with
2 schroot-mediated lvm snapshots.
3
4 1. Install schroot and make sure you have an LVM VG with enough space
5    In what follows replace "vg-liberator" with that VG name
6
7 2. Create a suitable LVM LV (10Gish?) called "schroot-wheezy"
8
9 3. Fill that LV with an install:
10   mkfs -t ext3 /dev/vg-liberator/schroot-wheezy
11   mkdir /volatile/chroots/adt/wheezy
12   mount /dev/vg-liberator/schroot-wheezy /volatile/chroots/adt/wheezy
13   http_proxy=http://proxy.dc11.debconf.org:3128/ really debootstrap \
14     wheezy /volatile/chroots/adt/wheezy http://ftp.ba.debian.org/debian/
15   umount /volatile/chroots/adt/wheezy
16
17 4. Put this in /etc/schroot/schroot.conf:
18
19   [wheezy-snap]
20   type=lvm-snapshot
21   description=Debian wheezy LVM snapshot
22   groups=root,ian
23   root-users=ian
24   root-groups=root,ian
25   source-root-users=ian
26   device=/dev/vg-liberator/schroot-wheezy
27   mount-options=-o atime,sync,user_xattr
28   lvm-snapshot-options=--size 10G
29   script-config=minimal/config
30
31 5. Optionally add some stuff to the source schroot.  This is not needed
32    but can make things faster, particularly on slow hardware or with
33    only a distant mirror.
34   schroot -u root -c wheezy-snap-source \
35     apt-get install dpkg-dev build-essential
36
37 5. Download the mawk source with tests from here:
38   http://packages.ubuntu.com/hardy/mawk
39
40 6. Clone autopkgtest, and you can do this
41       cd autopkgtest.git/runner
42       mkdir tmp
43       AUTOPKGTEST_BASE=.. ./adt-run --tmp-dir=`pwd`/tmp -d \
44         ../../Mawk/ancient/mawk_1.3.3-11ubuntu2.dsc --- \
45         ../virt-subproc/adt-virt-schroot wheezy-snap
46    Or install autopkgtest.deb and run
47        adt-run ../../Mawk/ancient/mawk_1.3.3-11ubuntu2.dsc --- \
48         adt-virt-schroot wheezy-snap