Changes between Version 3 and Version 4 of install_vserver


Ignore:
Timestamp:
Oct 29, 2008, 1:11:32 PM (17 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • install_vserver

    v3 v4  
    11= Install a vserver =
    22
    3 Place holder...
     3In this example, we're creating a new server called jacobo. Change jacobo to the name of the server you are creating.
     4
     5 * Create a disk (or disks) to be used by the vserver
     6{{{
     7lvcreate --name jacobo_root --size 1G vg_ottorene0
     8}}}
     9 * Create a filesystem
     10{{{
     11mkfs -t ext3 /dev/mapper/vg_ottorene0-jacobo_root
     12}}}
     13 * Add the new disk to fstab so it is mounted on boot
     14{{{
     15echo /dev/mapper/vg_ottorene0-jacobo_root /var/lib/vservers/jacobo ext3 defaults 0 2 >> /etc/fstab
     16}}}
     17 * Make the target directory and mount it
     18{{{
     19mkdir /var/lib/vservers/jacobo
     20mount /var/lib/vservers/jacobo
     21}}}
     22 * Create the vserver. Replace the context number with a number unique to the server
     23{{{
     24vserver jacobo build -m debootstrap --context 201 --hostname jacobo --interface eth0:209.234.253.167/27 --initstyle plain -- -d lenny -m http://ftp.us.debian.org/debian -- --include less,psmisc,lsof,socat,emacs22-nox,emacs22-bin-common,emacs22-common,liblockfile1,emacsen-common,bsdmainutils,locales --keyring=/usr/share/keyrings/debian-archive-keyring.gpg
     25}}}
     26 * Ensure that the server starts on boot
     27{{{
     28echo default > /etc/vservers/jacobo/apps/init/mark
     29}}}
     30 * Manually start the vserver
     31{{{
     32vserver jacobo start
     33}}}
     34 * Ensure that it started
     35{{{
     36vserver-stat
     37}}}
     38 * Enter the vserver
     39{{{
     40vserver jacobo enter
     41}}}
     42
     43Here's the output of a full session:
    444
    545{{{