Vietnam has made controversial bear farms officially illegal by signing an memorandum of understanding on the issue in Hanoi on Wednesday.