Packer with Esxi 6.5 and Virtual Distributed Switch

683 views
Skip to first unread message

Artem Silenkov

unread,
Jul 29, 2017, 7:36:53 PM7/29/17
to Packer
Hello!

I'm trying to build vmware-iso on esxi 6.5 with vDS networking.
All is good except I can't connect my vm to networking. VMWare throws errors or NoData,

For working vm config part looks like:
ethernet0.virtualDev = "vmxnet3"
ethernet0
.dvs.switchId = "50 1f aa d0 7d 6e a4 41-50 0f 8f 7b 7b e4 25 1a"
ethernet0
.dvs.portId = "16"
ethernet0
.dvs.portgroupId = "dvportgroup-119"
ethernet0
.dvs.connectionId = "483689523"
ethernet0
.shares = "normal"
ethernet0
.addressType = "generated"
ethernet0
.generatedAddress = "00:0c:29:19:8f:18"

How could I construct my vmx_data array for vDS networking? Tried different combinations with no success.

Thanks in advance

Rickard von Essen

unread,
Jul 30, 2017, 12:46:47 AM7/30/17
to packe...@googlegroups.com
I  not sure it can be made to work with Packer. See https://github.com/hashicorp/packer/issues/2715#issuecomment-278844793

At the bottom someone reported a workaround. 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/1a676636-9a47-4fa0-8a2f-547514538dfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Artem Silenkov

unread,
Jul 30, 2017, 3:07:43 AM7/30/17
to Packer

This workaround saved my day thanks.


I  not sure it can be made to work with Packer. See https://github.com/hashicorp/packer/issues/2715#issuecomment-278844793

At the bottom someone reported a workaround. 
On Jul 30, 2017 01:36, "Artem Silenkov" <artem.s...@gmail.com> wrote:
Hello!

I'm trying to build vmware-iso on esxi 6.5 with vDS networking.
All is good except I can't connect my vm to networking. VMWare throws errors or NoData,

For working vm config part looks like:
ethernet0.virtualDev = "vmxnet3"
ethernet0
.dvs.switchId = "50 1f aa d0 7d 6e a4 41-50 0f 8f 7b 7b e4 25 1a"
ethernet0
.dvs.portId = "16"
ethernet0
.dvs.portgroupId = "dvportgroup-119"
ethernet0
.dvs.connectionId = "483689523"
ethernet0
.shares = "normal"
ethernet0
.addressType = "generated"
ethernet0
.generatedAddress = "00:0c:29:19:8f:18"

How could I construct my vmx_data array for vDS networking? Tried different combinations with no success.

Thanks in advance

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages