I'm trying to plan for a server that will be running 4 VMs. While I was contemplating the way I would have it work, I realized I needed each VM to be on a different VLAN. From what I understand, I could set up the port it's attached to on the switch to be a trunk to supply only the 4 VLANs I need, but how do I force each of the VMs to use a specific VLAN? Is the only way to have multiple Ethernet interfaces connected to multiple access ports, or is there a way to use it over said trunk with 1 interface?
It will be connected to a Catalyst 3750 stacked 3 tall if it matters. I don't have a specific VM/Hypervisor in mind yet, so I'm flexible if there's solutions that require a specific one.