deal with vms with vmname