Vserver

From Tom's notes
Jump to navigation Jump to search

Creating a new guest

Deploy the template:

vserver sandbox build --context 100 --hostname sandbox --interface eth0:192.168.0.100/24 --initstyle gentoo -m template -- -d gentoo -t /vservers/stage3-amd64-20160317.tar.bz2

Install a service:

ROOT=/vservers/sandbox emerge -pv syslog-ng
chroot /vservers/sandbox
rc-update add syslog-ng default

Check vserver config files:

  • /etc/vservers/sandbox/fstab

If you want autostart:

echo default > /etc/vservers/git/apps/init/mark

Start the guest:

vserver sandbox start

Check config files:

  • /etc/portage/make.conf