├── .gitattributes ├── README.md ├── Snippings ├── 574654.PNG ├── Annotation 2019-08-18 212341.png ├── Annotation 2019-08-18 212424.png ├── Annotation 2019-08-18 212425.png ├── Capture10.PNG ├── Capture11.PNG ├── Capture12.PNG ├── Capture13.PNG ├── Capture14.PNG ├── Capture15.PNG ├── Capture2.PNG ├── Capture3.PNG ├── Capture4.PNG ├── Capture5.PNG ├── Capture6.PNG ├── Capture7.PNG ├── Capture8.PNG ├── Capture9.PNG ├── Rufus_conf.PNG ├── apple-id │ ├── 1.PNG │ ├── 10.PNG │ ├── 11.PNG │ ├── 12 - everymac - Wrong.png │ ├── 13 - everymac - Right.png │ ├── 2.PNG │ ├── 3.PNG │ ├── 4.PNG │ ├── 5.PNG │ ├── 6.PNG │ ├── 7 - Copy.PNG │ ├── 7.PNG │ ├── 8.PNG │ └── 9.PNG ├── cpu.PNG ├── graphics1.PNG ├── graphics2.PNG ├── macOS-setup │ ├── i18n-1.PNG │ ├── i18n-2.PNG │ ├── i18n-3.PNG │ ├── i18n.PNG │ ├── macos_setup-1.PNG │ ├── macos_setup-2.PNG │ ├── macos_setup-3.PNG │ └── macos_setup-4.PNG ├── macos-install │ ├── diskutility.PNG │ ├── diskutility_diskerase.PNG │ ├── macos_install.PNG │ └── macos_start.PNG ├── motherboard.PNG ├── networkard-0.PNG ├── networkcard-1.png └── nvidia │ ├── 0.PNG │ ├── 1.PNG │ ├── 10.PNG │ ├── 11.PNG │ ├── 12.PNG │ ├── 13.PNG │ ├── 14.PNG │ ├── 15.PNG │ ├── 16.PNG │ ├── 17.PNG │ ├── 18.PNG │ ├── 2.PNG │ ├── 3.PNG │ ├── 5.PNG │ ├── 6.PNG │ ├── 7.PNG │ ├── 8.PNG │ ├── 9.PNG │ ├── t-1.PNG │ └── t-2.PNG └── iommu.sh /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 要求 2 | 1. 主板支持VT-d和VT-x 3 | 3. 一张独立显卡,以及支持集显的CPU 4 | 4. 用户需要对Linux 系统有一定了解 5 | 5. 分配给客户机的 GPU 的 ROM 必须支持 UEFI 6 | 5. 多信号源显示器,或多个显示器(多条视频线) 7 | 8 | 9 | # 本人电脑配置 10 | 显卡:GTX1070 11 | 主板:华硕玩家国度 Z270-GAMING(UEFI,CSM关闭) 12 | 处理器:i7-6700K 13 | 内存:16G * 2 (DDR4) 14 | (如果主板是与我的相似的话,是最好的) 15 | 16 | ![GPU_1](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/graphics1.PNG) 17 | 18 | ![GPU-2](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/graphics2.PNG) 19 | 20 | ![CPU](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/cpu.PNG) 21 | 22 | ![MOTHERBOARD](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/motherboard.PNG) 23 | 24 | # 写在(伪)最前 25 | 26 | UP 主还只是一位高中生,由于时间以及能力原因,我不可能能够回答所有的问题(可能你们的问题我一个都回答不来,当然如果我能帮一下的话我会尽力的)。 27 | 如果可以的话,厚着脸皮求个点赞呗(我知道这个视频的制作水平(也包括这份文档))远远差过其他UP 主的视频,但我确实是尽力了,就当我求你们了呗(所以才没求投币(当然如果你想的话更欢迎,嘻嘻嘻)))。 28 | 如果有问题的话,请在评论区或弹幕内提醒我,我会抽空更新这个文档的(当然视频就不太可能更新了) 29 | 请各位不要喷我,我真的是尽力了(我承认我自己仍然对QEMU 和虚拟系统管理器仍然还是在一知半解的状态,我也是一边安装一边学(我也承认这也是我第一次使用QEMU))。 30 | 最后谢谢各位了!! 31 | 32 | # 优劣 33 | 34 | ## 优点 35 | 1. 不需要再对clover 进行大修改即可运行N 卡 36 | 2. 恢复方便,就算把EFI 分区弄坏了也能直接恢复 37 | 3. 备份方便,可以直接拷贝硬盘文件走 38 | (好了我编不出来了) 39 | 40 | ## 缺点 41 | 1. 对主板的虚拟化的各项功能有较高要求 42 | 2. 多显示屏,要求多次切换显示器信号源 43 | 3. 需要CPU 支持集显(其实不支持也是可以的,但是本方法是针对有集显的用户的 44 | 4. 无法使用DDR4 内存,降为DDR3 45 | 46 | **不过你都已经点进来了,对吧** 47 | 48 | 49 | # 什么是KVM & QEMU 50 | KVM: 51 | > 基于内核的虚拟机(英语:Kernel-based Virtual Machine,縮 52 | >寫為KVM)是一种用於Linux內核中的虛擬化基礎设施,可將 53 | >Linux內核轉化為一個虚拟机监视器。KVM于2007年2月5日被 54 | >導入Linux 2.6.20核心中。KVM需要支持硬件虚拟化拓展特 55 | >性的处理器。 56 | >KVM 起 初 支 持 x86 平 台 处 理 器 并 随 后 被 移 植 到 了 57 | >S/390、PowerPC、和IA-64平台上。在3.9内核合并时也导 58 | >入了ARM移植版。 59 | >诸多客户操作系统支持KVM,包括Linux的诸多发行版、 60 | >BSD、Solaris、Windows、Haiku、ReactOS、Plan 9、AROS研 61 | >究操作系统和OS X。除此之外,还支持Android 2.2、 62 | >GNU/Hurd 63 | >(Debian K16)、Minix 3.1.2a、Solaris 10 U3和 64 | >Darwin 8.0.1,而其他操作系统或新版操作系统都支持KVM, 65 | >仅仅存在一些限制而已。 66 | >VirtIO 半 虚 拟 化 在 Linux 、 OpenBSD 、 FreeBSD 、 67 | >NetBSD、Windows上支持对部分设备的半虚拟化。这项特 68 | >性支持半虚拟化网卡、半虚拟化磁盘控制器、用于调整客 69 | >户端内存使用的气球设备(Balloon device)和使用獨立計算環 70 | >境簡單協議驱动程序的VGA图形接口。 71 | 72 | 73 | QEMU 74 | >QEMU(quick emulator)是一款由Fabrice Bellard等人编写的免费的可 75 | >执 行 硬 件 虚 拟 化 的 ( hardware virtualization ) 开 源 托 管 虚 拟 机 76 | >(VMM)。 77 | >其与Bochs,PearPC类似,但拥有高速(配合KVM),跨平台的特性。 78 | >QEMU是一个托管的虚拟机镜像,它通过动态的二进制转换,模拟 79 | >CPU,并且提供一组设备模型,使它能够运行多种未修改的客户机 80 | >OS,可以通过与KVM(kernel-based virtual machine开源加速器)一起 81 | >使用进而接近本地速度运行虚拟机(接近真实电脑的速度)。 82 | >QEMU还可以为user-level的进程执行CPU仿真,进而允许了为一种架构 83 | >编译的程序在另外一种架构上面运行(藉由VMM的形式)。 84 | 85 | (没错我全在维基百科上抄的) 86 | 87 | # 安装 88 | 89 | ## S1:将视频输出线接入主板的口上 90 | 91 | ## S2:在自己的主板里启用相应的虚拟化选项 92 | 93 | 详细看视频 94 | 95 | ## S3:安装Ubuntu 96 | 1.进入 https://ubuntu.com/download/desktop 下载Ubuntu 安装镜像(我选择了19.04) 97 | 2.使用一款自己顺手的U盘启动制作工具(推荐Rufus) 98 | 这里给大家看一下我的配置 99 | ![Rufus_conf](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/Rufus_conf.PNG) 100 | 101 | 3.开始安装Ubuntu(最好UEFI) 102 | 103 | ## S4:配置环境 104 | ### 安装软件 105 | 先安装git 106 | ```shell 107 | sudo apt install -y git 108 | git clone https://github.com/foxlet/macOS-Simple-KVM.git 109 | ``` 110 | 配置python 环境,顺便下载镜像 111 | ```shell 112 | sudo apt install -y python python3 python-pip python3-pip 113 | pip3 install click request 114 | pip install click request 115 | cd macOS-Simple-KVM 116 | ./jumpstart.sh --high-sierra 117 | ``` 118 | 再安装KVM/QEMU 需要的软件 119 | ```shell 120 | sudo apt install -y virt-manager qemu-kvm qemu libvirt-daemon-system libvirt-clients ovmf bridge-utils 121 | ``` 122 | 加入kvm 用户组 123 | ```shell 124 | sudo adduser `id -un` kvm 125 | ``` 126 | 启动libvirt 服务 127 | ```shell 128 | sudo systemctl enable libvirtd 129 | sudo systemctl start libvirtd 130 | ``` 131 | ## 配置安装基本macOS 132 | 确认上面几步已经完成的,重启 133 | 打开虚拟系统管理器(在活动里搜索,关键词:virt-manager) 134 | 可以看到以下界面 135 | ![virt-manager_without](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/Capture10.PNG) 136 | 137 | 在终端内,将当前工作文件夹切换到macOS-Simple-KVM 里,执行 138 | ```shell 139 | sudo ./make.sh --add 140 | ``` 141 | 可以看到虚拟系统管理器出现一个新的虚拟机 142 | ![virt-manager_with](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/Capture11.PNG) 143 | 144 | ### 创建虚拟硬盘 145 | 146 | ```shell 147 | qemu-img create -f qcow2 MyDisk.qcow2 [disk_size]G 148 | ``` 149 | 其中[disk_size] 里填虚拟硬盘大小 150 | 151 | 接着,选定该虚拟机,双击,在选项卡下找到一个带‘i’ 字样的图标,如图 152 | ![virtmanager_i1](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/Capture13.PNG) 153 | 154 | 单击“选定“选择或创建自定义存储”并在下方找到“管理”,并再选择“本地浏览”,找到刚才创建的虚拟硬盘,并选定它 155 | 156 | ### 更改网卡配置 157 | 158 | 找到旁边有NIC 字样的选项卡,按下图调整 159 | ![networkard-0](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/networkard-0.PNG) 160 | 161 | ![networkcard-1](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/networkcard-1.png) 162 | 163 | 164 | ### 启动虚拟机 165 | 166 | 单击’i'字样右侧的像播放键的图标,再单击同一栏最左边的图标,启动后clover boot manager 内直接回车 167 | 168 | 169 | ### 安装macOS 170 | 来到这个界面(该界面唯一的区别是截图上的Install 应为Reinstall,其它无改变)后 171 | 172 | ![macos_install](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macos-install/macos_install.PNG) 173 | 174 | 点击 Disk Utility, 然后在侧边栏选择你要安装的硬盘(截图与实际会有一些不同,可以看大小大概知道要安装的硬盘) 175 | 176 | ![diskutility](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macos-install/diskutility.PNG) 177 | 178 | 单击Erase 179 | 180 | ![diskutility_diskerase](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macos-install/diskutility_diskerase.PNG) 181 | 182 | 按自己需求改名,接着按Erase(不要改其它内容) 183 | 184 | 然后关闭Disk Utility 185 | 186 | ![macos_install](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macos-install/macos_install.PNG) 187 | 188 | 选择Reinstall macOS (该截图与实际不符) 189 | 190 | 来到以下界面![macos_start](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macos-install/macos_start.PNG) 191 | 192 | 接下来就接受许可协议,选择安装的硬盘(分区),接着一路下一步 193 | 194 | 开始安装 195 | 196 | ### 配置macOS 197 | 198 | 在这里注意一下,在其它设备上试过选择在上下滑动时死机,建议直接选第一个 199 | 200 | ![macos_setup-1](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macOS-setup/macos_setup-1.PNG) 201 | 202 | 下面就不贴图片了 203 | 204 | 205 | 206 | 但是 207 | 208 | **不要登录,不要登录,不要登录** 209 | 210 | 现时 211 | 212 | **不要使用任何苹果的在线服务,不要使用任何苹果的在线服务,不要使用任何苹果的在线服务** 213 | 214 | 其它按需更改 215 | 216 | #### 改变地区与语言设置 217 | 218 | 进入桌面后,打开设置 219 | 220 | ![i18n](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macOS-setup/i18n.PNG) 221 | 222 | 选择Language & Region 223 | 224 | ![i18n-1](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macOS-setup/i18n-1.PNG) 225 | 226 | 按下图改变地区的设置 227 | 228 | 在界面中找到“+”键,添加简体中文 229 | 230 | ![i18n-2](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macOS-setup/i18n-2.PNG) 231 | 232 | 如果要使用中文的话选择右边的选项,如果要使用英文的话,选左边 233 | 234 | ![i18n-3](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/macOS-setup/i18n-3.PNG) 235 | 236 | **基本安装结束** 237 | 238 | ## S4:配置显卡直通 239 | 240 | ### 下载Web Driver 241 | 242 | 打开 http://www.macvidcards.com/drivers.html ,拉到最下面 243 | 找到下图的驱动,双击下载 244 | 245 | ![1](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/1.PNG) 246 | 247 | 248 | 之后用U 盘将该驱动送到macOS 上 249 | 250 | 在虚拟机中插入U 盘的教程如下: 251 | 252 | ![t-1](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/t-1.PNG) 253 | 254 | 选择“添加硬件”,在弹出的窗口中选择”USB 主机设备“,同时选择你的U 盘,最后按“完成”,如下图![t-2](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/t-2.PNG) 255 | 256 | 然后就应该可以在macOS 上打开下载的驱动文件了 257 | 258 | ### 安装 Web Driver 259 | 260 | 打开安装文件 261 | 262 | ![3](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/3.PNG) 263 | 264 | 一路下一步 265 | 266 | 如遇到以下窗口 267 | 268 | ![5](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/5.PNG) 269 | 270 | 选择左边那个选项 271 | 272 | ![6](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/6.PNG) 273 | 274 | 划红线的能点的都点上 275 | 276 | 结束安装后,让它重启,等它重启完后再关机 277 | 278 | ### 配置显卡直通 279 | #### 配置 280 | 执行 281 | ``` 282 | sudo nano /etc/default/grub 283 | ``` 284 | 在该配置文件内找到下图划蓝线这一行 285 | 286 | ![7](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/7.PNG) 287 | 288 | 加上这些字段```nouveau.modeset=0 rd.driver.blacklist=nouveau intel_iommu=on iommu=pt vfio-pci.ids=``` 289 | 290 | (题外话,官方的文档上是要求把intel_iommu=on iommu=pt vfio-pci.ids= 加到GRUB_CMDLINE_LINUX=" "(也就是截图的下一行)里的,但我没看清楚,但是加到这里也好像没什么问题) 291 | 292 | 293 | 294 | 再打开一个终端窗口,执行```lspci -nn``` ,以我的电脑为例 295 | 296 | ![9](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/9.PNG) 297 | 298 | 找到你的显卡,在后面找到设备码,在我这里的例子是10de:1b81 299 | 300 | 同时给显卡板载声卡也给直通过去,同样的操作,在我这里的例子是10de:10f0 301 | 302 | 把这两个码复制粘贴到刚才的等号后面,中间使用逗号分隔 303 | 304 | 贴上我的例子 305 | 306 | ![8](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/8.PNG) 307 | 308 | 接着Ctrl + x ,Y 键保存退出,运行 309 | ```shell 310 | sudo update-grub 311 | ``` 312 | 313 | 完成后重启 314 | 315 | #### 检查 316 | 317 | 打开终端,下载一个叫iommu.sh 的脚本(可在本仓库内找到) 318 | 319 | 运行```chmod a+x ./iommu.sh``` (假设你的脚本就在当前工作文件夹内), 320 | 321 | 接着运行 322 | 323 | ```shell 324 | ./iommu.sh 325 | ``` 326 | 327 | 贴上我的运行后的例子 328 | 329 | ![10](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/10.PNG) 330 | 331 | 332 | 333 | 如图,可以看到再每一行开头前都可以找到 IOMMU Group N,接着找到你的显卡,看其对应的组号(本例中为1)接着上下看一下有没有其它设备,如果就像本例中的只有一个PCI bridge(这个东西可以忽略)是你没有见过的,那么就说明直通成功了,如果还有除上述设备的其它设备,那么你就要考虑放弃了(可以考虑使用ACS Override,但那很复杂,具体可以参考https://passthroughpo.st/mac-os-vm-guide-part-2-gpu-passthrough-and-tweaks/ ,拉到最下面Troubleshooting 这一节中的Multiple PCI devices in the same IOMMU group 来寻求更多帮助) 334 | 335 | #### 在虚拟机中设置显卡驱动 336 | 337 | ##### macOS 中设置Web Driver 338 | 339 | 直通成功后(恭喜你), 340 | 341 | 再次打开虚拟机,找到在上面那一栏的如图示的图标(已划红线),单击 342 | 343 | ![11](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/11.PNG) 344 | 345 | 再单击在下图中鼠标选择的选项 346 | 347 | ![12](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/12.PNG) 348 | 349 | 输密码,在以下对话框内选择“Not Now” ,接着手动关机 350 | 351 | ![14](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/14.PNG) 352 | 353 | 354 | 355 | 接着,请再找一条视频线从显卡上的接口接到显示器(不管是另一个还是原来的)上 356 | 现在顺便找另一个鼠标(USB) 357 | 358 | #### 在虚拟系统管理器中设置显卡直通 359 | 360 | 移除下列两个设备 361 | 362 | ![15](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/15.PNG) 363 | 364 | 365 | 366 | 将你的显卡添加进来,选择添加硬件,找到PCI 主机设备,在左侧的设备列表中找到你的显卡以及板载显卡的声卡,依次添加 367 | 368 | ![18](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/18.PNG) 369 | 370 | 接着参考上面的U 盘插入虚拟机的教程,**先将刚才的U 盘移除** 371 | 372 | **再**将刚才找的鼠标和你的键盘以USB 设备形式添加, 373 | 374 | 移除安装盘(硬盘序号可能不对,但文件名“BaseSystem.img" 还是一样) 375 | 376 | ![17](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia\17.PNG) 377 | 378 | 接着开机 379 | 380 | ![16](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/nvidia/16.PNG) 381 | 382 | 在该界面上,按Enter 键 383 | 384 | 接着**立即**(划重点)将显示器的信号源切换到你的显卡所接的信号线所属的信号上 385 | 386 | 稍等片刻,如果还有闪屏的现象,参阅上面的”macOS 中设置Web Driver“ 节再切换一次,但略有不同的是这次**直接选择重启**而不是手动关机后再开机,**并且不要更改显示器信号源** 387 | 388 | 在输入密码界面登录时若没有闪屏现象,同时也可以在苹果图标那里打开关于本机,可以看到自己的独显,那么就说明 389 | 390 | **该黑苹果已经可以进行基本日常工作**(U 盘暂时无法使用) 391 | 392 | 截至现在 393 | **不要使用任何苹果的在线服务** 394 | **不要使用任何苹果的在线服务** 395 | **不要使用任何苹果的在线服务** 396 | 397 | ## S5:Apple ID 设置 398 | 399 | 首先执行```sudo spctl --master-disable``` 以允许来自所有来源的应用程序 400 | 401 | 在https://mackie100projects.altervista.org/ 下载Clover Configurator(以下简称CCV) 402 | 403 | 打开刚刚下载的CCV,在侧边栏里选择”Mount EFI“ 404 | 405 | ![1](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/1.PNG) 406 | 407 | 在下方的EFI Partitions 中也应该有两个选择,两个都挂载,等会儿看一下哪个是对的 408 | 409 | ![2](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/2.PNG) 410 | 411 | 挂载成功以后,单击旁边的Open Partition,如果分区内存在EFI\Clover 一系列文件夹的话,说明就是这个盘 412 | 413 | ![3](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/3.PNG) 414 | 415 | 打开到EFI/Clover 文件夹后,打开config.plist 文件(如果不是以CCV 打开,则右键打开方式,再不行直接拖进CCV 的窗口) 416 | 417 | 选择侧边栏上的SMBIOS ,单击红色框,选择与你最相似的机器(不用死抠) 418 | 419 | ![5](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/5.PNG) 420 | 421 | ![6](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/6.PNG) 422 | 423 | 单击红框的按钮 424 | 425 | ![7](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/7.PNG) 426 | 427 | 输完验证码后,若出现以下内容,则说明过了,如果出现一台mac 电脑的话,请再上图的Serial Number 旁边再按一下Generate New,再重复一遍 428 | 429 | ![9](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/9.PNG) 430 | 431 | 接着再按下图红框按钮 432 | 433 | ![7 - Copy](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/7%20-%20Copy.PNG) 434 | 435 | (接下来的内容全在https://www.tonymacx86.com/threads/an-idiots-guide-to-imessage.196827/ 抄的) 436 | 437 | 出现以下内容,也是再按Generate Now 再按Check Coverage 按钮再来一次 438 | 439 | ![12 - everymac - Wrong](https://www.tonymacx86.com/media/06-everymac-wrong.187074/full?d=1470318026) 440 | 441 | 出现以下内容说明成功![13 - everymac - Right](https://www.tonymacx86.com/media/07-everymac-right.187075/full?d=1470318026) 442 | 443 | 保存退出 444 | 445 | 接着打开虚拟机管理界面,选择硬件详情![10](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/10.PNG) 446 | 447 | 选择NIC 开头的选项 448 | 449 | ![11](https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/master/Snippings/apple-id/11.PNG) 450 | 451 | 将右侧中的勾选框中的active 给取消掉,应用,即可断网(开网即相反) 452 | 453 | 打开终端,执行(将[username] 替换成你的用户名) 454 | 455 | ```shell 456 | cd /Users/[username]/Library/Caches 457 | sudo rm -rf com.apple.iCloudHelper com.apple.imfoundation.IMRemoteURLConnectionAgent com.apple.Message 458 | 459 | cd .. 460 | cd ./Preferences 461 | sudo rm -rf com.apple.iChat.* com.apple.icloud.* com.apple.ids.service com.apple.imagent.* com.apple.imessage.* com.apple.imservice.* 462 | ``` 463 | 464 | 重启后开网,在**设置**里登录苹果账号 465 | 466 | 467 | 468 | ## S6 evdev 设置 469 | 470 | 关闭虚拟机 471 | 472 | 打开Ubuntu 上的终端 473 | 474 | 键入 475 | 476 | ``` 477 | ls /dev/input/by-id 478 | ``` 479 | 480 | 找到你要选的设备,将其设备名替换[input device id] 481 | 482 | ```shell 483 | sudo cat /dev/input/by-id/[input device id] 484 | ``` 485 | 486 | 移动你刚才选的设备(是键盘的就随便敲几下键盘,是鼠标的就移动一下),如果有乱码输出,则说明成功 487 | 488 | 在另一个终端内键入 489 | 490 | ```shell 491 | sudo EDITOR=nano virsh edit win10 492 | ``` 493 | 494 | 找到相似的地方(看视频你才能知道复制粘贴到哪里) 495 | 496 | ```xml 497 | 498 | 499 | 500 | 501 | ``` 502 | 503 | 将刚刚的鼠标名和键盘名替换MOUSE_NAME 以及KEYBOARD_NAME (不要调换) 504 | 505 | 将[username] 替换成你的用户名 506 | 507 | (第1、2行的命令不确定是否要执行,反正也花不了多少时间) 508 | 509 | ```shell 510 | sudo usermod -a -G input [username] 511 | sudo gpasswd -a [username] input 512 | sudo usermod -a -G input root 513 | sudo gpasswd -a root input 514 | sudo systemctl stop apparmor 515 | sudo systemctl restart libvirtd 516 | sudo systemctl disable apparmor 517 | ``` 518 | 519 | 520 | ## S7:Have Fun!!! 521 | 522 | 523 | # 参考 524 | 525 | https://www.reddit.com/r/VFIO/comments/bamn5a/permission_denied_when_trying_to_pass_through/ 526 | https://passthroughpo.st/mac-os-vm-guide-part-2-gpu-passthrough-and-tweaks/ 527 | https://www.jianshu.com/p/74b18e6aa5fa 528 | 529 | https://passthroughpo.st/new-and-improved-mac-os-tutorial-part-1-the-basics/ 530 | 531 | https://www.tonymacx86.com/threads/an-idiots-guide-to-imessage.196827/ 532 | 533 | https://passthroughpo.st/using-evdev-passthrough-seamless-vm-input/ 534 | 535 | (想不起来了。。。可能没了) 536 | 537 | -------------------------------------------------------------------------------- /Snippings/574654.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/574654.PNG -------------------------------------------------------------------------------- /Snippings/Annotation 2019-08-18 212341.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Annotation 2019-08-18 212341.png -------------------------------------------------------------------------------- /Snippings/Annotation 2019-08-18 212424.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Annotation 2019-08-18 212424.png -------------------------------------------------------------------------------- /Snippings/Annotation 2019-08-18 212425.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Annotation 2019-08-18 212425.png -------------------------------------------------------------------------------- /Snippings/Capture10.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture10.PNG -------------------------------------------------------------------------------- /Snippings/Capture11.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture11.PNG -------------------------------------------------------------------------------- /Snippings/Capture12.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture12.PNG -------------------------------------------------------------------------------- /Snippings/Capture13.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture13.PNG -------------------------------------------------------------------------------- /Snippings/Capture14.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture14.PNG -------------------------------------------------------------------------------- /Snippings/Capture15.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture15.PNG -------------------------------------------------------------------------------- /Snippings/Capture2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture2.PNG -------------------------------------------------------------------------------- /Snippings/Capture3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture3.PNG -------------------------------------------------------------------------------- /Snippings/Capture4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture4.PNG -------------------------------------------------------------------------------- /Snippings/Capture5.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture5.PNG -------------------------------------------------------------------------------- /Snippings/Capture6.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture6.PNG -------------------------------------------------------------------------------- /Snippings/Capture7.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture7.PNG -------------------------------------------------------------------------------- /Snippings/Capture8.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture8.PNG -------------------------------------------------------------------------------- /Snippings/Capture9.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Capture9.PNG -------------------------------------------------------------------------------- /Snippings/Rufus_conf.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/Rufus_conf.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/1.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/10.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/10.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/11.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/11.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/12 - everymac - Wrong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/12 - everymac - Wrong.png -------------------------------------------------------------------------------- /Snippings/apple-id/13 - everymac - Right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/13 - everymac - Right.png -------------------------------------------------------------------------------- /Snippings/apple-id/2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/2.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/3.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/4.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/5.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/5.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/6.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/6.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/7 - Copy.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/7 - Copy.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/7.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/7.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/8.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/8.PNG -------------------------------------------------------------------------------- /Snippings/apple-id/9.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/apple-id/9.PNG -------------------------------------------------------------------------------- /Snippings/cpu.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/cpu.PNG -------------------------------------------------------------------------------- /Snippings/graphics1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/graphics1.PNG -------------------------------------------------------------------------------- /Snippings/graphics2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/graphics2.PNG -------------------------------------------------------------------------------- /Snippings/macOS-setup/i18n-1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macOS-setup/i18n-1.PNG -------------------------------------------------------------------------------- /Snippings/macOS-setup/i18n-2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macOS-setup/i18n-2.PNG -------------------------------------------------------------------------------- /Snippings/macOS-setup/i18n-3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macOS-setup/i18n-3.PNG -------------------------------------------------------------------------------- /Snippings/macOS-setup/i18n.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macOS-setup/i18n.PNG -------------------------------------------------------------------------------- /Snippings/macOS-setup/macos_setup-1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macOS-setup/macos_setup-1.PNG -------------------------------------------------------------------------------- /Snippings/macOS-setup/macos_setup-2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macOS-setup/macos_setup-2.PNG -------------------------------------------------------------------------------- /Snippings/macOS-setup/macos_setup-3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macOS-setup/macos_setup-3.PNG -------------------------------------------------------------------------------- /Snippings/macOS-setup/macos_setup-4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macOS-setup/macos_setup-4.PNG -------------------------------------------------------------------------------- /Snippings/macos-install/diskutility.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macos-install/diskutility.PNG -------------------------------------------------------------------------------- /Snippings/macos-install/diskutility_diskerase.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macos-install/diskutility_diskerase.PNG -------------------------------------------------------------------------------- /Snippings/macos-install/macos_install.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macos-install/macos_install.PNG -------------------------------------------------------------------------------- /Snippings/macos-install/macos_start.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/macos-install/macos_start.PNG -------------------------------------------------------------------------------- /Snippings/motherboard.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/motherboard.PNG -------------------------------------------------------------------------------- /Snippings/networkard-0.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/networkard-0.PNG -------------------------------------------------------------------------------- /Snippings/networkcard-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/networkcard-1.png -------------------------------------------------------------------------------- /Snippings/nvidia/0.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/0.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/1.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/10.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/10.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/11.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/11.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/12.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/12.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/13.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/13.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/14.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/14.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/15.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/15.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/16.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/16.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/17.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/17.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/18.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/18.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/2.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/3.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/5.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/5.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/6.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/6.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/7.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/7.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/8.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/8.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/9.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/9.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/t-1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/t-1.PNG -------------------------------------------------------------------------------- /Snippings/nvidia/t-2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyk2290/macOS-on-KVM/c7a05ac2f310ff0a8a37741bf659fb1765e48f69/Snippings/nvidia/t-2.PNG -------------------------------------------------------------------------------- /iommu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | shopt -s nullglob 3 | for d in /sys/kernel/iommu_groups/*/devices/*; do 4 | n=${d#*/iommu_groups/*}; n=${n%%/*} 5 | printf 'IOMMU Group %s ' "$n" 6 | lspci -nns "${d##*/}" 7 | done | sort -V 8 | 9 | --------------------------------------------------------------------------------