Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Have a look at libvirt. – Steven Monday Jan 24 '12 at 23:00
Libvirt is good, but it's really a little too bloated for my needs. – Daniel Jan 25 '12 at 7:55

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.

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

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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