-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vsphere-iso
: Add support for removing ethernet before export
#6
Comments
I also just encountered a situation for this that would be an addition. In my case I actually want to leave the NIC, but I want to swap it over to a different port-group. We have a system that requires the vlan to be set in the template already, and this creates issues. |
I would also like to see this feature of removing the network adapter after building the template and prior to uploading to a content library. |
Original Comment:
Edit: |
Hi @aronwk-aaron, et al
Ryan Johnson |
vsphere-iso
: Add support for removing ethernet before export
Adds the option to remove all network adapters at the end of the image build. Ref: #6 Signed-off-by: Ryan Johnson <[email protected]>
Adds the option to remove all network adapters at the end of the image build. Ref: #6 Signed-off-by: Ryan Johnson <[email protected]>
Adds the option to remove all network adapters at the end of the image build. Ref: #6 Signed-off-by: Ryan Johnson <[email protected]>
Adds the option to remove all network adapters at the end of the image build. Ref: #6 Signed-off-by: Ryan Johnson <[email protected]>
Adds the option to remove all network adapters at the end of the image build. Ref: #6 Signed-off-by: Ryan Johnson <[email protected]>
Adds the option to remove all network adapters at the end of the image build. Ref: #6 Signed-off-by: Ryan Johnson <[email protected]>
Adds the option to remove all network adapters at the end of the image build. Ref: #6 Signed-off-by: Ryan Johnson <[email protected]>
Adds the option to remove all network adapters at the end of the image build. Ref: #6 Signed-off-by: Ryan Johnson <[email protected]>
This issue was originally opened by @johnjelinek as hashicorp/packer#10029. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
Description
When I use the normal export capabilities from the
vsphere-iso
builder without removing the ethernet card, the ovf expects the network capabilities to be available wherever the vmdk is imported. This results in an error like this (usinggovc
in this example).To mitigate this, we've added some manual overrides to the shutdown process before the export occurs, but it feels very hacky:
Another odd nuance is that when using the
"disable_shutdown": true
, the export fromvsphere-iso
spits out a vmdk named liketemplate_name-disk-0.vmdk
otherwise it's just nameddisk-0.vmdk
, not sure why that is.Use Case(s)
The primary use-case I see is being able to ship my exported template to vcenters different from the one the template was generated on.
Versions
Packer v1.6.1
govc 0.23.0
The text was updated successfully, but these errors were encountered: