OpenVZ: Unterschied zwischen den Versionen
Aus SchnallIchNet
Cbs (Diskussion | Beiträge) |
Cbs (Diskussion | Beiträge) |
||
Zeile 10: | Zeile 10: | ||
zerstoert/loescht die VZ mit der ID CTID | zerstoert/loescht die VZ mit der ID CTID | ||
+ | =VZ ressourcen wie host setzen= | ||
+ | vzctl set CTID --save --kmemsize 2147483647:2147483647 --lockedpages 2147483647:2147483647 --privvmpages 2147483647:2147483647 --shmpages 2147483647:2147483647 \ | ||
+ | --numproc 2147483647:2147483647 --physpages 2147483647:2147483647 --vmguarpages 2147483647:2147483647 --oomguarpages 2147483647:2147483647 --numtcpsock 2147483647:2147483647 \ | ||
+ | --numflock 2147483647:2147483647 --numpty 2147483647:2147483647 --numsiginfo 2147483647:2147483647 --tcpsndbuf 2147483647:2147483647 --tcprcvbuf 2147483647:2147483647 \ | ||
+ | --othersockbuf 2147483647:2147483647 --dgramrcvbuf 2147483647:2147483647 --numothersock 2147483647:2147483647 --dcachesize 2147483647:2147483647 --numfile 2147483647:2147483647 \ | ||
+ | --numiptent 2147483647:2147483647 | ||
+ | setzt alle beschraenkungen auf den wert des hostsystems | ||
+ | zusaetzlich muss noch der plattenplatz und | ||
+ | vzctl set CTID --save --noatime yes --diskspace 10G:15G | ||
+ | setzt das softlimit fuer plattenplatz auf 10GB und das hardlimit auf 15GB | ||
+ | |||
+ | =Performance= | ||
+ | vzctl set CTID --save --noatime yes | ||
+ | setzt noatime auf yes. in der VZ wird dann die access-time fuer files nicht | ||
+ | aktualisiert. | ||
=OS Templates= | =OS Templates= | ||
+ | {{Achtung|Download to host system's /vz/template/cache directory}} | ||
http://wiki.openvz.org/Download/template/precreated<br/> | http://wiki.openvz.org/Download/template/precreated<br/> | ||
http://download.openvz.org/beta/templates/precreated/ | http://download.openvz.org/beta/templates/precreated/ |
Version vom 10. September 2008, 10:39 Uhr
Inhaltsverzeichnis
VZ anlegen
vzctl create CTID --ostemplate osname vzctl set CTID --ipadd a.b.c.d --save vzctl set CTID --nameserver a.b.c.d --save vzctl start CTID
CTID = Numeric VZ-ID
VZ zerstoeren
vzctl destroy CTID
zerstoert/loescht die VZ mit der ID CTID
VZ ressourcen wie host setzen
vzctl set CTID --save --kmemsize 2147483647:2147483647 --lockedpages 2147483647:2147483647 --privvmpages 2147483647:2147483647 --shmpages 2147483647:2147483647 \ --numproc 2147483647:2147483647 --physpages 2147483647:2147483647 --vmguarpages 2147483647:2147483647 --oomguarpages 2147483647:2147483647 --numtcpsock 2147483647:2147483647 \ --numflock 2147483647:2147483647 --numpty 2147483647:2147483647 --numsiginfo 2147483647:2147483647 --tcpsndbuf 2147483647:2147483647 --tcprcvbuf 2147483647:2147483647 \ --othersockbuf 2147483647:2147483647 --dgramrcvbuf 2147483647:2147483647 --numothersock 2147483647:2147483647 --dcachesize 2147483647:2147483647 --numfile 2147483647:2147483647 \ --numiptent 2147483647:2147483647
setzt alle beschraenkungen auf den wert des hostsystems zusaetzlich muss noch der plattenplatz und
vzctl set CTID --save --noatime yes --diskspace 10G:15G
setzt das softlimit fuer plattenplatz auf 10GB und das hardlimit auf 15GB
Performance
vzctl set CTID --save --noatime yes
setzt noatime auf yes. in der VZ wird dann die access-time fuer files nicht aktualisiert.
OS Templates
Download to host system's /vz/template/cache directory |
http://wiki.openvz.org/Download/template/precreated
http://download.openvz.org/beta/templates/precreated/