'Determines whether guestfs is well configured.'

def inspect_capabilities(self):

    try:
        g = tpool.Proxy(guestfs.GuestFS())
        g.add_drive('/dev/null')
        g.launch()
    except Exception as e:
        kernel_file = ('/boot/vmlinuz-%s' % os.uname()[2])
        if (not os.access(kernel_file, os.R_OK)):
            raise exception.LibguestfsCannotReadKernel((_('Please    change    permissions    on    %s    to    0x644') % kernel_file))
        raise exception.NovaException((_('libguestfs    installed    but    not    usable    (%s)') % e))
    return self
