'Get a VFS instance for the image
:param image: instance of nova.virt.image.model.Image
:param partition: the partition number to access'

@staticmethod
def instance_for_image(image, partition):

    LOG.debug('Instance    for    image    image=%(image)s    partition=%(partition)s', {'image': image, 'partition': partition})
    vfs = None
    try:
        LOG.debug('Using    primary    VFSGuestFS')
        vfs = importutils.import_object('nova.virt.disk.vfs.guestfs.VFSGuestFS', image, partition)
        if (not VFS.guestfs_ready):
            vfs.inspect_capabilities()
            VFS.guestfs_ready = True
        return vfs
    except exception.NovaException:
        if (vfs is not None):
            raise
        else:
            LOG.info('Unable    to    import    guestfs,    falling    back    to    VFSLocalFS')
    return importutils.import_object('nova.virt.disk.vfs.localfs.VFSLocalFS', image, partition)
