Error while loading shared libraries: libsbz.so
                                
                                
                                
                                    
                                        by Emilian Mitocariu
                                    
                                
                                
                                        Hi,
I have a KVM host running ubuntu 18.04 with libguestfs-tools
version 1.36.13-1ubuntu3.3 installed from the Ubuntu's repo and when I try
to use virt-cat for example on a VM it fails with:
libguestfs: error: appliance closed the connection unexpectedly.
> libguestfs: error: guestfs_launch failed.
After doing "export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1" and running the
virt-cat command again I get:
guestfsd: error while loading shared libraries: libsbz.so: cannot open
> shared object file: No such file or directory
I've tried to reinstall libguestfs-tools with "apt-get --reinstall install
libguestfs-tools", but I still get the same error. Can someone help me fix
this?
                                
                         
                        
                                
                                5 years, 2 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        Fwd: is there a way to set discard=unmap when using guestmount? (#52)
                                
                                
                                
                                    
                                        by Richard W.M. Jones
                                    
                                
                                
                                        ----- Forwarded message from braindevices <notifications(a)github.com> -----
Subject: [libguestfs/libguestfs] is there a way to set discard=unmap when using
	guestmount? (#52)
I cannot find anything in the document. This option is very important for dynamic qcow2 disks. Without out this the IO is super slow even on tmpfs only 3MB/s.
Subject: Re: [libguestfs/libguestfs] is there a way to set discard=unmap when
	using guestmount? (#52)
Not using guestmount, but it's possible to do it using the API directly and therefore from guestfish, something like this:
```
guestfish <<EOF
add disk.img discard:unmap
run
mount /dev/sda /
mount-local /tmp/mp
mount-local-run
EOF
```
See also: https://rwmj.wordpress.com/2012/03/29/libguestfs-mount-local/
----- End forwarded message -----
-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
                                
                         
                        
                                
                                5 years, 2 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [nbdkit PATCH 0/2] ext2 export list tweaks
                                
                                
                                
                                    
                                        by Eric Blake
                                    
                                
                                
                                        Applies on top of my pending series for the exportname filter,
addressing one of the todo's in that cover letter.
Eric Blake (2):
  filters: Add .export_description wrappers
  ext2: Supply .list_exports and .default_export
 filters/ext2/nbdkit-ext2-filter.pod |   3 +-
 tests/Makefile.am                   |  16 +++-
 filters/ext2/ext2.c                 | 125 +++++++++++++++++++---------
 filters/gzip/gzip.c                 |  40 ++++++---
 filters/partition/partition.c       |  58 +++++++++----
 filters/tar/tar.c                   |  48 +++++++----
 filters/xz/xz.c                     |  43 +++++++---
 tests/test-ext2-exportname.sh       |  73 ++++++++++++++++
 8 files changed, 305 insertions(+), 101 deletions(-)
 create mode 100755 tests/test-ext2-exportname.sh
-- 
2.28.0
                                
                         
                        
                                
                                5 years, 2 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [nbdkit PATCH v2 0/8] exportname filter
                                
                                
                                
                                    
                                        by Eric Blake
                                    
                                
                                
                                        This is a revision of my .default_export work, plus new work on
.export_descriptions and a new exportname filter.  I think it is
now ready to check in.
Things I'd still like in 1.22:
- the file plugin should implement .list_exports (patch already posted,
but it needs rebasing on this series)
- the ext2 filter should override .list_exports when in exportname mode
- the nbd plugin should be able to use libnbd 1.4 features for .list_exports
- more language bindings for new functions (perl, python, ocaml, ...)
nice to have, but can be post-release:
- the file plugin in dir= mode should have default=none|largest (default
behavior none says "" is an error because it is not a file, setting it
to largest picks the largest file in the directory for "")
- the tar filter should consider an exportname mode
- figure out how to let filters open the plugin without a current
connection into the filter
Eric Blake (8):
  api: Add .default_export
  api: Add nbdkit_add_default_export
  server: Respond to NBD_INFO_NAME request
  api: Add nbdkit_str[n]dup_intern helper
  sh, eval: Implement .default_export
  api: Alter .list_exports
  api: Add .export_description
  exportname: New filter
 docs/nbdkit-filter.pod                        |  56 ++-
 docs/nbdkit-plugin.pod                        | 123 ++++++-
 docs/nbdkit-protocol.pod                      |  14 +
 .../exportname/nbdkit-exportname-filter.pod   | 154 ++++++++
 filters/ext2/nbdkit-ext2-filter.pod           |   5 +
 filters/log/nbdkit-log-filter.pod             |   2 +-
 plugins/eval/nbdkit-eval-plugin.pod           |   6 +
 plugins/file/nbdkit-file-plugin.pod           |   9 +-
 plugins/sh/nbdkit-sh-plugin.pod               |  39 +-
 include/nbdkit-common.h                       |   6 +
 include/nbdkit-filter.h                       |  13 +-
 include/nbdkit-plugin.h                       |   4 +-
 configure.ac                                  |   2 +
 filters/exportname/Makefile.am                |  67 ++++
 tests/Makefile.am                             |   8 +-
 server/internal.h                             |  22 +-
 server/backend.c                              |  93 +++--
 server/connections.c                          |   2 +-
 server/exports.c                              |  32 +-
 server/filters.c                              |  31 +-
 server/main.c                                 |  26 +-
 server/nbdkit.syms                            |   3 +
 server/plugins.c                              |  44 ++-
 server/protocol-handshake-newstyle.c          |  87 ++++-
 server/public.c                               |  48 +++
 server/test-public.c                          |   9 +-
 plugins/sh/methods.h                          |   2 +
 plugins/cc/cc.c                               |  73 ++--
 plugins/eval/eval.c                           |  70 ++--
 plugins/ondemand/ondemand.c                   |  11 +-
 plugins/sh/methods.c                          |  84 ++++-
 plugins/sh/sh.c                               |  70 ++--
 plugins/sh/example.sh                         |   2 +-
 filters/exportname/exportname.c               | 342 ++++++++++++++++++
 filters/log/log.c                             |  18 +-
 filters/tls-fallback/tls-fallback.c           |  60 ++-
 tests/test-eval-exports.sh                    |  34 +-
 tests/test-export-info.sh                     | 111 ++++++
 tests/test-exportname.sh                      | 184 ++++++++++
 tests/test-tls-fallback.sh                    |  53 ++-
 tests/test-layers-filter.c                    |  13 +-
 tests/test-layers-plugin.c                    |   8 +
 tests/test-layers.c                           |  24 +-
 TODO                                          |  20 +-
 44 files changed, 1790 insertions(+), 294 deletions(-)
 create mode 100644 filters/exportname/nbdkit-exportname-filter.pod
 create mode 100644 filters/exportname/Makefile.am
 create mode 100644 filters/exportname/exportname.c
 create mode 100755 tests/test-export-info.sh
 create mode 100755 tests/test-exportname.sh
-- 
2.28.0
                                
                         
                        
                                
                                5 years, 2 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [nbdkit PATCH 0/2] More language bindings for .list_exports
                                
                                
                                
                                    
                                        by Eric Blake
                                    
                                
                                
                                        This picks up python and ocaml.  Some of our languages are lacking a
number of bindings (for example, lua and perl lack .extents, so I
didn't have anything to copy from), and I felt less comfortable with
golang and rust.  But for python and ocaml, I was able to test a
working implementation.
Eric Blake (2):
  python: Implement .list_exports and friends
  ocaml: Implement .list_exports and friends
 plugins/python/nbdkit-python-plugin.pod |  25 ++++
 tests/Makefile.am                       |   3 +
 plugins/ocaml/NBDKit.mli                |   9 ++
 plugins/ocaml/NBDKit.ml                 |  17 +++
 plugins/ocaml/example.ml                |  33 +++--
 plugins/ocaml/ocaml.c                   |  89 ++++++++++++
 plugins/python/python.c                 | 185 ++++++++++++++++++++----
 tests/test-python-export-list.sh        |  69 +++++++++
 tests/python-export-list.py             |  54 +++++++
 9 files changed, 444 insertions(+), 40 deletions(-)
 create mode 100755 tests/test-python-export-list.sh
 create mode 100644 tests/python-export-list.py
-- 
2.28.0
                                
                         
                        
                                
                                5 years, 2 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [nbdkit PATCH 0/3] .list_exports in nbd plugin
                                
                                
                                
                                    
                                        by Eric Blake
                                    
                                
                                
                                        Another series on top of my exportname filter, marking off another
todo bullet point.  With this, you can now use the NBD plugin as a
transparent passthrough of all export names served by the remote
server in both directions (list advertisement server to client, and
export name from client to server).
Eric Blake (3):
  nbd: Implement .default_export, .export_description
  nbd: Add dynamic-export=true option
  nbd: Implement .list_exports
 plugins/nbd/nbdkit-nbd-plugin.pod |  30 +++-
 tests/Makefile.am                 |   4 +
 plugins/nbd/nbd.c                 | 250 +++++++++++++++++++++++++-----
 tests/test-nbd-dynamic-content.sh |  75 +++++++++
 tests/test-nbd-dynamic-list.sh    | 162 +++++++++++++++++++
 5 files changed, 482 insertions(+), 39 deletions(-)
 create mode 100755 tests/test-nbd-dynamic-content.sh
 create mode 100755 tests/test-nbd-dynamic-list.sh
-- 
2.28.0
                                
                         
                        
                                
                                5 years, 2 months