<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }p { margin-top: 0px; margin-bottom: 0px; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>thanks for your reply,</div><div> When I set the debug mode and run "<span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">libguestfs-test-tool" the result is:</span></div><div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> virtTest</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">@06MYRC5:~$ libguestfs-test-tool </span></div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""> ************************************************************
<br> * IMPORTANT NOTICE
<br> *
<br> * When reporting bugs, include the COMPLETE, UNEDITED
<br> * output below in your bug report.
<br> *
<br> ************************************************************
<br>libguestfs: trace: set_verbose true
<br>libguestfs: trace: set_verbose = 0
<br>libguestfs: trace: set_verbose true
<br>libguestfs: trace: set_verbose = 0
<br>LIBGUESTFS_DEBUG=1
<br>LIBGUESTFS_TRACE=1
<br>PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
<br>SELinux: sh: 1: getenforce: not found
<br>libguestfs: trace: add_drive_scratch 104857600
<br>libguestfs: trace: get_tmpdir
<br>libguestfs: trace: get_tmpdir = "/tmp"
<br>libguestfs: trace: add_drive "/tmp/libguestfsIyeuW7/scratch.1" "format:raw" "cachemode:unsafe"
<br>libguestfs: trace: add_drive = 0
<br>libguestfs: trace: add_drive_scratch = 0
<br>libguestfs: trace: get_append
<br>libguestfs: trace: get_append = "NULL"
<br>guestfs_get_append: (null)
<br>libguestfs: trace: get_backend
<br>libguestfs: trace: get_backend = "direct"
<br>guestfs_get_backend: direct
<br>libguestfs: trace: get_autosync
<br>libguestfs: trace: get_autosync = 1
<br>guestfs_get_autosync: 1
<br>libguestfs: trace: get_cachedir
<br>libguestfs: trace: get_cachedir = "/var/tmp"
<br>guestfs_get_cachedir: /var/tmp
<br>libguestfs: trace: get_direct
<br>libguestfs: trace: get_direct = 0
<br>guestfs_get_direct: 0
<br>libguestfs: trace: get_hv
<br>libguestfs: trace: get_hv = "/usr/bin/qemu-system-x86_64"
<br>guestfs_get_hv: /usr/bin/qemu-system-x86_64
<br>libguestfs: trace: get_memsize
<br>libguestfs: trace: get_memsize = 500
<br>guestfs_get_memsize: 500</span><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">libguestfs: trace: get_network
<br>libguestfs: trace: get_network = 0
<br>guestfs_get_network: 0
<br>libguestfs: trace: get_path
<br>libguestfs: trace: get_path = "/usr/lib/guestfs"
<br>guestfs_get_path: /usr/lib/guestfs
<br>libguestfs: trace: get_pgroup
<br>libguestfs: trace: get_pgroup = 0
<br>guestfs_get_pgroup: 0
<br>libguestfs: trace: get_program
<br>libguestfs: trace: get_program = "libguestfs-test-tool"
<br>guestfs_get_program: libguestfs-test-tool
<br>libguestfs: trace: get_recovery_proc
<br>libguestfs: trace: get_recovery_proc = 1
<br>guestfs_get_recovery_proc: 1
<br>libguestfs: trace: get_selinux
<br>libguestfs: trace: get_selinux = 0
<br>guestfs_get_selinux: 0
<br>libguestfs: trace: get_smp
<br>libguestfs: trace: get_smp = 1
<br>guestfs_get_smp: 1
<br>libguestfs: trace: get_tmpdir
<br>libguestfs: trace: get_tmpdir = "/tmp"
<br>guestfs_get_tmpdir: /tmp
<br>libguestfs: trace: get_trace
<br>libguestfs: trace: get_trace = 1
<br>guestfs_get_trace: 1
<br>libguestfs: trace: get_verbose
<br>libguestfs: trace: get_verbose = 1
<br>guestfs_get_verbose: 1
<br>host_cpu: x86_64
<br>Launching appliance, timeout set to 600 seconds.
<br>libguestfs: trace: launch
<br>libguestfs: trace: version
<br>libguestfs: trace: version = <struct guestfs_version *>
<br>libguestfs: trace: get_backend
<br>libguestfs: trace: get_backend = "direct"
<br>libguestfs: launch: program=libguestfs-test-tool
<br>libguestfs: launch: version=1.24.5
<br>libguestfs: launch: backend registered: unix
<br>libguestfs: launch: backend registered: uml
<br>libguestfs: launch: backend registered: libvirt
<br>libguestfs: launch: backend registered: direct
<br>libguestfs: launch: backend=direct
<br>libguestfs: launch: tmpdir=/tmp/libguestfsIyeuW7
<br>libguestfs: launch: umask=0002
<br>libguestfs: launch: euid=1000
<br>libguestfs: command: run: /usr/bin/supermin-helper
<br>libguestfs: command: run: \ --verbose
<br>libguestfs: command: run: \ -f checksum
<br>libguestfs: command: run: \ --host-cpu x86_64
<br>libguestfs: command: run: \ /usr/lib/guestfs/supermin.d
<br>supermin helper [00000ms] whitelist = (not specified)
<br>supermin helper [00000ms] host_cpu = x86_64
<br>supermin helper [00000ms] dtb_wildcard = (not specified)
<br>supermin helper [00000ms] inputs:
<br>supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d
<br>supermin helper [00000ms] outputs:
<br>supermin helper [00000ms] kernel = (none)
<br>supermin helper [00000ms] dtb = (none)
<br>supermin helper [00000ms] initrd = (none)
<br>supermin helper [00000ms] appliance = (none)
<br>libguestfs: checksum of existing appliance:
<br>libguestfs: warning: supermin-helper -f checksum returned a short string
<br>libguestfs: error: cannot find any suitable libguestfs supermin, fixed or old-style appliance on LIBGUESTFS_PATH (search path: /usr/lib/guestfs)
<br>libguestfs: trace: launch = -1 (error)
<br>libguestfs-test-tool: failed to launch appliance
<br>libguestfs: trace: close
<br>libguestfs: closing guestfs handle 0x6ac130 (state 0)
<br>libguestfs: command: run: rm
<br>libguestfs: command: run: \ -rf /tmp/libguestfsIyeuW7</span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></div><div><span style="background-color: rgb(255, 0, 0);"><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">when I run "</span><span style="font-size: 10.5pt; line-height: 1.5;"> </span><span style="font-size: 10.5pt; line-height: 1.5;">virt-df -d `virsh domuuid 5`“ , the result is :</span></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">virtTest@06MYRC5:~$ virt-df -d `virsh domuuid 5`
<br>libguestfs: trace: set_verbose true
<br>libguestfs: trace: set_verbose = 0
<br>libguestfs: create: flags = 0, handle = 0x15ee130, program = virt-df
<br>libguestfs: trace: add_domain "572e2069-1d61-4e0a-9a7d-fc9e726c22cb" "readonly:true" "allowuuid:true" "readonlydisk:read"
<br>libguestfs: opening libvirt handle: URI = NULL, auth = virConnectAuthPtrDefault, flags = 1
<br>libguestfs: successfully opened libvirt handle: conn = 0x15ee5c0
<br>libguestfs: trace: internal_set_libvirt_selinux_norelabel_disks false
<br>libguestfs: trace: internal_set_libvirt_selinux_norelabel_disks = 0
<br>libguestfs: disk[0]: filename: /var/lib/nova/instances/572e2069-1d61-4e0a-9a7d-fc9e726c22cb/disk
<br>libguestfs: trace: add_drive "/var/lib/nova/instances/572e2069-1d61-4e0a-9a7d-fc9e726c22cb/disk" "readonly:true" "format:qcow2"
<br>libguestfs: trace: add_drive = 0
<br>libguestfs: trace: add_domain = 1
<br>libguestfs: trace: launch
<br>libguestfs: trace: get_tmpdir
<br>libguestfs: trace: get_tmpdir = "/tmp"
<br>libguestfs: trace: version
<br>libguestfs: trace: version = <struct guestfs_version *>
<br>libguestfs: trace: get_backend
<br>libguestfs: trace: get_backend = "direct"
<br>libguestfs: launch: program=virt-df
<br>libguestfs: launch: version=1.24.5
<br>libguestfs: launch: backend registered: unix
<br>libguestfs: launch: backend registered: uml
<br>libguestfs: launch: backend registered: libvirt
<br>libguestfs: launch: backend registered: direct
<br>libguestfs: launch: backend=direct
<br>libguestfs: launch: tmpdir=/tmp/libguestfsLdtNb8
<br>libguestfs: launch: umask=0002
<br>libguestfs: launch: euid=1000
<br>libguestfs: command: run: /usr/bin/supermin-helper
<br>libguestfs: command: run: \ --verbose
<br>libguestfs: command: run: \ -f checksum
<br>libguestfs: command: run: \ --host-cpu x86_64
<br>libguestfs: command: run: \ /usr/lib/guestfs/supermin.d
<br>supermin helper [00000ms] whitelist = (not specified)
<br>supermin helper [00000ms] host_cpu = x86_64
<br>supermin helper [00000ms] dtb_wildcard = (not specified)
<br>supermin helper [00000ms] inputs:
<br>supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d
<br>supermin helper [00000ms] outputs:
<br>supermin helper [00000ms] kernel = (none)
<br>supermin helper [00000ms] dtb = (none)
<br>supermin helper [00000ms] initrd = (none)
<br>supermin helper [00000ms] appliance = (none)
<br>libguestfs: checksum of existing appliance:
<br>libguestfs: warning: supermin-helper -f checksum returned a short string
<br>libguestfs: error: cannot find any suitable libguestfs supermin, fixed or old-style appliance on LIBGUESTFS_PATH (search path: /usr/lib/guestfs)
<br>libguestfs: trace: launch = -1 (error)
<br>libguestfs: trace: close
<br>libguestfs: closing guestfs handle 0x15ee130 (state 0)
<br>libguestfs: command: run: rm
<br>libguestfs: command: run: \ -rf /tmp/libguestfsLdtNb8</span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></div><div><br><div> </div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 14px; font-family: Calibri, sans-serif; line-height: 15.75pt;"><br></p></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:rjones@redhat.com">Richard W.M. Jones</a></div><div><b>Date:</b> 2014-12-04 18:02</div><div><b>To:</b> <a href="mailto:cuimingwen@incito.com.cn">cuimingwen@incito.com.cn</a></div><div><b>CC:</b> <a href="mailto:libguestfs@redhat.com">libguestfs</a></div><div><b>Subject:</b> Re: virt-df error, help</div></div></div><div><div>On Thu, Dec 04, 2014 at 04:53:21PM +0800, cuimingwen@incito.com.cn wrote:</div>
<div>> Hello, Richard,</div>
<div>> I run command as example: " virt-df -d `virsh domuuid 5`"</div>
<div>> some errors show : </div>
<div>> libguestfs: warning: supermin-helper -f checksum returned a short string</div>
<div>> libguestfs: error: cannot find any suitable libguestfs supermin, fixed or old-style appliance on LIBGUESTFS_PATH (search path: /usr/lib/guestfs)</div>
<div>> </div>
<div>> when I run this command as root , the result is correct ,</div>
<div>> but I must run the command as not-root, so , how can I do ?, please help , thanks!</div>
<div> </div>
<div>Enable debugging:</div>
<div> </div>
<div> http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs</div>
<div> </div>
<div>Provide the complete output when debugging is enabled, sending it</div>
<div>to the mailing list (mailto:libguestfs@redhat.com)</div>
<div> </div>
<div>Rich.</div>
<div> </div>
<div>-- </div>
<div>Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones</div>
<div>Read my programming and virtualization blog: http://rwmj.wordpress.com</div>
<div>virt-df lists disk usage of guests without needing to install any</div>
<div>software inside the virtual machine. Supports Linux and Windows.</div>
<div>http://people.redhat.com/~rjones/virt-df/</div>
</div></blockquote>
</div></body></html>