Proxmox uses its own kernel and therefore its own header files. That command line is for installing Debian headers. I think that the you need to run apt-get install build-essential pve-headers-`uname -r` r8168-dkms
.
I have no experience with building Realtek drivers on Proxmox but uname -r
gives you the version of the current running kernel and its header files come from the pve-headers-<pve-kernel-version> package.
I hope this helps you to build the Realtek drivers but it depends on whether their driver source code supports this kernel version (and Proxmox flavor). The alternative is to ask their support or to buy a cheap known-to-work-out-of-the-box NIC.
I will give that command a whirl --- as I have been working on this for 3 days....about 9 -12 (I have lost track) installations of DEBIAN 11 on this box...and getting everything recognized (no errors in the 'dmesg' for the Bluetooth, and Radeon video). There is a 4-port NIC installed and not having any issues with it - so it seams. The NIC I am fighting with is the on-board one. I want to use that one as the MGMT Port for PROXMOX and leave the other 4 free.
lspci -v
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Root Complex
Subsystem: Hewlett-Packard Company Family 16h Processor Root Complex
Flags: bus master, fast devsel, latency 0
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8400E] (prog-if 00 [VGA controller])
Subsystem: Hewlett-Packard Company Kabini [Radeon HD 8400E]
Flags: bus master, fast devsel, latency 0, IRQ 40
Memory at f0000000 (64-bit, prefetchable) [size=128M]
Memory at f8000000 (64-bit, prefetchable) [size=8M]
I/O ports at f000
Memory at feb00000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [270] Secondary PCI Express
Kernel driver in use: radeon
Kernel modules: radeon, amdgpu
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
Subsystem: Hewlett-Packard Company Kabini HDMI/DP Audio
Flags: bus master, fast devsel, latency 0, IRQ 38
Memory at feb64000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0
DeviceName: Onboard IGD
Flags: fast devsel
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 25
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: fea00000-feafffff [size=1M]
Prefetchable memory behind bridge: 00000000f8900000-00000000f89fffff [size=1M]
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Port (Slot+), MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [b0] Subsystem: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Kernel driver in use: pcieport
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 27
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 0000e000-0000efff [size=4K]
Memory behind bridge: fe900000-fe9fffff [size=1M]
Prefetchable memory behind bridge: 00000000f8800000-00000000f88fffff [size=1M]
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Port (Slot+), MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [b0] Subsystem: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Kernel driver in use: pcieport
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 01) (prog-if 30 [XHCI])
Subsystem: Hewlett-Packard Company FCH USB XHCI Controller
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at feb68000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [50] Power Management version 3
Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [90] MSI-X: Enable+ Count=8 Masked-
Capabilities: [a0] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Latency Tolerance Reporting
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40) (prog-if 01 [AHCI 1.0])
Subsystem: Hewlett-Packard Company FCH SATA Controller [AHCI mode]
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 35
I/O ports at f140
I/O ports at f130
I/O ports at f120
I/O ports at f110
I/O ports at f100
Memory at feb6e000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [60] Power Management version 3
Capabilities: [70] SATA HBA v1.0
Capabilities: [50] MSI: Enable+ Count=1/8 Maskable- 64bit+
Capabilities: [d0] PCI Advanced Features
Kernel driver in use: ahci
Kernel modules: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39) (prog-if 10 [OHCI])
Subsystem: Hewlett-Packard Company FCH USB OHCI Controller
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18
Memory at feb6d000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci-pci
Kernel modules: ohci_pci
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) (prog-if 20 [EHCI])
Subsystem: Hewlett-Packard Company FCH USB EHCI Controller
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 17
Memory at feb6c000 (32-bit, non-prefetchable)
Capabilities: [c0] Power Management version 2
Capabilities: [e4] Debug port: BAR=1 offset=00e0
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39) (prog-if 10 [OHCI])
Subsystem: Hewlett-Packard Company FCH USB OHCI Controller
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18
Memory at feb6b000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci-pci
Kernel modules: ohci_pci
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) (prog-if 20 [EHCI])
Subsystem: Hewlett-Packard Company FCH USB EHCI Controller
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 17
Memory at feb6a000 (32-bit, non-prefetchable)
Capabilities: [c0] Power Management version 2
Capabilities: [e4] Debug port: BAR=1 offset=00e0
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 3a)
Subsystem: Hewlett-Packard Company FCH SMBus Controller
Flags: 66MHz, medium devsel
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
Subsystem: Hewlett-Packard Company FCH Azalia Controller
Flags: bus master, slow devsel, latency 32, IRQ 16
Memory at feb60000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
Subsystem: Hewlett-Packard Company FCH LPC Bridge
Flags: bus master, 66MHz, medium devsel, latency 0
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0
Flags: fast devsel
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 1
Flags: fast devsel
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 2
Flags: fast devsel
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 3
Flags: fast devsel
Capabilities: [f0] Secure device <?>
Kernel driver in use: k10temp
Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 4
Flags: fast devsel
Kernel driver in use: fam15h_power
Kernel modules: fam15h_power
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 5
Flags: fast devsel
01:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
Subsystem: Hewlett-Packard Company Ethernet 1Gb 4-port 331T Adapter
Flags: bus master, fast devsel, latency 0, IRQ 24
Memory at f89b0000 (64-bit, prefetchable) [size=64K]
Memory at f89a0000 (64-bit, prefetchable) [size=64K]
Memory at f8990000 (64-bit, prefetchable) [size=64K]
Expansion ROM at feaa0000 [disabled] [size=128K]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data
Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [a0] MSI-X: Enable+ Count=17 Masked-
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Device Serial Number 00-00-ac-16-2d-80-e0-dc
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Kernel driver in use: tg3
Kernel modules: tg3
01:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
Subsystem: Hewlett-Packard Company Ethernet 1Gb 4-port 331T Adapter
Flags: bus master, fast devsel, latency 0, IRQ 36
Memory at f8980000 (64-bit, prefetchable) [size=64K]
Memory at f8970000 (64-bit, prefetchable) [size=64K]
Memory at f8960000 (64-bit, prefetchable) [size=64K]
Expansion ROM at fea80000 [disabled] [size=128K]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data
Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [a0] MSI-X: Enable- Count=17 Masked-
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Device Serial Number 00-00-ac-16-2d-80-e0-dd
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Kernel driver in use: tg3
Kernel modules: tg3
01:00.2 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
Subsystem: Hewlett-Packard Company Ethernet 1Gb 4-port 331T Adapter
Flags: bus master, fast devsel, latency 0, IRQ 24
Memory at f8950000 (64-bit, prefetchable) [size=64K]
Memory at f8940000 (64-bit, prefetchable) [size=64K]
Memory at f8930000 (64-bit, prefetchable) [size=64K]
Expansion ROM at fea40000 [disabled] [size=256K]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data
Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [a0] MSI-X: Enable- Count=17 Masked-
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Device Serial Number 00-00-ac-16-2d-80-e0-de
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Kernel driver in use: tg3
Kernel modules: tg3
01:00.3 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
Subsystem: Hewlett-Packard Company Ethernet 1Gb 4-port 331T Adapter
Flags: bus master, fast devsel, latency 0, IRQ 36
Memory at f8920000 (64-bit, prefetchable) [size=64K]
Memory at f8910000 (64-bit, prefetchable) [size=64K]
Memory at f8900000 (64-bit, prefetchable) [size=64K]
Expansion ROM at fea00000 [disabled] [size=256K]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data
Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [a0] MSI-X: Enable+ Count=17 Masked-
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Device Serial Number 00-00-ac-16-2d-80-e0-df
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Kernel driver in use: tg3
Kernel modules: tg3
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Flags: bus master, fast devsel, latency 0, IRQ 29
I/O ports at e000
Memory at fe900000 (64-bit, non-prefetchable) [size=4K]
Memory at f8800000 (64-bit, prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
Capabilities: [170] Latency Tolerance Reporting
Kernel driver in use: r8168
Kernel modules: r8168