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.

  • 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.

  • Hmm, apparently, QMP is not yet stable. – Daniel Jan 24 '12 at 22:41
  • 1
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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