Le 14/11/2025 à 15:16, Franco Martelli a écrit :
Hi,
running the command:
~$ kvm -cdrom debian-live-13.0.0-amd64-kde.iso -m 8g
I can start a virtual machine for the Debian Live ISO image. I'd like to
customize the virtual machine. Is it possible to have a .conf file which
it contains all the options for the virtual machine, eg. number of
cores, memory size, etc… without specify all the options on the CLI?
I'd like to have a single .conf default file to use for all the ISO,
reading kvm(1) man-page seems nothing is explained, only options for the
CLI.
Thanks in advance, kind regards.
Hello Franco,
I do not use kvm/qemu directly, only through virt-manager (GUI).
I have no experience with it, but you could probably do what you want to
achieve by using virtsh or wirt-qemu-run. In both cases the guest
configuration is described in a file, the libvirt way.
https://manpages.debian.org/trixie/libvirt-daemon-driver-qemu/virt-qemu-run.1.en.html