一 安装PVE 系统
1. 下载系统
- 打开官网地址 https://www.proxmox/en/downloads
- 直接下载最新版系统
2. 使用u盘创建启动盘
- 使用Rufus(https://rufus.ie/)或其他启动盘制作工具,将下载的ISO文件写入一个空的USB闪存驱动器。
3.安装PVE
- 进入bios 使用u盘启动
- 选择“Install Proxmox Virtual Environment”开始安装。
- 跟随安装向导,选择语言、安装类型(自动安装或手动安装)、磁盘分区方案等。
- 设置root用户密码和创建普通用户账户。
- 完成安装后,系统将提示重启。
二.pve基本配置
1.更换源
pve 8.2.2 是基于 debian 12 系统的,他们本地的源有点问题不能下载软件
所以需要更换源
清华大学源
软件源:https://mirrors4.tuna.tsinghua.edu/help/debian/
Proxmox源:https://mirrors4.tuna.tsinghua.edu/help/proxmox/
#备份源文件,有问题及时恢复
cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 更换为清华大学源
echo 'deb https://mirrors.tuna.tsinghua.edu/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://security.debian/debian-security bookworm-security main contrib non-free non-free-firmware' >/etc/apt/sources.list
#备份Proxmox 源
cp /etc/apt/sources.list.d/pve-no-subscription.list /etc/apt/sources.list.d/pve-no-subscription.list.bak
# 更换为清华大学源
echo 'deb https://mirrors.tuna.tsinghua.edu/proxmox/debian/pve bookworm pve-no-subscription' >/etc/apt/sources.list.d/pve-no-subscription.list
更新软件列表
apt update
2. pve 的编辑器难以操作
- 更新PVE, 卸载pve 自带的vim编辑器,重新安装
apt-get update -y
apt-get remove vim-common -y #卸载原有的vim 编辑器
apt-get install vim -y #重新安装vim 编辑器
- 修改 /etc/vim/vimrc.tiny 文件
修改set compatible 为 set nocompatible,并在下一行添加set backspace=2
- vi 编辑器中复制提示: --(insert) VISUAL –
set mouse-=a
三. pve 连wifi
查看网卡 一般无限网卡名字都叫 wlp2s0 类似的名字
ip link show
安装无线网络管理工具
apt update
apt install wpasupplicant wireless-tools
配置无线网络
/etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="YourSSID"
psk="YourPassword"
}
启动wpa_supplicant
wpa_supplicant -B -i wlp1s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
dhclient wlp1s0
设置pve网络
vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto wlp1s0
iface wlp1s0 inet static
address 192.168.31.69/24
gateway 192.168.31.1
bridge-ports enx0826ae3c6416
bridge-stp off
bridge-fd 0