Re: kvm customized /etc/ file?
On 14/11/2025 23:10, Franco Martelli wrote:
This was what I wanted to do, but without documentation about what the
qemu.conf file should contain it is not possible to accomplish that.
Does anybody know the purpose of "/etc/qemu/qemu.conf"? And looking
again (thanks The Wanderer) at the kvm(1) man-page the options:
ls -l /usr/bin/kvm
lrwxrwxrwx 1 root root 18 Aug 23 04:37 /usr/bin/kvm -> qemu-system-x86_64
(bookworm)
-readconfig file [...]
-no-user-config [...]
A couple of warnings:
<https://wiki.qemu.org/CodeTransitions#Command_line_option_--readconfig>
*Command line option --readconfig*
The config file doesn't cover all the command line options so far, only
the ones implemented with QemuOpts.
<https://www.qemu.org/docs/master/about/removed-features.html#writeconfig-removed-in-7-1>
*-writeconfig (removed in 7.1)*
The -writeconfig option was not able to serialize the entire contents of
the QEMU command line. It is thus considered a failed experiment and
removed without a replacement.
I have noticed the following file that (and its siblings) likely may be
an example of configuration file.
/usr/share/doc/qemu-system-data/config/q35-virtio-graphical.cfg.gz
From my point of view, the preferred way is either some front-end with
its own configuration files or custom wrapper with qemu command line
options you would like to have by default.
Reply to: