def METHOD_NAME(session, rules_file, rules_content):
    """
    Write guest udev rules, then reboot the guest and
    return the new session
    """
    set_cmd = "echo '%s' > %s" % (rules_content, rules_file)
    session.cmd_output_safe(set_cmd)
    return vm.reboot()