Adding the /etc/hosts entry is not needed if the VM's hostname is properly configured.