Skip to content

Commit bb46e29

Browse files
authored
Fix OVMF paths in README QEMU examples (#4472)
All three qemu-system-x86_64 examples in README pointed both -drive if=pflash entries at the same file (/usr/share/ovmf/x64/OVMF.4m.fd). OVMF needs CODE for the first pflash and VARS for the second; as written, EFI NVRAM is not initialized correctly. The path /usr/share/ovmf/x64/ is also stale - the ovmf package has been replaced by edk2-ovmf, which installs under /usr/share/edk2/x64/. Fix both in the three examples (testimage loop section, base Boot ISO block, espeakup variant).
1 parent de43019 commit bb46e29

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ This can be done by installing `pacman -S arch-install-scripts util-linux` local
179179
# losetup --partscan --show ./testimage.img
180180
# pip install --upgrade archinstall
181181
# python -m archinstall --script guided
182-
# qemu-system-x86_64 -enable-kvm -machine q35,accel=kvm -device intel-iommu -cpu host -m 4096 -boot order=d -drive file=./testimage.img,format=raw -drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd -drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd
182+
# qemu-system-x86_64 -enable-kvm -machine q35,accel=kvm -device intel-iommu -cpu host -m 4096 -boot order=d -drive file=./testimage.img,format=raw -drive if=pflash,format=raw,readonly,file=/usr/share/edk2/x64/OVMF_CODE.4m.fd -drive if=pflash,format=raw,readonly,file=/usr/share/edk2/x64/OVMF_VARS.4m.fd
183183

184184
This will create a *20 GB* `testimage.img` and create a loop device which we can use to format and install to.<br>
185185
`archinstall` is installed and executed in [guided mode](#docs-todo). Once the installation is complete, ~~you can use qemu/kvm to boot the test media.~~<br>
@@ -199,8 +199,8 @@ You may want to boot an ISO image in a VM to test `archinstall` in there.
199199
qemu-system-x86_64 -enable-kvm \
200200
-machine q35,accel=kvm -device intel-iommu \
201201
-cpu host -m 4096 -boot order=d \
202-
-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd \
203-
-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd \
202+
-drive if=pflash,format=raw,readonly,file=/usr/share/edk2/x64/OVMF_CODE.4m.fd \
203+
-drive if=pflash,format=raw,readonly,file=/usr/share/edk2/x64/OVMF_VARS.4m.fd \
204204
-drive file=./archlinux-2025.12.01-x86_64.iso,format=raw
205205
```
206206

@@ -209,8 +209,8 @@ HINT: For espeakup support
209209
qemu-system-x86_64 -enable-kvm \
210210
-machine q35,accel=kvm -device intel-iommu \
211211
-cpu host -m 4096 -boot order=d \
212-
-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd \
213-
-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF.4m.fd \
212+
-drive if=pflash,format=raw,readonly,file=/usr/share/edk2/x64/OVMF_CODE.4m.fd \
213+
-drive if=pflash,format=raw,readonly,file=/usr/share/edk2/x64/OVMF_VARS.4m.fd \
214214
-drive file=./archlinux-2025.12.01-x86_64.iso,format=raw \
215215
-device intel-hda -device hda-duplex,audiodev=snd0 \
216216
-audiodev pa,id=snd0,server=/run/user/1000/pulse/native

0 commit comments

Comments
 (0)