ESXi does not support DTP dynamic trunking protocol and portfast trunk should be enabled.
switchport nonegotiate !Skip DTP negotiation
spanning-tree portfast trunk !Fast forward STP state
In addition, do not use the native (untagged) vlan on any portgroups. Use the native vlan for the management or service-console VMKernel networks which also allow kickstarting for installs over DHCP or BOOTP before tagging can be used.