Hotels in Vietnam and private hosts must register your presence with the police. You will be expected to hand over your passport, along with your visa number. A handy tip is to photocopy your passport details several times and then hand this copy in instead of your original.