浏览文件
windows-2025.yaml
52 行 · 1.9 KB历史下载| 1 | # Windows guest is currently experimental. It only runs on QEMU, and it requires plain: true. |
| 2 | os: "Windows" |
| 3 | vmType: "qemu" |
| 4 | arch: "x86_64" |
| 5 | |
| 6 | images: |
| 7 | # Windows server 2025 licensing guidance: https://www.microsoft.com/licensing/guidance/Windows-Server-2025 |
| 8 | # Windows server 2025 is only for x86-64. |
| 9 | - location: "https://aka.ms/WinServ2025iso-enus" |
| 10 | arch: "x86_64" |
| 11 | |
| 12 | # Windows server does not require TPM by default. If you turn TPM on, you can use some security features like BitLocker disk encryption. |
| 13 | tpm: null |
| 14 | |
| 15 | osOpts: |
| 16 | Windows: |
| 17 | # 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) |
| 18 | # In addition, the driver for virtio-fs will be used in the future. |
| 19 | virtioWin: |
| 20 | - location: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.271-1/virtio-win-0.1.271.iso |
| 21 | arch: "x86_64" |
| 22 | |
| 23 | plain: true |
| 24 | |
| 25 | video: |
| 26 | # This is for development purpose. You can set `none`. |
| 27 | display: default |
| 28 | |
| 29 | # Windows VM doesn't support boot mode because there is no phase which is equivalent to Cloud-init's 'init' stage. |
| 30 | # Currently Windows VM doesn't support yq mode. |
| 31 | # provision: |
| 32 | # - mode: system |
| 33 | # script: | |
| 34 | # Write-Output "this is system mode" |
| 35 | # - mode: user |
| 36 | # script: | |
| 37 | # Write-Output "this is user mode" |
| 38 | # # dependency is only run at once, when the guest is installed. |
| 39 | # # Currently Windows VM does not support skipDefaultDependencyResolution. |
| 40 | # - mode: dependency |
| 41 | # skipDefaultDependencyResolution: false |
| 42 | # script: | |
| 43 | # Write-Output "this is dependency mode" |
| 44 | # # All data mode files are copied in `C:\ProgramData\Lima\provision\provision.data\`, and `path` is ignored. |
| 45 | # - mode: data |
| 46 | # path: /this-field-is-ignored |
| 47 | # content: | |
| 48 | # FOO=bar |
| 49 | # - mode: data |
| 50 | # path: /this-field-is-ignored |
| 51 | # content: | |
| 52 | # BAR=foo |

