pve系统安装和配置

一 安装PVE 系统

1. 下载系统

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.cn/help/debian/
Proxmox源:https://mirrors4.tuna.tsinghua.edu.cn/help/proxmox/

#备份源文件,有问题及时恢复
cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 更换为清华大学源
echo 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://security.debian.org/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.cn/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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值