[Libguestfs] [Query] Access procfs of guest VM using libguestfs

Surojit Pathak suro.patz at gmail.com
Tue Jan 13 00:49:53 UTC 2015


Hi all,
I am using libvirt:qemu-kvm and I want to access(RO) the procfs of the 
guest vm.
I was trying to use guestfs for the same purpose.
I can access /tmp of the guest but not the /proc

Is it a known issue? If so, how can I overcome the same? Any pointers?


Snippet>
[root at hv285 scoreboards]# virsh list
  Id    Name                           State
----------------------------------------------------
  80    instance-00000121              running

[root at hv285 scoreboards]# virt-cat -d instance-00000121 /tmp/uname
Linux  2.6.32-431.11.2.el6.XXXXX.20140407.x86_64 #1 SMP Mon Apr 7 
11:31:51 CDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root at hv285 scoreboards]# guestfish --version
guestfish 1.20.11rhel=6,release=2.el6
[root at hv285 scoreboards]# uname
Linux
[root at hv285 scoreboards]# virt-cat -d instance-00000121 /proc/meminfo
libguestfs: error: download: /proc/meminfo: No such file or directory
[root at hv285 scoreboards]#

-- 
Regards,
SURO




More information about the Libguestfs mailing list