Batch mode via Scripts for Qemu?
Is there any way to control Qemu with a script?
(e.g. start Qemu with
Qemu -S -hda disk.img
then feed the commands
loadvm <vm state file>
c
<...>
stop
savevm <vm state file>
q
to the monitor console)
Thanks,
Dave Feustel
Signature · 4 lines
Tired of having to defend against Malware? You know: trojans, viruses, SPYWARE, ADWARE, KEYLOGGERS, rootkits, worms and popups. Then Switch to OpenBSD with a KDE desktop!!!
Quoted 12 lines · Dave Feustel
Is there any way to control Qemu with a script?
(e.g. start Qemu with
Qemu -S -hda disk.img
then feed the commands
loadvm <vm state file>
c
<...>
stop
savevm <vm state file>
q
to the monitor console)
Quoted 2 lines
Thanks,
Dave Feustel
You can redirect the monitor to stdio and then send your commands over that connection. IIRC the monitor can also be redirected to a pty - maybe that's even better than stdio.
Oliver