1.apt-getinstall gnupg2 wget –y
2.加入Proxmox 软件包源
wget -qO -http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg | sudo apt-key add echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription " | sudotee /etc/apt/sources.list.d/buster-pvetest.list
3.apt-getupdate
4.安装编译环境
apt-get install build-essentialasciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzipzlib1g-dev libc6-dev subversion flex uglifyjs p7zip p7zip-full msmtp libssl-devtexinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automakelibtool autopoint device-tree-compiler screen
apt-get install python3-dev python3-sphinx lintian bc bison libdw-devlibiberty-dev libnuma-dev libslang2-dev lz4 rsync libpve-common-perl dh-make docbook5-xml
若是出现libncurses5-dev安装依赖错误,用aptitude安装即可解决
5. Git pve内核源码
git clonegit://git.proxmox.com/git/pve-kernel.git
6. 修改Makefile文件
23行内容 KERNEL_ARCH=x86和之后 修改成如下图所示:
7. 在pve-kernel/debian/rules.d文件目录下生成文件arm64.mk,内容如下
KERNEL_BUILD_ARCH = arm64
KERNEL_HEADER_ARCH = $(KERNEL_BUILD_ARCH)
KERNEL_BUILD_IMAGE = Image
KERNEL_IMAGE_PATH =arch/$(KERNEL_BUILD_ARCH)/boot/${KERNEL_BUILD_IMAGE}
KERNEL_INSTALL_FILE = vmlinuz
8. 修改pve-kernel/debian/rules文件,将rysnc中的tools修改成source,修改结果如下图所示
9. Make all
10.最终编译成功后会生成四个文件包,使用dpkg -i命令安装四个deb包,即可完成pve内核的安装。
linux-tools-{KERNEL_VER}_arm64.deb
linux-tools-5.0-dbgsym_{KERNEL_VER}_arm64.deb
pve-headers-{KERNEL_VER}_arm64.deb
pve-kernel-{KERNEL_VER}_arm64.deb
pve能模拟arm芯片步骤。1、上传arm的iso,ubuntu官网上面下载即可。
2、创建一个VM,"常规"随意,操作系统选linux5.x-2.6kernel,CD不选。
3、系统里BIOS选OVMF(UEFI),EFI磁盘先不添加。磁盘就默认SCSI0。
4、CPU类型选默认,核数也随意,内存大小随意。
5、网络类型选默认virtio,最后点确认。
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)