ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

pve安装黑苹果实录

2021-12-07 13:03:28  阅读:1214  来源: 互联网

标签:multiverse 实录 pve 苹果 aliyun ubuntu main com restricted


一、pve 从模板安装 ubuntu

下载Ubuntu 18.04 LXC模板

1. 从右上角创建CT

配置随意

2. ubuntu更新源:

sudo nano /etc/apt/sources.list

注释掉原有源,替换下面的:

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

3.更新系统,制作Monterey恢复镜像:

sudo apt-get update
sudo apt-get upgrade -y
apt install git qemu-utils make -y
git clone https://github.com/thenickdude/OSX-KVM.git
cd /root/OSX-KVM/scripts/monterey
make Monterey-recovery.img

将制作好的镜像拉出Ubuntu到pve:/var/lib/vz/template/iso/

pct pull 100 /root/OSX-KVM/scripts/monterey/Monterey-recovery.img /var/lib/vz/template/iso/Monterey-recovery.img

4. 进入ISO位置,下载OpenCore:

Shell

cd /var/lib/vz/template/iso/
wget https://github.com/thenickdude/KVM-Opencore/releases/download/v15/OpenCore-v15.iso.gz
gzip -d OpenCore-v15.iso.gz

避免循环引导:

echo "options kvm ignore_msrs=Y" >> /etc/modprobe.d/kvm.conf && update-initramfs -k all -u

5.创建VM

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

1、操作系统:
类别:other
ISO镜像:opencore

2、系统
显卡:Vmware兼容
Qemu代理:勾选
BIOS:UEFI
机器:q35

3、硬盘:
总线:VirtIO
缓存:Write Back(不安全)

4、CPU
核心数:2的次幂
类型:penryn
Numa启用

5、网络
模型:virtIO

添加虚拟机安装盘

6. VM配置地址:nano /etc/pve/qemu-server/103.conf

在这里插入图片描述

修改配置:
1、添加恢复镜像

2、添加参数:

intel:

args: -device isa-applesmc,osk="这里得自己找~" -smbios type=2 -device usb-kbd,bus=ehci.0,port=2 -global nec-usb-xhci.msi=off -cpu host,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc

AMD:

args: -device isa-applesmc,osk="这里得自己找~" -smbios type=2 -device usb-kbd,bus=ehci.0,port=2 -global nec-usb-xhci.msi=off -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off -cpu Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+fma4,+bmi1,+bmi2,+xsave,+xsaveopt,check

3、修改光驱属性

启动修改:
diskutil list
sudo dd if=/dev/dsikxxxx of=/dev/diskxxx

标签:multiverse,实录,pve,苹果,aliyun,ubuntu,main,com,restricted
来源: https://blog.csdn.net/qq_33177268/article/details/121766304

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有