[libvirt-users] Mounting VM filesystem on host while VM running

Michal Privoznik mprivozn at redhat.com
Mon Aug 8 08:37:05 UTC 2016


On 08.08.2016 10:23, Patrick PICHON wrote:
> hello Michal,
> 
> That was my worries as well, and I think that your advice is probably
> the right one. Or even, I'm might request an enhancement to the collect
> libvirt plugin to report also FS information.

What I'd like to see is libvirt's ability to spawn commands inside
guest. But it is not that simple. I mean, the hardest part is to design
public libvirt API. For instance, we'd have to deal with both blocking &
non-blocking (i.e. long-running) commands; then we would need to give
users possibility to read command's output (possibly asynchronously).

With this, you'd just: virDomainRunCommand(dom, 'df', '-h', NULL); or
something and you'd be good.

Michal




More information about the libvirt-users mailing list