首页 >>  正文

pleaseplease+choose+one+row

来源:baiyundou.net   日期:2024-09-27

作者:烟圈823215077

前言

pve下创建黑苹果虚拟机主要使用到以下2个项目:

https://github.com/thenickdude/OSX-KVM(可以编译恢复镜像文件)

https://github.com/thenickdude/KVM-Opencore/releases(下载针对pve定制的标准化opencore引导文件)

编译恢复镜像文件

在pve的lxc下编译恢复镜像文件:

apt update && apt 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

不知道怎么在pve下创建lxc容器,可以看我以前的文章:

  1. 140包邮i3-6100u板U(itx)上安装PVE8.1

  2. pve8.1创建lxc容器

  3. lxc(bookworm)下创建docker环境

  4. 使用docker搭建各类nas应用

在宿主pve下:

将恢复镜像文件拷贝至宿主iso目录:

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

下载opencore引导文件

下载opencore引导文件至iso目录:

cd /var/lib/vz/template/iso/

wget https://github.com/thenickdude/KVM-Opencore/releases/download/v20/OpenCore-v20.iso.gz

gzip -d OpenCore-v20.iso.gz

创建黑苹果虚拟机

  • 创建前设置

避免循环引导(宿主pve下):

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

  • 创建VM

1、操作系统:

类别:other

ISO镜像:opencore

2、系统

显卡:Vmware兼容

机器:q35

Qemu代理:勾选

BIOS:UEFI

Pre-Enroll keys(预注册密钥):取消勾选

3、硬盘:

总线:VirtIO Block

缓存:Write Back(不安全)

磁盘大小:50G以上

4、CPU

核心数:2的次幂

类型:penryn

启用NUMA:勾选

5、内存

根据配置情况及需求分配(建议4G以上)

6、网络

模型:VirtIO(半虚拟化)

7、完成初步创建(不勾选创建后启动)

  • 修改VM

1、在创建的VMID下-硬件-添加CD/DVD驱动器-添加恢复镜像

2、回宿主(pve)的ssh下修改配置文件

nano /etc/pve/qemu-server/.conf

a、添加参数:

intel: args: -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -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="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -smbios type=2 -device usb-kbd,bus=ehci.0,port=2 -global nec-usb-xhci.msi=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

b、修改光驱属性:

将2个光驱类文件定义中的media=cdrom改成cache=unsafe

启动虚拟机

  1. 在黑苹果虚拟机控制台点击“Start Now”。

2.左右键选择MacOS Base System,并按回车确认进行安装。

3.等待进度条跑完,这里需要一点时间。

4.在弹出的界面中选择第四项“Disk Utility”,并点击Continue。

5.选择创建的虚拟空磁盘,并点击Erase。

6.修改盘符名称(也可不修改),并点击Erase。

7.完成后,选择Done,并关闭“Disk Utility”界面。

8.选择第二项“Reinstall macOS xxx”,并点击Continue。

9.在弹出的界面中,再次点击Continue。

10.下图选择Agree/Agree两次。

11.选择前面格式化的磁盘,并点击Continue。

12.需要等较长一段时间,进行黑苹果系统的恢复,后续均为傻瓜化操作(注意选择Installer,需重启几次),这里略过。

13.最终将会得到一个黑苹果的虚拟机如下图所示。

至此,黑苹果虚拟机创建完成。

查看文章精彩评论,请前往什么值得买进行阅读互动

