Dynamic monitoring of virtual machine disk by libguestfs
Hi all , By using function : guestfs_ls() , I have realized ls -l commond with libguesfs . I am wondering how to inspect the virtual disk dynamically, such as monitor mkdir commond inside the virtual machines, I mean if I create a directory in virtual machine , how can I detect it ?
On Mon, Jun 01, 2015 at 04:38:18PM +0800, fu lirong wrote:
Hi all , By using function : guestfs_ls() , I have realized ls -l commond with libguesfs . I am wondering how to inspect the virtual disk dynamically, such as monitor mkdir commond inside the virtual machines, I mean if I create a directory in virtual machine , how can I detect it
This question comes up often enough that I've added an entry in the FAQ: https://github.com/libguestfs/libguestfs/commit/2dc88ba8cb5c772ef071cf948550... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
On Mon, Jun 01, 2015 at 11:59:13AM +0100, Richard W.M. Jones wrote:
On Mon, Jun 01, 2015 at 04:38:18PM +0800, fu lirong wrote:
Hi all , By using function : guestfs_ls() , I have realized ls -l commond with libguesfs . I am wondering how to inspect the virtual disk dynamically, such as monitor mkdir commond inside the virtual machines, I mean if I create a directory in virtual machine , how can I detect it
This question comes up often enough that I've added an entry in the FAQ:
https://github.com/libguestfs/libguestfs/commit/2dc88ba8cb5c772ef071cf948550...
Thanks, that's a nice writeup. Now I can point people to this -- I was asked this question a couple of times before, and I just used to say "you have to relaunch the appliance". This answer explains the range of problems involved. -- /kashyap
participants (3)
-
fu lirong -
Kashyap Chamarthy -
Richard W.M. Jones