Editing
VPS Management
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= FreeBSD 10.1 VPS (jail5 and jail6) = This is information on how to manage the FreeBSD 10.1 VPS servers on Jail5. == Making new customer VPS == <pre> virtmake IP[,IP] <CID> hostname ipfw# email {FSP|FB|FS|FM|FP} [size in GB] </pre> Note: For now, CID must be unique in the last 2 digits of the CID. Must do a "vm start <CID>" after creating a VPS. == Starting VPS == To start all vms on the system <pre> vm start </pre> To start a single VPS <pre> vm start <CID> </pre> == List running VPS == <pre> vm status </pre> == Attach to a user VPS console == <pre> vm attach <CID> </pre> To detach from a console, type tilde control-d (~ ctl-d). == Stop a VPS == <pre> vm stop <CID> </pre> == Restart a VPS == <pre> vm restart <CID> </pre> == Modify a VPS == To modify a VPS config, stop the VPS <pre> vm stop <CID> </pre> Mount the VPS data file <pre> vm mount <CID> cd /data/vm/private/<CID>/mount </pre> Modify the user files necessary. Restart the VPS. <pre> vm umount <CID> vm start <CID> </pre> == Notes on a new FBSD 10.x VPS (jail6) == <pre> #! /bin/sh # # new <colo#> <disk> memory=1024 x="$1" disk="$2" if [ "y" == "y$disk" ] ; then disk=60 fi disk2=`expr $disk - 4` vm image provision 04dcdf96-d843-11e6-b131-001e67fcc64f col0$x # vm configure col0$x sed -e "s/memory=256M/memory=${memory}M/" /vms/col01114/col01114.conf >/vms/col0$x/col0$x.conf zfs set quota=${disk}G zroot/vms/col0$x zfs set volsize=${disk}G zroot/vms/col0$x/disk0 # vm start col0$x exit vm console col0$x # # to increase the customer disk # zfs set quota=${disk}G zroot/vms/col0$x zfs set volsize=${disk}G zroot/vms/col0$x/disk0 ## on the customer VPS gpart recover vtbd0 gpart show vtbd0 swapoff /dev/vtbd0p3 gpart delete -i 3 vtbd0 gpart show vtbd0 sysctl kern.geom.debugflags=16 gpart resize -i 2 -a 4k -s $disk2\G vtbd0 growfs /dev/vtbd0p2 gpart show vtbd0 gpart add -t freebsd-swap -a 4k vtbd0 gpart show vtbd0 swapon /dev/vtbd0p3 df -h reboot vi /etc/rc.conf hostname IP Addr passwd root passwd user clear history cp /dev/null /var/log/utx.log cp /dev/null ~root/.history history -c </pre>
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information