Can I manage a QEMU guest from the host's CLI? I'm coming from Xen and I liked the xm command. I'd like to shutdown the guest, attach PCI devices to it and so on. Is there a way?

There's the QEMU monitor, but I'd really like to have a "scriptable" solution.

link|improve this question

45% accept rate
Have a look at libvirt. – Steven Monday Jan 24 at 23:00
Libvirt is good, but it's really a little too bloated for my needs. – Daniel Jan 25 at 7:55
feedback

2 Answers

Qemu's QMP is probably what you're looking for, but I am not aware of any tools that interface with it yet. You would have to write a script (or family of scripts) that opens the socket and sends appropriate messages to QEMU.

link|improve this answer
Hmm, apparently, QMP is not yet stable. – Daniel Jan 24 at 22:41
1  
Most of QEMU isn't stable yet :-) – voretaq7 Jan 24 at 22:42
feedback

any VM management solution out there is based on libvirt nowadays, so virsh is the way to go. You don't have to install virt-manager, which drags along a lot of GUI deps

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.