how to make Windows server 2012R2 NIC connect to trunk,but with a VLAN ID

Solution 1:

In the virtual switch properties you can set a VLAN ID for the host OS:

enter image description here