一、安装Debian for ARM系统

镜像可从这里下载

https://cdimage.debian.org/debian-cd/current/arm64/iso-cd/

二、配置Hosts

编辑/etc/hosts 文件

修改前两行为如下格式

127.0.0.1 localhost.localdomain localhost
192.168.110.33 debian.pvetest.com debian

其中第二行里,将ip替换为实际的ip,将debian换成自己的hostname,这个hostname将作为PVE的节点名称

修改完可以运行如下命令验证是否修改成功,若修改成功则命令执行结果为刚刚配置的ip地址

hostname --ip-address

三、修改源

  1. 修改软件源

编辑/etc/apt/sources.list 文件,修改对应的网址为:

```shell
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free
```
  1. 添加源

如果是安装pve8,且版本为bookworm,则添加如下源

echo "deb https://mirrors.apqa.cn/proxmox/debian/pve bookworm port">/etc/apt/sources.list.d/pveport.list

添加apt-key

curl https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg  

四、安装Proxmox VE

apt update
apt install -y proxmox-ve

如果安装过程提示:Please select the mail server configuration type that best meets your needs. 则选择No configuration。

安装完毕即可通过主机当前ip加上端口访问,如http://192.168.11.33:8006

用户名为root,密码为Debian系统的root密码


配置固定静态IP

编辑/etc/network/interfaces 文件,配置当前使用的网络接口为静态IP地址,如:

iface vmbr0 inet static
        address 192.168.1.100       # 你想要设置的静态IP地址
        netmask 255.255.255.0       # 子网掩码
        gateway 192.168.1.1         # 网关地址(通常是路由器IP)
        bridge_ports eth0           # 物理网络接口(可以通过ifconfig查询)
        bridge_stp off
        bridge_fd 0
        dns-nameservers 114.114.114.114 8.8.8.8   # DNS 服务器地址
systemctl restart pve-cluster
systemctl restart pveproxy
Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