summaryrefslogtreecommitdiff
path: root/server-build/my-simple-cdd/README
blob: 2cc20432fbd9612d77f6893c38b6a9af0b0410ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
This directory contains some scripts and associated files to
create a Debian qcow2 image with a WooCommerce+Taler installation.

We use simple-cdd to non-interactively run the Debian installer,
and have a profile 'talerwoo' with WooCommerce and Taler-specific
specifications.

Dependencies:
=============

* debian-archive-keyring
* qemu, qemu-system, qemu-kvm
* xorriso
* bsdtar
* simple-cdd

Make sure the user using the scripts is in the 'kvm' group.
The scripts are only written for AMD64/x86_64 CPUs.


How to use:
===========

First run:

$ ./make-iso.sh

to create the "installer.iso". Then run:

$ ./setup-system.sh

to run the Debian installer to create the 'talerwoo.img'.

Before booting, make sure that your system is setup to
route packages and performs NAT for the VM (otherwise
the installation script that runs on first startup
will fail):

$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
$ sudo iptables -t nat -A POSTROUTING -o wlp3s0 -j MASQUERADE

Finally, boot the final image using:

$ ./run-system.sh

The root password will be set to "wootaler" initially.

Upon first boot, you need to wait for a bit for the systemd
service firstboot-wootaler.service to complete. You may
want to check the logs:

# journalctl -u firstboot-wootaler.service

If the script fails due to say network errors, you
should be able to simply re-run it using:

# firstboot-script.sh

(it will also re-run on each boot until it has
succeeded).