vserver-build8
Initializes a vserver
Usage
vserver-build -m
method
-n
name
[--force]
[--keep]
[--rootdir
dir]
[--pkgbase
dir]
config
options*
[--]
method
arguments*
Options
-
--context num
-
The static context of the vserver [default: none; one will be generated for you]. The valid range is 2 through 49151.
-
--confdir dir
-
The vserver configuration directory to use [default: /etc/vservers/<name>].
-
--lockfile filename
-
The lockfile to use [default: /var/run/vservers/<name>].
-
--hostname hostname
-
Hostname of the vserver.
-
--netdev device
-
The default interface to use for
--interface.
-
--netbcast broadcast
-
Broadcast address to associate with the vserver.
--netmasknetmask|--netprefixprefixlen
-
Sets the default netmask (a.b.c.d quadruple) or prefixlen (length of the network).
-
--interface [name-suffix=][device:]ip[/mask|prefixlen]
-
Declares a network-interface name and associated IP/netmask; this option can be specified multiple times.
-
--flags flags+
-
Sets comma-separated list of flags; see lib/cflags-v13.c for a list.
-
--cpuset name
-
Declares the CPUSET this vserver will run in [default: none]
-
--cpusetcpus number[-number][:exclusive]
-
Sets which CPUs belong to the CPUSET, :exclusive is a flag (0|1) prohibiting any other cpuset from using those CPUs.
-
--cpusetmems number[-number][:exclusive]
-
Sets which memory pools belong to the CPUSET, :exclusive is a flag (0|1) prohibiting any other cpuset from using those memory pools.
-
--cpusetvirt
-
Virtualize the cpuset (the vserver will see only CPUs defined in the cpuset). Requires kernel patch from http://www.bullopensource.org/cpuset/
-
--initstyle style
-
Configures the initstyle (e.g. minit, sysv, plain, gentoo)
Methods
apt-rpm
-
---ddistributionInstalls the base-packages of the given distribution with the help of
vapt-get
yum
-
---ddistributionInstalls the base-packages of the given distribution with help of
vyum
rpm
-
--[-ddistribution]--empty|([--force] [--nodeps] manifest)+Installs lists of rpm-packages
skeleton
-
--[cmd args*]Installs a minimal skeleton filesystem, creates the configuration file and calls an optional command
debootstrap
-
---ddistribution [-mmirror] [-sscript] [--debootstrap-options*]Bootstraps the vserver with Debian's 'debootstrap' package
template
-
--(-ttarball)+ [-ddistribution]Installs a vserver using tarball(s)
fai
-
--[-ffai_vserver] [-nnfsroot] [-dfai_dir] [-a]Bootstraps the vserver with the Debian Fully Automatic Installation
-fmeans use the nfsroot and profile in the vserver fai_vserver-nnfsroot specifies the 'NFS' root explicitly-dfai_dir specifies the location of the FAI profilethe
-foption implies-nand-dare relative to the fai_vserver
rsync
-
--[-ddistribution]--sourcesource [-orsync option]*Installs a vserver by rsyncing from source to the guest root
clone
-
--[-ddistribution]--sourcesourceClones a vserver by linking unified files and copying the rest
Examples
# vserver kea build -m debootstrap --context 10 --hostname kea --interface eth0:192.168.0.44/32 -- -d etch
Releases
5 releases since Debian 5.0 (Lenny); the text changed 1 time.