","gnid":"9752dc32f5b98b186","img_data":[{"flag":2,"img":[{"desc":"","height":"700","title":"","url":"https://p0.ssl.img.360kuai.com/t012719a3ab7da5cc90.jpg","width":"1080"},{"desc":"","height":"641","title":"","url":"https://p0.ssl.img.360kuai.com/t019dadf8514b8a3f06.jpg","width":"1080"},{"desc":"","height":"307","title":"","url":"https://p0.ssl.img.360kuai.com/t01935e03e82e726e82.jpg","width":"1080"},{"desc":"","height":"419","title":"","url":"https://p0.ssl.img.360kuai.com/t012a0af079f50170f9.jpg","width":"800"},{"desc":"","height":"419","title":"","url":"https://p0.ssl.img.360kuai.com/t016b18d422d347ff1a.jpg","width":"800"},{"desc":"","height":"419","title":"","url":"https://p0.ssl.img.360kuai.com/t0136838eaa9282594b.jpg","width":"800"},{"desc":"","height":"419","title":"","url":"https://p0.ssl.img.360kuai.com/t0188a970d744cd03bd.jpg","width":"800"},{"desc":"","height":"515","title":"","url":"https://p0.ssl.img.360kuai.com/t01e560f031893420e4.jpg","width":"720"},{"desc":"","height":"516","title":"","url":"https://p0.ssl.img.360kuai.com/t01a77357e7fcb281ee.jpg","width":"724"},{"desc":"","height":"516","title":"","url":"https://p0.ssl.img.360kuai.com/t016d3553fa87cdf8df.jpg","width":"726"},{"desc":"","height":"516","title":"","url":"https://p0.ssl.img.360kuai.com/t0198b586b864ce8d6b.jpg","width":"716"},{"desc":"","height":"513","title":"","url":"https://p0.ssl.img.360kuai.com/t0193a20be2f5c2de06.jpg","width":"721"},{"desc":"","height":"510","title":"","url":"https://p0.ssl.img.360kuai.com/t01ee6d9394813120e1.jpg","width":"725"},{"desc":"","height":"511","title":"","url":"https://p0.ssl.img.360kuai.com/t0184e0f2590cba3778.jpg","width":"723"},{"desc":"","height":"662","title":"","url":"https://p0.ssl.img.360kuai.com/t01c874fc37bddea2ab.jpg","width":"1080"},{"desc":"","height":"552","title":"","url":"https://p0.ssl.img.360kuai.com/t01fe313b43d2bdfed7.jpg","width":"1080"},{"desc":"","height":"435","title":"","url":"https://p0.ssl.img.360kuai.com/t017d9ebb230616793b.jpg","width":"1080"},{"desc":"","height":"505","title":"","url":"https://p0.ssl.img.360kuai.com/t01f5c5c15f995062c7.jpg","width":"1080"},{"desc":"","height":"509","title":"","url":"https://p0.ssl.img.360kuai.com/t01c0b3792c28a6f083.jpg","width":"1080"},{"desc":"","height":"552","title":"","url":"https://p0.ssl.img.360kuai.com/t017e4607eceeda60eb.jpg","width":"1080"},{"desc":"","height":"552","title":"","url":"https://p0.ssl.img.360kuai.com/t01190b5fab29aa79b2.jpg","width":"1080"},{"desc":"","height":"592","title":"","url":"https://p0.ssl.img.360kuai.com/t014fc5ad533af7bd5d.jpg","width":"1080"},{"desc":"","height":"598","title":"","url":"https://p0.ssl.img.360kuai.com/t013dba0ac590c8c94e.jpg","width":"1080"},{"desc":"","height":"506","title":"","url":"https://p0.ssl.img.360kuai.com/t010f83314200cf4c83.jpg","width":"1080"},{"desc":"","height":"508","title":"","url":"https://p0.ssl.img.360kuai.com/t012a43c498ccb27b45.jpg","width":"1080"},{"desc":"","height":"508","title":"","url":"https://p0.ssl.img.360kuai.com/t011ccc7b330d7421f4.jpg","width":"1080"},{"desc":"","height":"505","title":"","url":"https://p0.ssl.img.360kuai.com/t01b81bf146a629bb3f.jpg","width":"1080"},{"desc":"","height":"608","title":"","url":"https://p0.ssl.img.360kuai.com/t01f8998f3945051cc9.jpg","width":"1080"}]}],"original":0,"pat":"art_src_1,fts0,sts0","powerby":"pika","pub_time":1705923305000,"pure":"","rawurl":"http://zm.news.so.com/68e721ea4bd8433354ed37c75597df07","redirect":0,"rptid":"3e00c6b14d54feaf","rss_ext":[],"s":"t","src":"什么值得买","tag":[{"clk":"ktechnology_1:apple","k":"apple","u":""}],"title":"pve创建黑苹果

