# vzctl --help
vzctl version 3.0.16
Copyright (C) 2000-2007 SWsoft.
This program may be distributed under the terms of the GNU GPL License.
Usage: vzctl [options] <command> <veid> [parameters]
vzctl destroy | mount | umount | stop | status | enter <veid>
vzctl create <veid> {--ostemplate <name>] [--config <name>]
[--private <path>] [--root <path>] [--ipadd <addr>] | [--hostname <name>]
vzctl start <veid> [--force] [--wait]
vzctl exec | exec2 <veid> <command> [arg ...]
vzctl runscript <veid> <script>
vzctl chkpnt <veid> [--dumpfile <name>]
vzctl restore <veid> [--dumpfile <name>]
vzctl set veid [--save] [--setmode restart|ignore]
[--ipadd <addr>] [--ipdel <addr>|all] [--hostname <name>]
[--nameserver <addr>] [--searchdomain <name>] [--onboot yes|no]
[--userpasswd <user>:<passwd>] [--cpuunits <N>] [--cpulimit <N>] [--cpus <N>]
[--diskspace <soft>[:<hard>]] [--diskinodes <soft>[:<hard>]]
[--quotatime <N>] [--quotaugidlimit <N>]
[--noatime yes|no] [--capability <name>:on|off ...]
[--devices b|c:major:minor|all:r|w|rw]
[--devnodes device:r|w|rw|none]
[--netif_add <ifname[,mac,host_ifname,host_mac]]>] [--netif_del <ifname>]
[--applyconfig <name>] [--applyconfig_map <name>]
[--features <name:on|off>] [--name <vename>]
[--ioprio <N>]
[--iptables <name>] [--disabled <yes|no>]
[UBC parameters]
UBC parameters (N - items, P - pages, B - bytes):
Two numbers divided by colon means barrier:limit.
In case the limit is not given it is set to the same value as the barrier.
--numproc N[:N] --numtcpsock N[:N] --numothersock N[:N]
--vmguarpages P[:P] --kmemsize B[:B] --tcpsndbuf B[:B]
--tcprcvbuf B[:B] --othersockbuf B[:B] --dgramrcvbuf B[:B]
--oomguarpages P[:P] --lockedpages P[:P] --privvmpages P[:P]
--shmpages P[:P] --numfile N[:N] --numflock N[:N]
--numpty N[:N] --numsiginfo N[:N] --dcachesize N[:N]
--numiptent N[:N] --physpages P[:P] --avnumproc N[:N]
#
현재 본인이 사용하는 vzctl 환경 및 옵션
# vzctl create 3205 --ostemplate gentoo-2.6.18
# vzctl set 3205 --save --onboot=yes --ipadd 1.1.3.205 --nameserver 1.1.1.200 --nameserver 168.126.63.1 --hostname mail.ddong.ac.kr --diskspace 700000:800000 --userpasswd test:1111
- 시스템 기동과 동시에 VE를 실행시키고 이 설정을 /etc/vz/conf/<VEID>.conf 에 저장
- VEID는 호스트ID 영역의 값
- nameserver는 자체네임서버, 한통네임서버 2개 사용
- diskspace는 soft 700M, hard 800M (--diskspace 옵션 default, kbyte)
- VE의 일반사용자/비번 test/1111
주의
--diskspace 값을 최소 운영체제 설치 용량보다 적게 잡으면 아래와 같은 메시지가 나온다
ddong ~ # vzctl start 2200
Starting VE ...
vzquota : (warning) block_soft_limit [400100] < block_current_usage [418972]
VE is mounted
Adding IP address(es): 1.1.2.200
ERROR: Can't copy file /etc/conf.d/net
/bin/cp: writing `/etc/conf.d/net.15569': Disk quota exceeded
Setting CPU units: 1000
Set hostname: ns2.ddong.ac.kr
/bin/cp: writing `/etc/hosts.15598': Disk quota exceeded
ERROR: Can't copy file /etc/hosts
vzquota : (warning) block_soft_limit [400000] < block_current_usage [418972]
VE start in progress...
vzctl version 3.0.16
Copyright (C) 2000-2007 SWsoft.
This program may be distributed under the terms of the GNU GPL License.
Usage: vzctl [options] <command> <veid> [parameters]
vzctl destroy | mount | umount | stop | status | enter <veid>
vzctl create <veid> {--ostemplate <name>] [--config <name>]
[--private <path>] [--root <path>] [--ipadd <addr>] | [--hostname <name>]
vzctl start <veid> [--force] [--wait]
vzctl exec | exec2 <veid> <command> [arg ...]
vzctl runscript <veid> <script>
vzctl chkpnt <veid> [--dumpfile <name>]
vzctl restore <veid> [--dumpfile <name>]
vzctl set veid [--save] [--setmode restart|ignore]
[--ipadd <addr>] [--ipdel <addr>|all] [--hostname <name>]
[--nameserver <addr>] [--searchdomain <name>] [--onboot yes|no]
[--userpasswd <user>:<passwd>] [--cpuunits <N>] [--cpulimit <N>] [--cpus <N>]
[--diskspace <soft>[:<hard>]] [--diskinodes <soft>[:<hard>]]
[--quotatime <N>] [--quotaugidlimit <N>]
[--noatime yes|no] [--capability <name>:on|off ...]
[--devices b|c:major:minor|all:r|w|rw]
[--devnodes device:r|w|rw|none]
[--netif_add <ifname[,mac,host_ifname,host_mac]]>] [--netif_del <ifname>]
[--applyconfig <name>] [--applyconfig_map <name>]
[--features <name:on|off>] [--name <vename>]
[--ioprio <N>]
[--iptables <name>] [--disabled <yes|no>]
[UBC parameters]
UBC parameters (N - items, P - pages, B - bytes):
Two numbers divided by colon means barrier:limit.
In case the limit is not given it is set to the same value as the barrier.
--numproc N[:N] --numtcpsock N[:N] --numothersock N[:N]
--vmguarpages P[:P] --kmemsize B[:B] --tcpsndbuf B[:B]
--tcprcvbuf B[:B] --othersockbuf B[:B] --dgramrcvbuf B[:B]
--oomguarpages P[:P] --lockedpages P[:P] --privvmpages P[:P]
--shmpages P[:P] --numfile N[:N] --numflock N[:N]
--numpty N[:N] --numsiginfo N[:N] --dcachesize N[:N]
--numiptent N[:N] --physpages P[:P] --avnumproc N[:N]
#
현재 본인이 사용하는 vzctl 환경 및 옵션
# vzctl create 3205 --ostemplate gentoo-2.6.18
# vzctl set 3205 --save --onboot=yes --ipadd 1.1.3.205 --nameserver 1.1.1.200 --nameserver 168.126.63.1 --hostname mail.ddong.ac.kr --diskspace 700000:800000 --userpasswd test:1111
- 시스템 기동과 동시에 VE를 실행시키고 이 설정을 /etc/vz/conf/<VEID>.conf 에 저장
- VEID는 호스트ID 영역의 값
- nameserver는 자체네임서버, 한통네임서버 2개 사용
- diskspace는 soft 700M, hard 800M (--diskspace 옵션 default, kbyte)
- VE의 일반사용자/비번 test/1111
주의
--diskspace 값을 최소 운영체제 설치 용량보다 적게 잡으면 아래와 같은 메시지가 나온다
ddong ~ # vzctl start 2200
Starting VE ...
vzquota : (warning) block_soft_limit [400100] < block_current_usage [418972]
VE is mounted
Adding IP address(es): 1.1.2.200
ERROR: Can't copy file /etc/conf.d/net
/bin/cp: writing `/etc/conf.d/net.15569': Disk quota exceeded
Setting CPU units: 1000
Set hostname: ns2.ddong.ac.kr
/bin/cp: writing `/etc/hosts.15598': Disk quota exceeded
ERROR: Can't copy file /etc/hosts
vzquota : (warning) block_soft_limit [400000] < block_current_usage [418972]
VE start in progress...

댓글을 달아 주세요