About this list Date view Thread view Subject view Author view Attachment view

From: Lucas Albers (admin_at_cs.montana.edu)
Date: Fri 09 Jul 2004 - 20:25:16 BST


Is the correct method to use when creating a new vserver using
util-vserver on debian, (per mailing list.)

I am switching my debian servers from vserver to util-vserver as per
debian maintainer's remarks.

I worked with the following and had much success:
vserver NAME build --help (you don't trust me and want to read the options)
vserver NAME build -m debootstrap --interface eth0:IPADDRESS/NETMASK
--hostname NAME -- -d sid

>The netmask should be a simple number 8 = 255.0.0.0 16 = 255.255.0.0
>You will get a debian host with this example. Before starting it, I would do
>the following:
>chroot /vservers/NAME
>update-rc.d -f klogd remove
>update-rc.d -f klogd pcmcia
>echo "deb http://ftp.debian.org/debian unstable main" >>
/etc/apt/sources.list
>apt-get update
>apt-get install ssh
>passwd #set rootpassword
>exit
>on your host server, you have to limit ssh to its actual ip
>EDITOR /etc/ssh/sshd_config:
>ListenAddress PublicIP
>This option needs to be writen for every ip it should listen on.
>0.0.0.0 = nono! vserver does not get a port to run properly
>Important: /etc/init.d/ssh restart

>Almost done?
>Yes: no public IP -> you should run iptables with the following option:
>iptables -t nat -A POSTROUTING --src VSERVERIP -j SNAT --to PUBLICIP

>You can start the vserver!!!
>vserver NAME start

>Need help to find a package within debian:
>apt-cache search NAME

>I hope it helps, it is the best I can come up with

>Ciao, Matthias

-- 
Luke Computer Science System Administrator
Security Administrator,College of Engineering
Montana State University-Bozeman,Montana

_______________________________________________ Vserver mailing list Vserver_at_list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 09 Jul 2004 - 20:25:41 BST by hypermail 2.1.3