iaas: fix hostname-to-id mapping when there are more than 100 VMs