V320 stacking on an X670V involves using all the slots on the VIM4-40G4X. As mentioned in the earlier posts, slot 1 and slot 3 are paired physical ports and act as stack port 1 on the VIM. Likewise, slot 2 and slot 4 are paired and act as stack port 2. Slot 1 on one switch will always go to slot 2 on the other switch and slot 3 on one switch will always go to slot 4 on another switch. This is a simplified example of how the physical connections should be set up in a three node V320 stack.
Configuration will be the same as any other stack for the most part as you have to make sure you have the same EXOS version on the same partition on each switch, the same EXOS version, and the same license levels. But before you can enable the stack you have to enable stacking support and also use the command to configure V320 stacking as shown below.
# configure stacking-support stack-ports all selection native V320
This setting will take effect at the next reboot of this switch.
# enable stacking-support
Stack port 1 configuration is Native
Stack port 2 configuration is Native
This setting will take effect at the next reboot of this switch.
# reboot
V320 stacking is only a
native stack I believe as well. After a reboot you should now see that stacking-support has been enabled using the "show stacking-support" command and then you can enable the stack as usual.
As for configuring the ports of the VIM, you will need 1x40G connections on each slot and going by your show ports output, each slot on the VIM seems to already be configured to use 1x40G connection. What was the problem you were having when trying to configure the VIM ports?
Hope this all helps!