浏览文件
windows-11.yaml
60 行 · 2.6 KB历史下载| 1 | # Windows guest is currently experimental. It only runs on QEMU, and it requires plain: true. |
| 2 | os: "Windows" |
| 3 | vmType: "qemu" |
| 4 | |
| 5 | images: |
| 6 | # Currently there is no way to download Windows 11 ISO automatically. |
| 7 | # You have to download the ISO from https://www.microsoft.com/en-us/software-download/windows11 and set the local path here. |
| 8 | # Please download `English (United States)` version. Otherwise VM installation is stopped in the middle. |
| 9 | - location: "~/Downloads/Win11_25H2_English_x64_v2.iso" |
| 10 | arch: "x86_64" |
| 11 | - location: "~/Downloads/Win11_25H2_English_Arm64_v2.iso" |
| 12 | arch: "aarch64" |
| 13 | |
| 14 | # Windows 11 guest uses TPM emulation by default. |
| 15 | # You can turn off TPM (in that case, lima bypasses Windows 11's initial TPM check). |
| 16 | tpm: true |
| 17 | |
| 18 | osOpts: |
| 19 | Windows: |
| 20 | # Virtio-win ISO contains virtio drivers for windows. It is necessary for lots of QEMU options which use virtio (virtio interface for mounting qcow2 disk, virtio-net, virtio-serial, virtio-rng, virtio-keyboard, and virtio-mouse) |
| 21 | # In addition, the driver for virtio-fs will be used in the future. |
| 22 | # Virtio-win ISO supports both x86_64 and aarch64 (inside the ISO it contains drivers for both archs). |
| 23 | virtioWin: |
| 24 | - location: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.271-1/virtio-win-0.1.271.iso |
| 25 | arch: "x86_64" |
| 26 | digest: "sha256:bbe6166ad86a490caefad438fef8aa494926cb0a1b37fa1212925cfd81656429" |
| 27 | - location: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.271-1/virtio-win-0.1.271.iso |
| 28 | arch: "aarch64" |
| 29 | digest: "sha256:bbe6166ad86a490caefad438fef8aa494926cb0a1b37fa1212925cfd81656429" |
| 30 | |
| 31 | plain: true |
| 32 | |
| 33 | video: |
| 34 | # This is for development purpose. You can set `none`. |
| 35 | display: default |
| 36 | |
| 37 | # Windows VM doesn't support boot mode because there is no phase which is equivalent to Cloud-init's 'init' stage. |
| 38 | # Currently Windows VM doesn't support yq mode. |
| 39 | # provision: |
| 40 | # - mode: system |
| 41 | # script: | |
| 42 | # Write-Output "this is system mode" |
| 43 | # - mode: user |
| 44 | # script: | |
| 45 | # Write-Output "this is user mode" |
| 46 | # # dependency is only run at once, when the guest is installed. |
| 47 | # # Currently Windows VM does not support skipDefaultDependencyResolution. |
| 48 | # - mode: dependency |
| 49 | # skipDefaultDependencyResolution: false |
| 50 | # script: | |
| 51 | # Write-Output "this is dependency mode" |
| 52 | # # All data mode files are copied in `C:\ProgramData\Lima\provision\provision.data\`, and `path` is ignored. |
| 53 | # - mode: data |
| 54 | # path: /this-field-is-ignored |
| 55 | # content: | |
| 56 | # FOO=bar |
| 57 | # - mode: data |
| 58 | # path: /this-field-is-ignored |
| 59 | # content: | |
| 60 | # BAR=foo |

