1 |
INSTALL |
------------------------------------------------------------------------------------------- |
2 |
as root: |
umltools - setup |
3 |
useradd service |
------------------------------------------------------------------------------------------- |
4 |
groupadd service |
|
5 |
./uml_setup --skel=woody-stable --vhost=test --build --ask |
INSTALL |
6 |
chown -R service.service <umldir> |
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 |
|
|
|
RUN |
|
|
as root: |
|
|
./uml_boot --vhost=test --prepare --ask |
|
23 |
|
|
24 |
to become service: |
------------------------------------------------------------------------------------------- |
25 |
./sue service |
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 |
as service: |
to become service: (instead of the standard "su") |
40 |
./uml_boot --vhost=test --start --ask |
./sue service |
41 |
./uml_boot --vhost=test --stop --ask |
|
42 |
./uml_boot --vhost=test --kill --ask |
as service: |
43 |
./uml_boot --vhost=test --kill9 --ask |
./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 |