File: lxctl.8

package info (click to toggle)
lxctl 0.3.1%2Bdebian-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 404 kB
  • sloc: perl: 2,656; makefile: 35
file content (235 lines) | stat: -rw-r--r-- 5,758 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
.TH VERSION: "8" "June 2012" "Version: 0.3.0" "System Administration Utilities"
.SH NAME
lxctl - utility to manage Linux Containers (LXC)
.SH DESCRIPTION
.SS "Usage:"
.IP
lxctl [action] [vmname] [options]
.SH OPTIONS
.TP
\fB\-\-help\fR
Print a breif help message and exists
.TP
\fB\-\-man\fR
Prints the manual page and exits.
.TP
start
Starts container specified in 1st argument
.IP
Required arguments:
.IP
vmname \- name of the container
.TP
stop
Stops container specified in 1st argument
.IP
Required arguments:
.IP
vmname \- name of the container
.TP
create
Creates container.
.IP
Required arguments:
.IP
vmname \- name of the container
.IP
Optional arguments:
.IP
\fB\-\-ipaddr\fR \- IP address of the machine
.IP
\fB\-\-mask\fR/netmask \- network mask of the machine
.IP
\fB\-\-defgw\fR \- default gateway of the machine
.IP
\fB\-\-dns\fR \- primary DNS server
.IP
\fB\-\-ostemplate\fR \- template name, by default it is 'lucid_amd64'
.IP
\fB\-\-config\fR \- path to configuration file, by default /etc/lxc/<container name> is used
.IP
\fB\-\-root\fR \- path to root file system, by default /var/lib/lxctl/<container name> is used
.IP
\fB\-\-addpkg\fR \- list of additional packages (comma\-separated)
.IP
\fB\-\-pkgopt\fR \- list of additional packet manager options (space\-separated, but as one argument)
.IP
\fB\-\-rootsz\fR \- size of logical volume for root FS, by default it is 10G
.IP
\fB\-\-hostname\fR \- sets the hostname of the machine, by default <container name> is used
.IP
\fB\-\-searchdomain\fR \- set a custom searchdomain in /etc/resolv.conf
.IP
\fB\-\-macaddr\fR \- set the custom mac address of the container
.IP
\fB\-\-autostart\fR \- autostart container each reboot host machine
.IP
\fB\-\-no\-save\fR \- do not save yaml config for new container, by default $CONF_PATH/vmname.yaml is used
.IP
\fB\-\-load\fR \- create container from yaml config
.IP
\fB\-\-debug\fR \- show more information about install process
.IP
\fB\-\-tz\fR \- set custom timezone (Europe/Moscow, UTC, etc)
.IP
\fB\-\-empty\fR \- create a clear container for migrate here
.TP
set
Changes container parameters.
.IP
Required arguments:
.IP
vmname \- name of the container
.IP
Optional arguments:
.IP
\fB\-\-rootsz\fR \- increment of size of logical volume for root FS
.IP
\fB\-\-ipaddr\fR \- IP address if the machine
.IP
\fB\-\-mask\fR/netmask \- network mask of the machine
.IP
\fB\-\-defgw\fR \- default gateway of the machine
.IP
\fB\-\-dns\fR \- primary DNS server
.IP
\fB\-\-hostname\fR \- sets the hostname of the machine
.IP
\fB\-\-searchdomain\fR \- set a custom searchdomain in /etc/resolv.conf
.IP
\fB\-\-macaddr\fR \- set the custom mac address if the machine
.IP
\fB\-\-userpasswd\fR user:passwd \- sets password for given user
.IP
\fB\-\-onboot\fR {yes,no} \- makes containet [do not] start at boot
.IP
\fB\-\-tz\fR \- set custom timezone (Europe/Moscow, UTC, etc)
.IP
\fB\-\-cpu\-shares\fR \- sets the CPU share of the container
.IP
\fB\-\-cpus\fR \- sets the CPU cores of the container
.IP
\fB\-\-mem\fR \- sets the memory share of the container (in bytes!)
.IP
\fB\-\-io\fR \- sets the IO share of the container
.TP
freeze
Freezes container
.IP
Required arguments:
.IP
vmname \- name of the container
.IP
unfreeze
.IP
Unfreezes container
.IP
Required arguments:
.IP
vmname \- name of the container
.TP
list
Lists all containers
.IP
Optional arguments:
.IP
\fB\-\-ipaddr\fR \- display with IP addr
.IP
\fB\-\-hostname\fR \- display with hostname.
.IP
\fB\-\-cgroup\fR \- display with cgroup
.IP
\fB\-\-mount\fR \- display with mount point for rootfs
.IP
\fB\-\-diskspace\fR \- display with free/full size
.IP
\fB\-\-all\fR \- display all information
.IP
\fB\-\-raw\fR \- display only vmnames
.IP
migrate Migrate container from localhost to remote host.
.IP
Required arguments
.IP
\fB\-\-vmname\fR \- container name
.IP
\fB\-\-tohost\fR \- to which host we should migrate
.IP
Optional arguments
.IP
\fB\-\-remuser\fR \- remote username for ssh
.IP
\fB\-\-remport\fR \- remote port for ssh
.IP
\fB\-\-remname\fR \- remote container name
.IP
\fB\-\-onboot\fR \- start on boot? 1 or 0
.IP
\fB\-\-userpasswd\fR \- 'user:password' formatted password for user
.IP
\fB\-\-clone\fR \- cloning, a little bit faster and softer then simple migration
.IP
\fB\-\-rootsz\fR \- remote root fs size
.IP
\fB\-\-afterstart\fR \- start local container again after migration
.IP
\fB\-\-cpus\fR \- cpus allocated to container
.IP
\fB\-\-cpu\-shares\fR \- cpu time share of the container
.IP
\fB\-\-mem\fR \- memory limit of the container
.IP
\fB\-\-io\fR \- IO throughput
.IP
\fB\-\-ipaddr\fR \- IP of the remote container
.IP
\fB\-\-searchdomain\fR \- DNS search domain of the container
.IP
\fB\-\-netmask\fR \- network mask
.IP
\fB\-\-defgw\fR \- default gateway
.IP
\fB\-\-dns\fR \- DNS server
.TP
vz2lxc
Migrate VZ\-container from remote host to local LXC container.
.IP
Required arguments
.IP
\fB\-\-vmname\fR \- container name
.IP
\fB\-\-fromhost\fR \- from which host we should migrate
.IP
\fB\-\-remname\fR \- remote container name
.IP
Optional arguments
.IP
\fB\-\-remuser\fR \- remote username for ssh
.IP
\fB\-\-remport\fR \- remote port for ssh
.IP
\fB\-\-onboot\fR \- start on boot? 1 or 0
.IP
\fB\-\-rootsz\fR \- remote root fs size
.IP
\fB\-\-afterstart\fR \- start local container again after migration
.IP
\fB\-\-cpus\fR \- cpus allocated to container
.IP
\fB\-\-cpu\-shares\fR \- cpu time share of the container
.IP
\fB\-\-mem\fR \- memory limit of the container
.IP
\fB\-\-io\fR \- IO throughput
.SH "SEE ALSO"
The full documentation for
.B Version:
is maintained as a Texinfo manual.  If the
.B info
and
.B Version:
programs are properly installed at your site, the command
.IP
.B info Version:
.PP
should give you access to the complete manual.