甲骨文Arm 安装PVE开LXC小鸡完整教程
项目地址
- Pimox7 项目地址:
https://github.com/pimox/pimox7
重装系统为 Debian 11
使用 netboot 重装系统
- 使用 netboot 将系统重装为 Debian 11,具体步骤略。
网络设置
设置为静态 IP
- 使用
ip addr
查看当前内网 IP(例如:10.0.0.201
)。 编辑
/etc/network/interfaces
文件,修改为静态网络配置:iface enp0s3 inet static address 10.0.0.201 netmask 255.255.255.0 gateway 10.0.0.1
重启网络服务:
/etc/init.d/networking restart
- 使用
修改 Hosts
编辑
/etc/hosts
文件添加以下内容(替换为实际公网 IP 和主机名):
公网IP 主机名.proxmox.com 主机名
注释掉其他行,仅保留以下两行:
127.0.0.1 localhost
验证设置
执行以下命令,确保返回服务器公网 IP:
hostname --ip-address
- 若返回错误,安装过程可能会失败。
修改源并安装 PVE
删除原有源
rm /etc/apt/sources.list.d/*.list rm /etc/apt/sources.list
添加新源
echo "# Raspberry Pi Bullseye Repo deb http://archive.raspberrypi.org/debian/ bullseye main # Pimox7 Repo deb https://raw.githubusercontent.com/pimox/pimox7/master/ dev/ # Debian Repo deb http://deb.debian.org/debian bullseye main contrib non-free # Security Updates deb http://security.debian.org/debian-security bullseye-security main contrib non-free" > /etc/apt/sources.list
安装 PVE
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 82B129927FA3303E curl https://raw.githubusercontent.com/pimox/pimox7/master/KEY.gpg | apt-key add - apt update apt install proxmox-ve -y
- 注意:安装过程中会有弹窗,选择默认选项即可。
- 安装完成后重启系统。
访问 PVE
- 浏览器访问
https://IP:8006
即可打开 PVE 管理界面。
- 浏览器访问
解决 AppArmor 报错
重新编译安装 AppArmor
apt install git bison flex autoconf libtool swig gettext -y git clone https://gitlab.com/apparmor/apparmor.git cd apparmor export PYTHONPATH=$(realpath libraries/libapparmor/swig/python) export PYTHON=/usr/bin/python3 export PYTHON_VERSION=3 export PYTHON_VERSIONS=python3 cd ./libraries/libapparmor ./autogen.sh ./configure --prefix=/usr --with-perl --with-python make make install cd ../../binutils/ make make install cd ../parser/ make make install cd ../utils/ make make install
下载 ARM 模板
下载模板
- 访问 Canonical LXD 镜像库,根据系统下载
rootfs.tar.xz
文件。 - 支持多种系统,选择适合的模板即可。
- 访问 Canonical LXD 镜像库,根据系统下载
sync_wait: 34 An error occurred in another process (expected sequence number 7)
__lxc_start: 2074 Failed to spawn container "100"
TASK ERROR: startup for container '100' failed 这是哪里问题?编译错了吗?