<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def get_vm_info(name):
    '''
    get the information for a VM.

    :param name: salt_id name
    :return: dictionary of {'machine': x, 'cwd': y, ...}.
    '''
    try:
        vm_ = __utils__['sdb.sdb_get'](_build_sdb_uri(name), __opts__)
    except KeyError:
        raise SaltInvocationError(
            'Probable sdb driver not found. Check your configuration.')
    if vm_ is None or 'machine' not in vm_:
        raise SaltInvocationError(
            'No Vagrant machine defined for Salt_id {}'.format(name))
    return vm_