Skip to content

Commit e789a9c

Browse files
committed
config(qemu): disable file locking on BIOS
In QEMU, when file locking is enabled and supported, the image file will be opened with O_RDWR even if readonly=on. Due to some race condition during QEMU startup, sometimes it detects that locks are supported and in those times, the BIOS read from a read only bookmark will fail. Fixes #5523
1 parent 9176aba commit e789a9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Configuration/UTMQemuConfiguration+Arguments.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,9 @@ import Virtualization // for getting network interfaces
385385
"if=pflash"
386386
"format=raw"
387387
"unit=0"
388-
"file="
388+
"file.filename="
389389
bios
390+
"file.locking=off"
390391
"readonly=on"
391392
f()
392393
f("-drive")

0 commit comments

Comments
 (0)