Skip to contentSkip to conversation

Batch mode via Scripts for Qemu?

Qemu-devel Dave Feustel 2 participants 2 messages Nov 11, 2005

lore
Share & tools
lore
#0 lore raw

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!!!
#1 lore raw
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