]> git.proxmox.com Git - pve-container.git/blame - src/gen-pct-conf-pod.pl
Refactor snapshot_rollback
[pve-container.git] / src / gen-pct-conf-pod.pl
CommitLineData
81bee809
DM
1#!/usr/bin/perl
2
3package main;
4
5use lib '.';
6use strict;
7use warnings;
8use PVE::Tools;
9use PVE::LXC;
10use PVE::PodParser;
11
12my $properties = PVE::LXC::json_config_properties();
13my $format = PVE::PodParser::dump_properties($properties);
14
15my $parser = PVE::PodParser->new();
16$parser->{include}->{format} = $format;
17$parser->parse_from_file($0);
18
19exit 0;
20
21__END__
22
23=head1 NAME
24
25pct.conf - Proxmox VE Container (LXC) configuration files.
26
27=head1 SYNOPSYS
28
29The F</etc/pve/lxc/C<VMID>.conf> files stores container
30configuration, where C<VMID> is the numeric ID of the given VM. Note
31that C<VMID <= 100> are reserved for internal purposes.
32
33=head1 FILE FORMAT
34
35Configuration files use a simple colon separated key/value format. Each
36line has the following format:
37
38 OPTION: value
39
40Blank lines in the file are ignored, and lines starting with a C<#>
41character are treated as comments and are also ignored.
42
43One can use the F<pct> command to generate and modify those files.
44
e576f689
DM
45It is also possible to add low-level lxc style configuration directly, for
46example:
47
48 lxc.init_cmd: /sbin/my_own_init
49
50or
51
52 lxc.init_cmd = /sbin/my_own_init
53
54Those settings are directly passed to the lxc low-level tools.
55
56
81bee809
DM
57=head1 OPTIONS
58
59=include format
60
61=include pve_copyright