libvirt opens kernel+initrd in read-write mode

Olaf Hering olaf at
Thu Jul 9 14:32:04 UTC 2020

Is there a reason why libvirtd v6.5.0 opens kernel+initrd in mode RW?
'virsh start vm' fails of both are on a read-only filesystem.
Not sure if this ever worked before.

<domain type='kvm'>
    <type arch='x86_64' machine='pc-i440fx-5.1'>hvm</type>
    <cmdline>net.ifnames=0 console=ttyS0,115200 linemode=1 panic=9 start_shell</cmdline>
    <boot dev='hd'/>

13111 stat("/path/to/initrd", {st_mode=S_IFREG|0755, st_size=119207064, ...}) = 0
13111 openat(AT_FDCWD, "/path/to/initrd", O_RDWR) = -1 EROFS (Read-only file system)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Digitale Signatur von OpenPGP
URL: <>

More information about the libvir-list mailing list