With the physical uplink ports configured as a trunk/tagged (802.1Q) port you can create multiple port groups on the vSwitch, each with another of the required VLAN IDs and connect the VM to those port groups by adding additional virtual network adapters to the VM.
André