Commit graph

26 commits

Author SHA1 Message Date
Christoph Heiss
d9d4cd1f90 configs: drop unused country.dat file from install
I could not find _any_ reference to it in current checkouts of ~every
Proxmox repository.

AFAICT this was copied from pve-installer in pve-installer commit

  f0583fd4e ("copied country.pl form pve-manager")

in 2017 and simply never dropped here afterwards, so it's an unused
leftover.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Link: https://lore.proxmox.com/20250828103621.936206-1-c.heiss@proxmox.com
2025-08-28 23:23:39 +02:00
Thomas Lamprecht
03f4d96ee6 udev config: fix style complaints from udevadm verify
Without this a `udevadm verify` execution warns about:

70-virtual-function-pinning.rules:1 style: whitespace after comma is expected.
70-virtual-function-pinning.rules:1 style: whitespace after comma is expected.
70-virtual-function-pinning.rules:1 style: whitespace after comma is expected.
70-virtual-function-pinning.rules: udev rules have style issues.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-07-29 20:44:59 +02:00
Stefan Hanreich
017359f376 configs: add udev helper for pinning virtual function names
This commmit adds a udev rule that triggers for every network device
that gets added. It checks if the network device is a VF and if the
parent device is pinned. If it is pinned, then generate a new name for
the VF which consists of the pinned name of the parent device, as well
as the index of the VF.

It relies on the network device driver exposing the information via
sysfs, which was the case in my tests for mlx5_core, igb and bnxt_en.

Specifically it checks if a device is a virtual function by checking
for the existence of:

  /sys/class/net/<iface>/device/physfn

It then follows that symlink and infers the vf index by looking at the
virtfnX symlinks in the folder above.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Link: https://lore.proxmox.com/20250722145223.351778-2-s.hanreich@proxmox.com
2025-07-22 17:30:47 +02:00
Thomas Lamprecht
a819411d72 update apt sources for Trixie based release and move to deb822 format
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-06-17 21:58:01 +02:00
Thomas Lamprecht
138cae897a auto-format code using perltidy with Proxmox style guide
using the new top-level `make tidy` target, which calls perltidy via
our wrapper to enforce the desired style as closely as possible.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-06-17 18:22:29 +02:00
Fiona Ebner
d4191941ff vzdump config: add fleecing property string
This makes it clear(er) that fleecing can be configured as a node-wide
default too.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-06-12 12:50:47 +02:00
Christian Ebner
4541af1089 vzdump: add pbs-change-detection-mode to config template
Include the additional parameter to set the `change-detection-mode`
for backup jobs with Proxmox Backup Server target as node wide
configuration, including possible variants to be set.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2024-06-10 13:02:53 +02:00
Thomas Lamprecht
27ba78f8b1 move default link config to drop-in snippet
because otherwise we need to house *all* defaults, like the interface
naming policy ones, too.

This can be fine for one release, but easily overlooked if those, or
other important fall-back defaults change.

A user can now also easier override this, e.g., by simply adding a
drop-in file in the respective /etc path.

Fixes failure to rename network names to "predictable" names on boot
as reported in the forum:

https://forum.proxmox.com/threads/135635/page-6#post-606130

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-18 12:14:20 +01:00
Alexandre Derumier
5caa663f3e ship default link config to disable systemd link mac-policy
since debian 11, systemd is changing behaviour of MAC address of
bridge, but also bond, where the mac is generated randomly instead
inherit from the first slave.

We tried to fix that with ifupdown2, but that seems to produce some
regressions and independent of that there was still another problem.
Namely, if a bridge don't have any slaves, systemd is keeping bridge
offline.

https://www.justinsteven.com/posts/2023/03/26/virtualbox-bridge-ports-none-no-carrier-debian-11/

That mean that a dhcp daemon like kea can't bind on a standalone
bridge (used for s-nat for example), until a tap interface is started.

So, set up a systemd link config to disable the systemd mac policy by
default (this don't break already fixed ifupdown2 mac).

Funnily CentOS && Fedora also disable it already:
https://fedoraproject.org/wiki/Changes/MAC_Address_Policy_none
c895351950/0028-udev-net-setup-link-change-the-default-MACAddressPol.patch (L43)

Before this patch:
```
~ ip a sh dev vmbr1
vmbr1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 10
```

After this patch:
```
~ ip a sh dev vmbr1
vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
```

Signed-off-by: Alexandre Derumier <alexandre.derumier@groupe-cyllene.com>
 [ TL: move to /usr/lib/.. where distro files belong and add comment ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-15 11:29:29 +01:00
Alexander Zeidler
b0c2d8980f fix #3069: vzdump: add property 'performance: pbs-entries-max=N'
configuring pbs-entries-max can avoid failing backups due to a high
amount of files in folders where a folder exclusion is not possible

Signed-off-by: Alexander Zeidler <a.zeidler@proxmox.com>
2023-09-18 16:54:17 +02:00
Thomas Lamprecht
03e1cd62c3 pve sources: update dist to bookworm
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 15:15:06 +02:00
Thomas Lamprecht
147d67c495 makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00
Lukas Wagner
3e631cf444 configs: blacklist: fix typo
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-04-12 13:26:17 +02:00
Fiona Ebner
93880785c8 vzdump: handle new 'performance' property string
Also generalizes the way vzdump property strings are handled for jobs.
Something similar could be done in VZDump.pm, but there the maxfiles
and prune-backups settings are currently coupled, so a dedicated
parse_performance() is used instead. Can be changed once maxfiles is
dropped.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2022-10-10 13:04:17 +02:00
Fabian Ebner
7268fdf25c configs: vzdump: add notes-template default
so users can see that it can be configured here.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-05-12 17:17:56 +02:00
Fabian Ebner
aeadac59b2 configs: vzdump: use prune-backups instead of the deprecated maxfiles
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-08 15:22:52 +02:00
Fabian Ebner
173f8c49ef vzdump: remove deprecated size parameter
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-08 15:22:52 +02:00
Thomas Lamprecht
f0982ad94b buildsys: change upload/config dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-20 20:54:07 +02:00
Thomas Lamprecht
339ff552b1 Revert "buildsys: change upload/repo dist to bullseye"
pushed by mistake, please ignore this and the previous one

This reverts commit 4816c96931.
2021-05-20 20:52:52 +02:00
Thomas Lamprecht
4816c96931 buildsys: change upload/repo dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-20 14:55:53 +02:00
Thomas Lamprecht
bfdc97f35d buildsys: fixup: fully remove pve-apt-hook mentionings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-28 10:57:03 +02:00
Stoiko Ivanov
2e98db915d config: remove pve-apt.conf
Instead of marking all pve-kernel-.* packages as NeverAutoRemove we compile
a list of specific versions to keep.
This functionality is added in the proxmox-ve package (along with the config
for booting kernels with systemd-boot).
2019-06-28 10:57:03 +02:00
Thomas Lamprecht
21732cb0bf update sources.list to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-26 11:17:01 +02:00
Herman van Rink
0e55feeeb6 Remove typo from vzdump.conf 2019-03-11 14:11:53 +01:00
Fabian Grünbichler
1b9008bff2 build: cleanup file generation
should happen in the default 'all' target, not in 'install'.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-10-18 14:15:41 +02:00
Thomas Lamprecht
0d82069367 cleanup: add configs directory and move respective files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-20 13:04:51 +02:00