伏曼政3627Please speak chinese,speak chinese please,please speak in chinese这三者有没语法错误?有什么不同? -
广辰炎15129724467 ______[答案] Please speak chinese要加in .即是Please speak in chinese speak chinese please也要加in,而且please前要加,即是speak in chinese ,please please speak in chinese就没有错误

伏曼政3627请勿吸烟用英语到底该如何说是Don't smoking.please!(please don't smoking.) 还是no smoking!如果在会议室等公共场合写如此标语该采用哪种? -
广辰炎15129724467 ______[答案] 一定是No smoking 如果在公共场所写禁烟标语也一定是:No smoking 原因是:从语法上讲 no是形容词,它只能修饰名词或动名词.所以后面需smoking (即smoke的动名词形式) 而not是副词,它只能修饰动词或副词.所以它后面需接的是smoke,...

伏曼政3627祈使句里必须有please吗?那什么时候在祈使句里用please?要详细回答不要百科的! -
广辰炎15129724467 ______ 不是必须的. 如果你的语气比较客气,或者出于礼貌,就可以加please,比如说 Open the door please. 可以是你在敲门时喊的,这样表现出你的态度是比较尊重对方的,可以理解成 能帮我开下门么? 相当于 would you please open the door? please不一定要翻译出"请"这个字,意思表达出来即可.如果不加please,可以是上级对下级、长辈对晚辈、亲戚朋友之间,一方面有命令要求,另一方面也可以是一般意义上的提出希望,没有太多的感情色彩.比如,老师会对我们说 Turn to page 111.

伏曼政3627please的用法please don't do sth和would you please not do sth矛盾吗?为什么一个用don't,一个用not.希望说得详细点, -
广辰炎15129724467 ______[答案] please don't do sth中don't是否定祈使句的开头,would you please not do sth中not本放在would后面.这两者是不矛盾的.

伏曼政3627would you please...could you please...两句区别是什么? -
广辰炎15129724467 ______[答案] Could you please 是can you please 更为礼貌、委婉的说法,并不是过去式,是“能否麻烦你……”、“请你……”的意思,更侧重“能否”及客观情况;回答时要注意,eg:A:“Could you please open the window?”肯定回答 B:“Of course”;否定...

伏曼政3627请教,please notice 和 please note 的用法与区别 -
广辰炎15129724467 ______ 这个用法主要是区分notice 和 note 的区别:1、意思上的区别 please notice 和 please note,都作“请注意”讲时,notice是“在不经意间注意到”,note的意思是“主动去注意”,感觉上note要比notice客气一些.2、用法上的区别 Please note...

伏曼政3627would you please省略pleasewould you please中能省略please吗? -
广辰炎15129724467 ______[答案] 可以,please放在这里,会显得更有礼貌,如果是特别铁的关系,就可以不用说这个词,但有时候不是很熟的人之间,就需要用了,会让听的人心里更舒服

伏曼政3627Please~~把这些句子翻译成英语~~Please1、你是我们的骄傲2、让我们永远记住你3、世界因你而变得美好 -
广辰炎15129724467 ______[答案] 1,You are the pride of us. 2,Let us remember you forever. 3,The world becomes better because of you.

伏曼政3627英语语法Please follow.和 Please come.哪个更好,表示请跟我来的意思? -
广辰炎15129724467 ______[答案] Please follow.比较随意还可以说follow me Please come 或come with me比较书面化

伏曼政3627打电话时,说请稍等,除了用hold on please,a moment please,还有没有其他说法呢?当然一定要适合口语.大家平时都怎么说呢?贴一大堆其他的电话用语... -
广辰炎15129724467 ______[答案] Hang on,please.

(编辑:自媒体)
关于我们 | 客户服务 | 服务条款 | 联系我们 | 免责声明 | 网站地图 @ 白云都 2024