December 9, 2022

Debian11 installs Proxmox VE (PVE) and multi-IP network configuration

Install the latest version of PVE 7 on Debian11, configure the network under multiple IPs of an independent server, bridge the independent IP directly to the virtual subsystem, install Windows 11 in pve and a series of operation notes.

PVE INSTALL

1. Set the hostname
hostnamectl set-hostname pve

2. Modify /etc/hosts
127.0.0.1 localhost
Dedicated server ip pve.proxmox.com pve

3. Install PVE
echo "deb [arch=amd64] http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list

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

apt update && apt full-upgrade

apt install proxmox-ve postfix open-iscsi

4. Clean up the system after reboot
reboot

apt remove linux-image-amd64 'linux-image-5.10*'

update-grub

apt remove os-prober

5. Enable BBR

cat >>/etc/sysctl.conf << EOF
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
EOF

sysctl -p

6. interfaces vmbr0

vi /etc/network/interfaces

auto vmbr1
iface vmbr1 inet static
  address 192.168.1.1
  netmask 255.255.255.0
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  post-up echo 1 > /proc/sys/net/ipv4/ip_forward
  post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o eth0 -j MASQUERADE
  post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o eth0 -j MASQUERADE

and trun on the net.ipv4.ip_forward =1;

7.If you have dedicated IP, not NAT.

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto network card name
iface network card name inet manual


auto vmbr0
iface vmbr0 inet static
     address main IP
     netmask subnet mask
     gateway gateway
     broadcast broadcast address
     bridge-ports NIC name
     bridge-stp off
     bridge-fd 0

Install Win11 in Pve

Win11 iso | virtio iso

download iso
The PVE system image location is stored in the /var/lib/vz/template/iso directory, you only need to download or upload the .iso image to this directory, and then install it through the PVE WEB management interface.

Leave a Reply

Your email address will not be published. Required fields are marked *