一次失败的Oracle ARM小鸡安装PVE过程
Oracle提供免费4C24G的ARM64架构小鸡,前几天开了一台菲尼克斯的。想着看能不能安装proxmox7.1开ipv4 NAT+ ipv6小鸡。
下面开始:
一、DD纯净的Debian11
前文有讲过。Ubuntu/Debian 无VNC一键DD脚本
sudo -i #切换root
curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh #下载脚本,并赋予权限
sudo ./debi.sh --cdn --network-console --ethx --bbr --user root --password <新系统用户密码>
sudo shutdown -r now
二、设置IP
其实和amd小鸡安装过程一样,固定一下IP、设置主机名,不然安装完成重启没网。
vi /etc/hosts
#把你的vps 指向proxmox,内容如下:
127.0.0.1 localhost
VPS公网IP debian.proxmox.com debian
ip addr #运行一遍,记录你小鸡的内网IP
vi /etc/network/interfaces
#修改
source /etc/network/interfaces.d/*
auto enp0s3
iface lo inet loopback
iface enp0s3 inet static
address 10.0.0.XX/24 #你的内网IP
gateway 10.0.0.1
#iface enp0s3 inet dhcp
三、安装
参照:pimox/pimox7: Proxmox V7 for Raspberry Pi (github.com)来
先在Debian sources.list中默认源后面添加 contrib,即:
deb deb http://deb.debian.org/debian bullseye main contrib
加入contrib源主要是安装 zfs软件。
echo "deb https://raw.githubusercontent.com/pimox/pimox7/master/ dev/" > /etc/apt/sources.list.d/pimox.list
curl https://raw.githubusercontent.com/pimox/pimox7/master/KEY.gpg | apt-key add -
apt update
apt install proxmox-ve
安装过程中会断网,等几分钟就可以ssh重新连接了。
重启之后就可以通过https://IP:8006管理了。
四、错误提示
下载ARM64模板、创建CT都没问题,但是启动的时候会报错,无法启动。
ARM64模板下载地址:Index of /images (canonical.com) 目标文件是rootfs.tar.xz
run_apparmor_parser: 919 Failed to run apparmor_parser on "/var/lib/lxc/100/apparmor/lxc-101_<-var-lib-lxc>": apparmor_parser: "lxc-100_</var/lib/lxc>"
apparmor_prepare: 1089 Failed to load generated AppArmor profile
lxc_init: 849 Failed to initialize LSM
__lxc_start: 1857 Failed to initialize container "000"
TASK ERROR: startup for container '100' failed
Google了很久都解决不了。
重新安装apparmor又显示这个错误。
/sbin/apparmor_parser: Unable to replace "/usr/bin/lxc-start". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "lsb_release". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "kmod". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "nvidia_modprobe". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "/usr/sbin/chronyd". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "lxc-container-default". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "lsb_release". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "/usr/bin/lxc-start". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "kmod". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "nvidia_modprobe". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "/usr/sbin/chronyd". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "lxc-container-default". Profile doesn't conform to protocol
Error: At least one profile failed to load
/sbin/apparmor_parser: Unable to replace "snap-update-ns.core". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "snap.core.hook.configure". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "snap-update-ns.core". Profile doesn't conform to protocol
/sbin/apparmor_parser: Unable to replace "snap.core.hook.configure". Profile doesn't conform to protocol
Error: At least one profile failed to load
版权声明:
作者:Lewss
链接:https://www.amzcn.com/thread-040731-1.html
来源:AmzCN – 普通人的普通世界
文章版权归作者所有,未经允许请勿转载。
共有 0 条评论