Regarding the renewal of passport for H1B Visa

My passport is expiring in July 2018 and my travel date on H1 is in the month of March 2017. The intended period of stay in US is 3 years

I am about to get an appointment for VISA interview.

Please let me know if this causes any issues during stamping process, and any possible ways to get PP renewed before/after the stamping.