虽然是写给rock5的但是绝大多数arm平台都可以尝试下。
(资料图)
在arm平台使用pve离不开Proxmox-Arm64项目有能力可以给他点个star
地址是 https://github.com/jiangcuo/Proxmox-Arm64
安装教程其实就是pve官方的配置教程以及Proxmox-Arm64的整合版
选着可用的debian以rock5为例,可选的有armbian与瑞莎科技官方的debian,我在介绍视频中使用的是armbian,这次就以官方的debian-server版为例。下载地址 https://github.com/radxa/debos-radxa/releases,我们选择server版本,使用过程中不需要桌面环境。
然后使用balenaEtcher将系统写入到ssd或者micro sd卡,等待烧录完成。
然后上电开机,开机后可以在路由器的后台中找到IP地址或者连接显示器使用ip a来查看ip地址。了
windows 10之后就可以直接使用powershell连接ssh了,官方系统默认是rock密码也是rock,登入后可以根据需要更换密码或者添加新的用户。
ssh连接成功后修改root密码
修改完成后要修改下ssh的配置,添加一行PermitRootLogin yes,然后使用
sudo systemctl restart sshd 重启 sshd来允许root使用ssh登入,最后退出更换root登入。
替换国内镜像源,这里以清华镜像为例
使用vim /etc/apt/sources.list编辑软件源然后复制下面的地址去替换,并保存。
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-freedeb 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-freedeb 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-freedeb https://security.debian.org/debian-security bullseye-security main contrib non-free# deb-src https://security.debian.org/debian-security bullseye-security main contrib non-free
更新软件索引以及软件包
apt update
apt upgrade
修改host与hostname
hostname 位于 /etc/hostname 可以通过编辑该文件或者hostnamectl set-hostname 新的名字 设置
修改host 需要把hostname对应的IP从127.0.0.1改成实际的本机IP,修改完后通过hostname --ip-address 检查,如果返回正确IP就是对了
然后就可以添加Proxmox-Arm64的存储库了,输入下面命令就会将存储库添加到软件源列表中。
echo "deb https://mirrors.apqa.cn/proxmox/ pvearm main">/etc/apt/sources.list.d/foxi.list
然后倒入gpg key
wget https://mirrors.apqa.cn/proxmox/gpg.key | apt-key add
失败的话就换成
apt-key adv --keyserver keys.openpgp.org --recv-keys B859507D6B1F46D3
更新索引以及软件apt update && apt full-upgrade
开始安装pve
apt install ifupdown2
修改静态ip,将图中的192.168.100.178更换为实际ip,192.168.100.1更换为路由器地址即可,并关闭并停止networkManger服务
vim /etc/network/interfaces 对照下图
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl restart networking 重启 然后重新使用ssh连接即可
安装pve以及所需软件时间比较久可以一边喝喝茶打打游戏一边等
apt install proxmox-ve postfix open-iscsi
当跳出邮件配置的时候选着1
看到这个报错的时候,需要修改一下文件,以便安装继续,现在root目录中创建一个tmp目录暂时保存这些文件的数据,安装之后要还原回去。
mkdir /toot/tmp
mv /var/lib/dpkg/info/open-iscsi* /root/tmp/
然后执行 apt install -f
mv /root/tmp/open-iscsi* /var/lib/dpkg/info/ 还移动出来的文件
安装完成在浏览器中打开 https://你的rock 5b的IP:8006
浏览器警告的话点击高级继续访问就行
登入选择中文,用户使用root 密码就是root密码
安装就全部结束了,但是这样的话是虚拟机还无法联网,需要在根据需要调整interfaces配置,这里以桥接为例。vim /etc/network/interfaces 按照下图配置,然后systemctl restart networking 重启网络服务然后就可以看到多了一个虚拟网卡,如果还需要配置net或者添加更多桥接可以在pev中使用网络配置不需要继续用这个配置文件了。
使用虚拟机的适合需要指定使用的cpu核心,目前pve无法混合调用大核与小核如图。
标签:
X 关闭
X 关闭