Proxmox PVE 7 Server Installation mit Debian 11 (Bullseye) Unterbau

OS Installation, Konfiguration etc.
Post Reply
User avatar
h3rb3rn
Administrator
Posts: 189
Joined: Mon 9. Feb 2015, 23:29

Proxmox PVE 7 Server Installation mit Debian 11 (Bullseye) Unterbau

Post by h3rb3rn »

aktualisierte Fassung vom 06.01.2022

Es gibt die Möglichkeit Proxmox als Distribution herunterzuladen und direkt zu installieren, will man jedoch ein Software Raid empfiehlt es sich erst ein Debian 11 (bullseye) zu installieren und während der Installationsroutine das gewünschte Software-Raid zu installieren. Anleitung dazu unter https://pve.proxmox.com/wiki/Install_Pr ... 1_Bullseye

Die Anleitung ist sehr gut beschrieben und wenn man Schritt für Schritt vorgeht und genau liest, dann klappt die Installation problemlos.

Meine Hürde war das ich überlesen hatte die /etc/hosts nach Vorgabe in der Anleitung anzupassen, weshalb nachfolgende Schritte fehlschlugen.

Kurzfassung der Anleitung:

Debian 11 (Bullseye) 64 Bit installieren
ISO Download

Vim und SSH Server installieren

Code: Select all

su

Code: Select all

apt update && apt install vim screen sudo gpg dirmngr -y
Paketquelle mit dem Mousepad erweitern sofern vim nicht installierbar ist wegen fehlender Quellen und den oberen Schritt wiederholen



folgenden Inhalt in die /etc/apt/sources.list einfügen

Code: Select all

deb  https://deb.debian.org/debian bullseye main contrib non-free
deb-src  https://deb.debian.org/debian bullseye main contrib non-free

deb  https://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src  https://deb.debian.org/debian bullseye-updates main contrib non-free

deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free

deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
wichtig für das weitere Installieren ist das "deb cdrom[Debian GNU/Linux ..." mit # auskommentiert wird!



Anpassen der /etc/hosts

Code: Select all

vim /etc/hosts
am wichtigsten ist die Ergänzung "pvelocalhost" hinter die localhost IP!

Inhalt der /etc/hosts

Code: Select all

127.0.0.1       localhost.localdomain localhost pvelocalhost
192.168.15.250  proxmox.eigene-domain-einsetzen.tld

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback ip6-pvelocalhost
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


IPv4 Forwading aktivieren

Code: Select all

echo 1 > /proc/sys/net/ipv4/ip_forward
In der /etc/sysctl.conf net.ipv4.ip_forward aktivieren

Code: Select all

net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding=1

Swappiness Einstellung ändern

Code: Select all

sudo mkdir -p /etc/systemd/system.conf.d;
sudo echo "[Manager]" > /etc/systemd/system.conf.d/disable-memory-accounting.conf;
sudo echo "DefaultMemoryAccounting=no" >> /etc/systemd/system.conf.d/disable-memory-accounting.conf;
chmod 644 /etc/systemd/system.conf.d/disable-memory-accounting.conf
In der /etc/sysctl.conf einfügen

Code: Select all

vm.swappiness=0

Optional: Netzwerk Adapter nach eth0 umbenennen

Code: Select all

sudo sed -i 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"/g' /etc/default/grub; sudo grub-mkconfig -o /boot/grub/grub.cfgsudo grub-mkconfig -o /boot/grub/grub.cfg; sudo grub-mkconfig -o /boot/grub/grub.cfg
Mein alter Netzwerkadapter hieß enp4s0 < stattdessen euren setzen

Code: Select all

sudo sed -i 's/enp4s0/eth0/g' /etc/network/interfaces

Code: Select all

reboot


Paketquelle erweitern

Code: Select all

echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list;
echo 'deb http://download.proxmox.com/debian/ceph-pacific bullseye main' > /etc/apt/sources.list.d/ceph.list;
Paketquellen Key download und Verifizierung

Code: Select all

wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
Paketquellen und Sytem aktualisieren

Code: Select all

apt update && apt dist-upgrade
Proxmox VE installieren

Code: Select all

apt-get install proxmox-ve ssh postfix ksm-control-daemon open-iscsi systemd-sysv ssh usbutils
OS-Prober entfernen

Code: Select all

apt remove os-prober
Debian Kernel entfernen

Code: Select all

apt remove linux-image-amd64 linux-image-5.*-amd64
Grub2 aktualisieren

Code: Select all

update-grub


Tipps:

Swap Partition Verhalten anpassen für Memory Sharing zwischen den VMs

VM - Quemu Guest Agent installieren und aktivieren

VirtIO Driver für Windows Gastsysteme

VHD in QCOW Format konvertieren

RDP Server installieren und konfigurieren

Sambaserver installieren und konfigurieren => Windows Netzwerkfreigabe erstellen
Post Reply