File: newvserver.pod

package info (click to toggle)
vserver-debiantools 0.6.3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 212 kB
  • ctags: 24
  • sloc: sh: 1,599; makefile: 90
file content (113 lines) | stat: -rw-r--r-- 3,942 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
=head1 NAME

newvserver - Creates a new Debian vserver by calling vserver ... build

=head1 SYNOPSIS

newvserver --hostname x --domain y.z --ip 1.2.3.4/24 [OPTIONS]

=head1 DESCRIPTION

=head1 OPTIONS

Optional:
    -h, --help        this help
    -V, --version     copyright and version information
    --arch            set target architecture (eg. --arch "i386")
                      (autodetected on Debian host if dpkg available)
    --dist            defaults to "lenny", passed to debootstrap.
    --context n       Set the context id to be used.
    --fakeinit        use "/sbin/init" to boot vserver
    --conffile        extra configuration file to load.
    --post-install-script
                      script to run after the installation finishes inside vserver.
    --post-install-host-script
                      script to run after the installation finishes outside vserver
		      and before post-install script.
    --interface       interface for IP addresses (default "eth0")
    --mirror          Debian HTTP/FTP mirror (including the /debian)
                      Default: http://ftp.uk.debian.org/debian
    --sshkeys         copy pub-keys to "/root/.ssh/authorized_keys"
    --pkgcache        Package caching.
    -v, --verbose     show extra output during setup
    --vsroot          location of "/vserver/" directory
Required:
    --hostname        hostname for new vserver (eg. "alpha")
    --domain          dns domain for new vserver (eg. "example.com")
    --ip              IPv4 address for new vserver
                      (syntax: --ip <ip>[/<netmask|prefixlength>])

=head1 CONFIG FILE

The following variables can be set in a configuration file. The configuration
file is a normal shell file and is sourced to get the configuration variables.

The file /etc/vservers/newvserver-vars is always sourced so this configuration
file only override that file.

# Default VROOTDIR
VROOTDIR="/etc/vservers/.defaults/vdirbase"

Packages to install in addition to the base defaults
MUST INCLUDE ALL DEPENDENCIES (seperated by "," commas)

INSTALL_PACKAGES="package1,package2"

Packages installed from within the vserver after it has
been setup (seperated by "," commas)
EXTRA_PACKAGES="package1,package2"

Packages to remove from the base defaults (seperated by "," commas)
REMOVE_PACKAGES="package1,package2"

Sysvinit services relating to hardware access to remove
REMOVE_LINKS="klogd hwclock.sh setserial urandom networking umountfs halt reboot"

Absolute path location of a script that you want to run after the
vserver installation.
POST_INSTALL_SCRIPT=""

Absolute path location of a script that you want to run after the
vserver installation but before the previous script and outside
vserver context. This can be used for example to copy
/etc/apt/sources.list from host.
POST_INSTALL_HOST_SCRIPT=""

Architecture: overide on non-Debian host such as Redhat
otherwise dpkg will detect whether we are i386/powerpc/sparc/etc
ARCH=""

Which debian distribution (Warning. unstable and testing distributions change
frequently so you can not expect it to work out of the box).
DIST="lenny"

Local or nearest location of a debian mirror (must include the `/debian')
MIRROR="http://ftp.uk.debian.org/debian"

debian-non-US mirror (must include the '/debian-non-US', only used for woody)
MIRROR_NON_US="http://non-us.debian.org/debian-non-US"

mirror for security updates
MIRROR_SECURITY="http://security.debian.org"

Default network interface for vservers:
INTERFACE="eth0"

Package caching:
PKGCACHE=1

The name of a debconf database to be read by debconf's file driver.
This can be used to store the answers for debconf questions during
install and thus allows for unattended installation.  See the
debconf.conf(5) manual page for the file format.
DEBCONF_FILE_DB=""

=head1 AUTHOR

Author of the manual page is Ola Lundqvist <opal@debian.org>

=head1 SEE ALSO

util-vserver(1), dupvserver(1), stripserver(1)

=cut