VPS 配置
Wed Dec 17 11:42:49 PM PST 2025
Basic System Information:
---------------------------------
Uptime : 0 days, 0 hours, 43 minutes
Processor : Intel Core Processor (Haswell, no TSX)
CPU cores : 4 @ 3099.996 MHz
AES-NI : ✔ Enabled
VM-x/AMD-V : ✔ Enabled
RAM : 7.6 GiB
Swap : 0.0 KiB
Disk : 73.3 GiB
Distro : Debian GNU/Linux 12 (bookworm)
Kernel : 6.1.0-39-cloud-amd64
VM Type : KVM
IPv4/IPv6 : ✔ Online / ❌ Offline
IPv4 Network Information:
---------------------------------
ISP : OVH SAS
ASN : AS16276 OVH SAS
Host : OVH
Location : Roubaix, Hauts-de-France (HDF)
Country : France
fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/sda1):
---------------------------------
Block Size | 4k (IOPS) | 64k (IOPS)
------ | --- ---- | ---- ----
Read | 80.08 MB/s (20.0k) | 1.35 GB/s (21.1k)
Write | 80.29 MB/s (20.0k) | 1.36 GB/s (21.3k)
Total | 160.38 MB/s (40.0k) | 2.72 GB/s (42.5k)
| |
Block Size | 512k (IOPS) | 1m (IOPS)
------ | --- ---- | ---- ----
Read | 2.16 GB/s (4.2k) | 2.47 GB/s (2.4k)
Write | 2.28 GB/s (4.4k) | 2.64 GB/s (2.5k)
Total | 4.44 GB/s (8.6k) | 5.12 GB/s (5.0k)
iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider | Location (Link) | Send Speed | Recv Speed | Ping
----- | ----- | ---- | ---- | ----
Clouvider | London, UK (10G) | 392 Mbits/sec | 391 Mbits/sec | 4.91 ms
Eranium | Amsterdam, NL (100G) | 391 Mbits/sec | 391 Mbits/sec | 9.29 ms
Uztelecom | Tashkent, UZ (10G) | 372 Mbits/sec | 361 Mbits/sec | 101 ms
Leaseweb | Singapore, SG (10G) | 350 Mbits/sec | 329 Mbits/sec | 165 ms
Clouvider | Los Angeles, CA, US (10G) | busy | busy | 143 ms
Leaseweb | NYC, NY, US (10G) | 374 Mbits/sec | busy | 77.9 ms
Edgoo | Sao Paulo, BR (1G) | 340 Mbits/sec | 351 Mbits/sec | 168 ms
Running GB6 benchmark test... *cue elevator music*
Geekbench 6 Benchmark Test:
---------------------------------
Test | Value
|
Single Core | 1048
Multi Core | 3261
Full Test | https://browser.geekbench.com/v6/cpu/15635773
YABS completed in 12 min 21 sec🧭 0️⃣ 前置条件(非常重要)
- 系统:Debian 12(最小安装)
- 网络:静态 IPv4 /32
- 能 SSH 登录 root
- 未安装 netplan / cloud-init
🧭 1️⃣ 设置主机名(必须最先)
hostnamectl set-hostname vps-bbe34c22
编辑 /etc/hosts:
nano /etc/hosts内容必须是(重点):
127.0.0.1 localhost
91.134.241.223 vps-bbe34c22
::1 localhost ip6-localhost ip6-loopback验证:
hostname -f
getent hosts vps-bbe34c22🧭 2️⃣ 一次性写死网络(安装 PVE 前)
编辑网络配置:
nano /etc/network/interfaces✅ 云 VPS /32 IPv4 标准写法(推荐最终版)
auto lo
iface lo inet loopback
auto ens3
iface ens3 inet static
address 91.134.241.223/32
gateway 91.134.240.1
auto vmbr0
iface vmbr0 inet static
address 10.0.0.1/24
bridge-ports none
bridge-stp off
bridge-fd 0应用(不掉线):
apt install -y ifupdown2
ifreload -a🧭 3️⃣ 更新系统(干净状态)
apt update
apt full-upgrade -y
reboot重新 SSH 登录。
🧭 4️⃣ 添加 Proxmox 官方源(非订阅)
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" \
/etc/apt/sources.list.d/pve.list
导入 key:
wget -qO- https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg \
/etc/apt/trusted.gpg.d/proxmox.gpg
🧭 5️⃣ 安装 Proxmox VE(核心步骤)
apt update
apt install -y proxmox-ve postfix open-iscsi
📌 postfix 选 Local only / No config
此时不会再卡 77%(这是关键差异)。
🧭 6️⃣ 重启进入 PVE 内核
reboot验证:
uname -r
pveversion🧭 7️⃣ 启动核心服务
systemctl enable pve-cluster pvedaemon pveproxy
systemctl start pve-cluster pvedaemon pveproxy如首次 SSL 有问题:
pvecm updatecerts --force🧭 8️⃣ 访问 Web 管理界面
浏览器打开:
https://91.134.241.223:8006
🧭 9️⃣ 配置 DHCP(虚拟机自动获取 IP)
apt install -y dnsmasqnano /etc/dnsmasq.d/vmbr0.conf
iniinterface=vmbr0
bind-interfaces
port=0
dhcp-range=10.0.0.50,10.0.0.200,12h
dhcp-option=3,10.0.0.1
dhcp-option=6,8.8.8.8,1.1.1.1
systemctl enable dnsmasq
systemctl restart dnsmasq