[libvirt-users] Starting a program inside VM through libvirt

Osier Yang jyang at redhat.com
Thu Jul 12 08:11:04 UTC 2012


On 2012年07月12日 14:43, Jørgen Nordmoen wrote:
> Hi again.
>
> I was just wondering if there are any support for running programs
> inside a VM through libvirt. From what I can see in the API the only
> solution I found was connecting to the VM with openConsole and running
> the program I want. This however seems a bit tricky through Python and I
> was just wondering if there are any simpler solutions.

libguestfs does the work.

http://libguestfs.org/

And you might also want to have a look at qemu-ga, Libvirt supports
to talk to qemu-ga with APIs (only a few qemu-ga commands), and anyway
qemu-ga supports relatively few commands, no support for running
a program inside a guest yet.

Regards,
Osier




More information about the libvirt-users mailing list