在debian 11上装pve的失败经历

在debian 11上装pve的失败经历

0. 准备

升级debian

本次将安装proxmox ve 7. 它可以通过镜像从usb启动进行安装,或者安装在一台debian 11系统上。

由于腾讯云不支持从usb启动,必须从debian11上通过ssh操作安装。

腾讯目前镜像只有debian10,因此还需要从10升级到11。

升级debian的操作google上有,本文也保存了一份作为附件。

ps: 腾讯云的镜像源里面没有最新的debian11,使用清华源即可。

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

翻墙

后续安装proxmox ve, 如果不翻墙大概率会在apt install时失败,需要翻墙。

翻墙服务器需要自己买,客户端选择clash。clash使用说明google上有,具体不谈。

同时需要配置apt使用代理.

首先

sudo touch /etc/apt/apt.conf.d/proxy.conf

然后在新文件中写入以下内容:

Acquire {
  HTTP::proxy "http://127.0.0.1:7890";
  HTTPS::proxy "http://127.0.0.1:7890";
}

上文中的8080替换成clash使用的端口即可

磁盘分区

黑石的机器只分了10G的sda1,要重建分区

root@rescue ~ # fdisk /dev/sda

Command (m for help): d
Selected partition 1

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1):
Using default value 1
First sector (2048-199999487, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-199999487, default 199999487):
Using default value 199999487

Partition #1 contains a ext4 signature.
Do you want to remove the signature? [Y]es/[N]o: N

Command (m for help): p

Disk /dev/sda: 102.4 GB, 102399737856 bytes
255 heads, 63 sectors/track, 12449 cylinders, total 199999488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00051eb3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   199999487    99998720   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
# resize2fs /dev/sda1
resize2fs 1.42.5 (29-Jul-2012)
Resizing the filesystem on /dev/sda1 to 24999680 (4k) blocks.
The filesystem on /dev/sda1 is now 24999680 blocks long.
systemctl reboot

1. 安装ProxmoxVE

按此文操作即可

https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_11_Bullseye

也保存了一份附件。

注意在第一步-"Add an /etc/hosts entry for your IP address"时,使用内网的ip地址。这样方便后续加入cluster

2. 显卡分割

失败,mdevctl types没有显示任何vGPU配置

重开

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注