You need boats with sails to survive for years. The diesel engined boats you originally showed us are not capable of carrying more than a week or three worth of fuel, and then you are at the mercy of winds, currents and waves with little control over direction and no running engine to run from danger with.
Electric with solar or wind generators is barely feasible, so boats with masts and sails will be your major option to overcome the fuel hurdle. Sailing boats of all sizes are still extremely popular, and come in an abundance of types and styles.
You may need to consider how you will keep these people supplied with food and drinking water during years at sea. Some boats do have desalination units, also called "watermakers", though they do not do that.