|
|
Linux Virtual ServersStart up util-vserver service vprocunhide start service util-vserver start Export Virtual Server name # export vservername=<vservername> Creating A Virtual Server # vserver $vservername build -m yum --context 100 --hostname $vservername --interface eth0:a.b.c.d/24 -- --debug Auto-start Virtual Server # echo default > /etc/vservers/$vservername/apps/init/mark Install VIM Editor & sysklogd # vyum $vservername -- install vim-enhanced # vyum $vservername -- install sysklogd Install rootfiles Install some files in /root... # vyum $vservername -- install rootfiles Create /vservers/$vservername/etc/profile.d/vserver.sh and chmod +x it ... # If we in the vserver, display better prompt export PS1="[<NAME HERE>:\u \W]% " Configuring the Virtual Server You'll need to edit /vservers/$vservername/etc/hosts & /vservers/$vservername/etc/resolv.conf to setup the dns Edit /etc/vservers/$vservername/uts/nodename and set the hostname of the vserver. Turn Everything On chkconfig vservers-default on chkconfig vprocunhide on chkconfig util-vserver on Starting a Virtual Server Starting the vserver requires at least one service to be installed to run. # vserver $vservername start Stopping a Virtual Server # vserver $vservername stop Entering a Virtual Server # vserver $vservername enter |
Login |
||||