C
C
Cyril2017-08-01 19:40:33
KVM
Cyril, 2017-08-01 19:40:33

Is it possible to use a KVM virtual machine with a config file?

I'm running a virtual KVM machine on Windows. So far, parameters can only be passed via the command line during startup:

qemu-system-x86_64 -name ubuntu -machine type=pc \
-drive file=vm.qcow2,index=0,media=disk,format=qcow2,if=virtio \
-m 1G,maxmem=2G,slots=1 -vga virtio -boot menu=on -rtc base=localtime,clock=host

Is it possible to put these parameters in a separate XML file and just specify this file when starting the virtual machine? For example, the file that is created by virt-install when we deploy a new KVM machine.
For now, it remains as an option to run a command with parameters through the BAT file.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question