A former teacher who sexually abused an 11-year-old boy in his own bedroom while his parents were downstairs has been jailed for over two years.