Strip a server from hardware related packages and files
stripserver [\s-1OPTIONS\s0] --hostname x --domain y.z --ip 1.2.3.4
This program strips a server directory from packages and files that is hardware related. This means that you can copy a complete filesystem to a vserver directory and then use this tool to strip the hardware related things from it. It only works with Debian servers though.
Optional:
-h, --help this help -V, --version copyright and version information
--copy-vreboot install \*(L"vreboot/vshutdown/vhalt\*(R" --no-copy-vreboot don't install \*(L"vreboot/vshutdown/vhalt\*(R" --dist Deprecated option. --fakeinit use \*(L"/sbin/init\*(R" to boot vserver --conffile extra configuration file to load. --interface interface for \s-1IP\s0 addresses (if not \*(L"eth0\*(R") --sshkeys copy pub-keys to \*(L"/root/.ssh/authorized_keys\*(R" -v, --verbose show extra output during setup --vsroot location of \*(L"/vserver/\*(R" directory Required: --hostname hostname for new vserver (eg. \*(L"alpha\*(R") --domain dns domain for new vserver (eg. \*(L"example.com\*(R") --ip IPv4 address for new vserver
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.
Packages to install in addition to the base defaults \s-1MUST\s0 \s-1INCLUDE\s0 \s-1ALL\s0 \s-1DEPENDENCIES\s0 (seperated by \*(L",\*(R" commas)
INSTALL_PACKAGES=\*(L"package1,package2\*(R"
Packages installed from within the vserver after it has been setup (seperated by \*(L",\*(R" commas) EXTRA_PACKAGES=\*(L"package1,package2\*(R"
Packages to remove from the base defaults (seperated by \*(L",\*(R" commas) REMOVE_PACKAGES=\*(L"package1,package2\*(R"
Sysvinit services relating to hardware access to remove REMOVE_LINKS=\*(L"klogd hwclock.sh setserial urandom networking umountfs halt reboot\*(R"
Default network interface for vservers: INTERFACE=\*(L"eth0\*(R"
Copy vreboot/vhalt/vshutdown utility into /usr/local/sbin/ COPY_VREBOOT=\*(L"true\*(R"
Author of the manual page is Ola Lundqvist <[email protected]>
vserver\|(1), dupvserver\|(1), newvserver\|(1)