[conspire] libvirt - had forgotten how useful ... http://wiki.libvirt.org/page/VM_lifecycle

Michael Paoli Michael.Paoli at cal.berkeley.edu
Wed Dec 13 07:13:41 PST 2017


So, Cabal meeting last Saturday,
there was some discussion of libvirt[1],
notably highly handy for managing various virtual machine (VM)
technologies.  In particular, learn essentially one set
of commands/APIs, and can use those to manage the underlying
VM technology, regardless of the particulars of the
commands and syntax and details of the individual underlying
VM technology - all of which are substantially
different in their native syntax, etc.

So, ... once upon a time, I installed and used Xen, and learned
well of its syntax, etc.  Sometime later, time to change from
Xen to qemu-kvm[2].  So, ... time to learn another set of commands
and syntax, etc.  But, rather than learn yet another native set of VM
commands, etc. for qemu-kvm ... enter libvirt.  :-)  Learn the syntax for
libvirt (notably virsh(1)), and that's basically it.  Generally
no more mucking about with the individual commands and syntax of
some particular virtualization technology - use any of those
supported with libvirt, and one common set of commands and syntax.

Anyway, I was looking up how to do something with virsh - typically I
just look in the virsh(1) man page ... started there - but wasn't
finding what I was looking for super efficiently (it's there alright,
but sometimes easier to find / search for the answer when you
already know what the answer is - or at least certain key words
or phrases/strings).  So, teensy bit of web search, and found
this lovely document which I'd forgotten about and hadn't looked
at in years:
http://wiki.libvirt.org/page/VM_lifecycle
The bit I was looking for?  How to unpause a virtual machine
that's in a paused state.  My search had taken me to quite what
I was looking for.  That wiki page includes this lovely
state diagram image:
http://wiki.libvirt.org/images/d/da/Vm_lifecycle_graph.png
 From there it was highly obvious - what I was looking for was
resume ... back to virsh(1) to check syntax - found and quite easy
enough ... mission accomplished.  Anyway, an excellent wiki page
on libvirt ... in fact from the main libvirt web page:
https://libvirt.org/
it quite links to it ... a bit indirectly:
Wiki[3] Read further community contributed content
2 General project documentation[4]
Concepts Guest (VM) Lifecycle[5] : Read This First - Introduces ...

1. https://en.wikipedia.org/wiki/Libvirt
2. called kvm or KVM  on some/many distributions, qemu-kvm on
    Debian and many others (once upon a time, qemu and kvm were
    separate projects - they later merged)
3. http://wiki.libvirt.org/
4. http://wiki.libvirt.org/page/Main_Page#General_project_documentation
5. http://wiki.libvirt.org/page/VM_lifecycle





More information about the conspire mailing list