Added extractVmId from xml vm templates