From acba3ea3e7d1517e189332d0e767cd70847cca76 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 13 Aug 2020 08:26:40 -0700 Subject: [PATCH] Document network path (#9762) --- builder/vsphere/clone/step_clone.go | 6 ++++-- builder/vsphere/iso/step_create.go | 6 ++++-- .../builder/vsphere/clone/CloneConfig-not-required.mdx | 6 ++++-- .../pages/partials/builder/vsphere/iso/NIC-not-required.mdx | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/builder/vsphere/clone/step_clone.go b/builder/vsphere/clone/step_clone.go index de6448ff7..b0a776036 100644 --- a/builder/vsphere/clone/step_clone.go +++ b/builder/vsphere/clone/step_clone.go @@ -32,8 +32,10 @@ type CloneConfig struct { DiskSize int64 `mapstructure:"disk_size"` // Create VM as a linked clone from latest snapshot. Defaults to `false`. LinkedClone bool `mapstructure:"linked_clone"` - // Set the network in which the VM will be connected to. If no network is specified, `host` - // must be specified to allow Packer to look for the available network. + // Set the network in which the VM will be connected to. If no network is + // specified, `host` must be specified to allow Packer to look for the + // available network. If the network is inside a network folder in vCenter, + // you need to provide the full path to the network. Network string `mapstructure:"network"` // VM notes. Notes string `mapstructure:"notes"` diff --git a/builder/vsphere/iso/step_create.go b/builder/vsphere/iso/step_create.go index 02abe97fa..937990d82 100644 --- a/builder/vsphere/iso/step_create.go +++ b/builder/vsphere/iso/step_create.go @@ -43,8 +43,10 @@ import ( // } // ``` type NIC struct { - // Set the network in which the VM will be connected to. If no network is specified, `host` - // must be specified to allow Packer to look for the available network. + // Set the network in which the VM will be connected to. If no network is + // specified, `host` must be specified to allow Packer to look for the + // available network. If the network is inside a network folder in vCenter, + // you need to provide the full path to the network. Network string `mapstructure:"network"` // Set VM network card type. Example `vmxnet3`. NetworkCard string `mapstructure:"network_card" required:"true"` diff --git a/website/pages/partials/builder/vsphere/clone/CloneConfig-not-required.mdx b/website/pages/partials/builder/vsphere/clone/CloneConfig-not-required.mdx index aaab5f37d..804237daa 100644 --- a/website/pages/partials/builder/vsphere/clone/CloneConfig-not-required.mdx +++ b/website/pages/partials/builder/vsphere/clone/CloneConfig-not-required.mdx @@ -6,8 +6,10 @@ - `linked_clone` (bool) - Create VM as a linked clone from latest snapshot. Defaults to `false`. -- `network` (string) - Set the network in which the VM will be connected to. If no network is specified, `host` - must be specified to allow Packer to look for the available network. +- `network` (string) - Set the network in which the VM will be connected to. If no network is + specified, `host` must be specified to allow Packer to look for the + available network. If the network is inside a network folder in vCenter, + you need to provide the full path to the network. - `notes` (string) - VM notes. diff --git a/website/pages/partials/builder/vsphere/iso/NIC-not-required.mdx b/website/pages/partials/builder/vsphere/iso/NIC-not-required.mdx index 47dadc898..fa5f0da5c 100644 --- a/website/pages/partials/builder/vsphere/iso/NIC-not-required.mdx +++ b/website/pages/partials/builder/vsphere/iso/NIC-not-required.mdx @@ -1,7 +1,9 @@ -- `network` (string) - Set the network in which the VM will be connected to. If no network is specified, `host` - must be specified to allow Packer to look for the available network. +- `network` (string) - Set the network in which the VM will be connected to. If no network is + specified, `host` must be specified to allow Packer to look for the + available network. If the network is inside a network folder in vCenter, + you need to provide the full path to the network. - `mac_address` (string) - Set network card MAC address