I promise that the trunk port configuration will work. I have a number of these setup with dual NIC on the VMware host.
You about setup with each vlan member on unit 0 is correct when applied to each physical interface.
You vlan configuration needs to include the vlan id with the desired tag per vlan, in your case
set vlans 5 vlan-id 5
for each vlan.
On the VMware side in networking:
Add both NIC to the vswitch for the physical connect
Add one virtual machine port group to the vswitch for each VLAN id. Set the matching VLAN id on each switch
When creating the VM attach this to the desired VLAN port group