部落格標題

LHB阿好伯, 2021/07/16:earth_africa:

tags: ???

sudo nano /etc/apt/sources.list
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
deb http://deb.debian.org/debian bookworm main contrib
deb http://deb.debian.org/debian bookworm-updates main contrib
deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib

# Proxmox VE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

# security updates
deb http://security.debian.org/debian-security bookworm-security main contrib

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

安裝金鑰

如果您從官方 ISO 映像安裝 Proxmox VE,則已經安裝了用於驗證的金鑰。

如果您在 Debian 上安裝 Proxmox VE,請使用下列指令下載並安裝金鑰

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

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

sudo apt-get update
 sudo apt-get install proxmox-ve

Install the Proxmox VE Kernel

First you need to install and boot the Proxmox VE kernel, as some packages depend on specific kernel compile flags to be set or feature extensions (e.g., for apparmor) to be available.

apt update && apt full-upgrade apt install proxmox-default-kernel apt install proxmox-ve postfix open-iscsi chrony systemctl reboot

網路設置

確認並禁用NetworkManager對該接口的管理

打開NetworkManager的配置文件:

sudo nano /etc/NetworkManager/NetworkManager.conf

添加或修改以下內容以禁用對 wlp0s20f3 的管理:

[keyfile]
unmanaged-devices=interface-name:wlp0s20f3

保存並退出編輯器。

重啟NetworkManager服務

sudo systemctl restart NetworkManager

配置網絡接口文件

打開網絡接口配置文件:

sudo nano /etc/network/interfaces

配置 wlp0s20f3 使用靜態IP地址並連接到無線網絡,假設你的SSID是 YourSSID,密碼是 YourPassword:

auto lo
iface lo inet loopback

auto wlp0s20f3
iface wlp0s20f3 inet static
address 192.168.0.118/24
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 8.8.8.8

wpa-ssid YourSSID
wpa-psk YourPassword

重啟網絡服務

sudo systemctl restart networking

驗證連接
使用以下命令查看網絡接口的配置,確認更改已生效並且你已成功連接到無線網絡:
ip addr show wlp0s20f3
嘗試ping一個外部地址來確認你的連接是否正常工作
ping -c 4 google.com

PVE服務器配置

查看所有主機名信息
這個命令將顯示系統的所有主機名信息,包括簡單主機名、FQDN和別名

hostnamectl

編輯 /etc/hosts 文件

sudo nano /etc/hosts

修改文件內容,使其類似於以下示例(根據你的實際IP地址和主機名進行調整):

127.0.0.1 localhost.localdomain localhost
10.13.14.112 debian.pvetest.com debian

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

127.0.0.1 localhost.localdomain localhost:這是本地主機名解析。
10.13.14.112 debian.pvetest.com debian:這是你的PVE節點的IP地址和完全合格域名(FQDN),以及主機名。確保用你自己的IP地址和主機名替換這些值。

更新主機名並重啟相關服務

使用 hostnamectl 更新主機名:

sudo hostnamectl set-hostname pve-node.example.com

重啟系統以應用更改:

sudo reboot

重啟後,使用以下命令驗證主機名和FQDN是否正確配置:

hostname
hostname -f
hostnamectl

刪除預設的 Debian 內核

Proxmox VE 自帶內核,保留 Debian 預設內核可能會導致升級出現問題,例如,Debian 單點版本。 因此,您必須刪除預設的 Debian 內核:

sudo apt remove linux-image-amd64 'linux-image-6.1*'
sudo update-grub

重啟系統以應用更改:

sudo reboot

檢查內核版本

uname -r

你應該看到內核版本與Proxmox VE內核對應的版本號,例如 6.8.8-1-pve。

image

參考網址

https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_12_Bookworm
https://foxi.buduanwang.vip/virtualization/pve/1868.html/

🌟全文可以至下方連結觀看或是補充

全文分享至

https://www.facebook.com/LHB0222/

https://www.instagram.com/ahb0222/

有疑問想討論的都歡迎於下方留言

喜歡的幫我分享給所有的朋友 \o/

有所錯誤歡迎指教

:page_with_curl: 全部文章列表