pct.conf(5)
| PCT.CONF(5) | Proxmox VE Documentation | PCT.CONF(5) |
NAME
pct.conf - Proxmox VE Container Configuration
SYNOPSIS
/etc/pve/lxc/<CTID>.conf
DESCRIPTION
The /etc/pve/lxc/<CTID>.conf files stores container configuration, where CTID is the numeric ID of the given container.
Note
IDs < 100 are reserved for internal purposes.
FILE FORMAT
The file uses a simple colon separated key/value format. Each line has the following format:
OPTION: value
Blank lines in the file are ignored, and lines starting with a # character are treated as comments and are also ignored.
One can use the pct command to generate and modify those files.
It is also possible to add low-level LXC-style configuration directly, for example:
lxc.init_cmd: /sbin/my_own_init
or
lxc.init_cmd = /sbin/my_own_init
Those settings are directly passed to the LXC low-level tools.
OPTIONS
arch: <amd64 | arm64 | armhf | i386 | riscv32 | riscv64> (default = amd64)
cmode: <console | shell | tty> (default = tty)
console: <boolean> (default = 1)
cores: <integer> (1 - 8192)
cpulimit: <number> (0 - 8192) (default = 0)
Note
If the computer has 2 CPUs, it has a total of 2 CPU time. Value 0 indicates no CPU limit.
cpuunits: <integer> (0 - 500000) (default = cgroup v1: 1024, cgroup v2: 100)
debug: <boolean> (default = 0)
description: <string>
features: [force_rw_sys=<1|0>] [,fuse=<1|0>] [,keyctl=<1|0>] [,mknod=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]
force_rw_sys=<boolean> (default = 0)
fuse=<boolean> (default = 0)
keyctl=<boolean> (default = 0)
mknod=<boolean> (default = 0)
mount=<fstype;fstype;...>
nesting=<boolean> (default = 0)
hookscript: <string>
hostname: <string>
lock: <backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete>
memory: <integer> (16 - N) (default = 512)
mp[n]: [volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]
acl=<boolean>
backup=<boolean>
mountoptions=<opt[;opt...]>
mp=<Path>
Note
Must not contain any symlinks for security reasons.
quota=<boolean>
replicate=<boolean> (default = 1)
ro=<boolean>
shared=<boolean> (default = 0)
Warning
This option does not share the mount point automatically, it assumes it is shared already!
size=<DiskSize>
volume=<volume>
nameserver: <string>
net[n]: name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,link_down=<1|0>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]
bridge=<bridge>
firewall=<boolean>
gw=<GatewayIPv4>
gw6=<GatewayIPv6>
hwaddr=<XX:XX:XX:XX:XX:XX>
ip=<(IPv4/CIDR|dhcp|manual)>
ip6=<(IPv6/CIDR|auto|dhcp|manual)>
link_down=<boolean>
mtu=<integer> (64 - 65535)
name=<string>
rate=<mbps>
tag=<integer> (1 - 4094)
trunks=<vlanid[;vlanid...]>
type=<veth>
onboot: <boolean> (default = 0)
ostype: <alpine | altlinux | archlinux | centos | debian | devuan | fedora | gentoo | opensuse | ubuntu | unmanaged>
protection: <boolean> (default = 0)
rootfs: [volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]
acl=<boolean>
mountoptions=<opt[;opt...]>
quota=<boolean>
replicate=<boolean> (default = 1)
ro=<boolean>
shared=<boolean> (default = 0)
Warning
This option does not share the mount point automatically, it assumes it is shared already!
size=<DiskSize>
volume=<volume>
searchdomain: <string>
startup: `[[order=]\d+] [,up=\d+] [,down=\d+] `
swap: <integer> (0 - N) (default = 512)
tags: <string>
template: <boolean> (default = 0)
timezone: <string>
tty: <integer> (0 - 6) (default = 2)
unprivileged: <boolean> (default = 0)
unused[n]: [volume=]<volume>
volume=<volume>
COPYRIGHT AND DISCLAIMER
Copyright © 2007-2022 Proxmox Server Solutions GmbH
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/
AUTHOR
Proxmox Server Solutions Gmbh
www.proxmox.com
| Mon Feb 5 17:59:36 UTC 2024 | 7.4.2 |
