Servers:Hercules
Jump to navigation
Jump to search
Adding a new vserver
- As root on hercules:
- First create the template the server will use for portage
# cd /etc/managed-portage/ # rsync -avP hosts/TEMPLATE_webdb/ hosts/sr-hercules$$
- Commit the new vserver's template to git
# git add /hosts/sr-hercules$$ # git commit -m 'New VM, Hercules$$' # git push
- Create the new vserver
# cd ~/vps-siat/scripts/ # ./make-vps sr-hercules$$ br0:10.0.1.XX/16 br0:209.87.56.XX/24
- Note that $$ must be the number of the new vserver, which start at 00.
- Further note that XX is the IP to be assigned to the new server. Be very careful not to assign an already taken IP.
Removing an existing vserver
- As root on hercules:
- First ensure that the Vserver is stopped
# vserver sr-hercules$$ stop
- Kill the server
# cd ~/vps-siat/scripts/ # ./kill-vps sr-hercules$$
- Note that $$ must be the number of the vserver.