What happens to my foreign visa when I renew my passport?
Please check the regulations of the country whose visa you are looking at. Some countries, like the USA allow you to use a valid visa in an expired passport. Others, like Malaysia will require you to secure a new visa if you renew or replace a passport. If not allowed and if you travel with a valid visa in a expired passport you could very well be denied entry.