1 |
------------------------------------------------------------------------------------------- |
2 |
umltools - setup |
3 |
------------------------------------------------------------------------------------------- |
4 |
|
5 |
INSTALL |
6 |
Prerequisites: |
7 |
- uml (user mode linux) from http://user-mode-linux.sourceforge.net |
8 |
- the tun/tap networking driver from http://vtun.sourceforge.net/tun/ |
9 |
|
10 |
CONFIGURE |
11 |
1. Create a new configuration-file, please use "Config.pm" as a template. |
12 |
2. Please modify the the following part according to your configuration in _every_ "*.pl" file: |
13 |
--- snip --- |
14 |
# path to modules |
15 |
use lib '/home/service/bin/umltools'; |
16 |
|
17 |
# path to config-file |
18 |
use lib '/home/service/etc'; |
19 |
--- snip --- |
20 |
|
21 |
... the files are: uml_boot.pl, uml_package.pl, uml_setup.pl |
22 |
|
23 |
|
24 |
------------------------------------------------------------------------------------------- |
25 |
umltools - usage |
26 |
------------------------------------------------------------------------------------------- |
27 |
|
28 |
BUILD |
29 |
as root: |
30 |
useradd service |
31 |
groupadd service |
32 |
./uml_setup --skel=woody-stable --vhost=test --build --ask |
33 |
chown -R service.service <umldir> |
34 |
|
35 |
RUN |
36 |
as root: |
37 |
./uml_boot --vhost=test --prepare --ask |
38 |
|
39 |
to become service: (instead of the standard "su") |
40 |
./sue service |
41 |
|
42 |
as service: |
43 |
./uml_boot --vhost=test --start --ask |
44 |
./uml_boot --vhost=test --stop --ask |
45 |
./uml_boot --vhost=test --kill --ask |
46 |
./uml_boot --vhost=test --kill9 --ask |