Welcome to the Forums - In ESX, typically, VLAN tags are not placed on the packets by the guest OS but by the virtual switch - are the two VMs on the same virtual switch or does the traffice leave the ESX hosts and onto the physical network?
If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful