Alternatives
Can I Rent My House Instead of Losing It to Foreclosure?
Only in limited circumstances, and it depends heavily on your loan terms — most residential mortgages require the home to remain owner-occupied, and...
rent out houseowner-occupancy

Only in limited circumstances, and it depends heavily on your loan terms — most residential mortgages require the home to remain owner-occupied, and converting to a rental without lender approval can violate your loan agreement.
Ask First, Don't Assume
That said, some homeowners explore this path formally with lender consent, especially if rental income would cover the mortgage and the goal is holding onto the property through a temporary hardship. This is a conversation to have explicitly with your servicer, not a decision to make unilaterally.