Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

enhance(vmware): Add kickstart/firstboot handling #375

Merged
merged 5 commits into from
Jul 30, 2021
Merged

Conversation

sygibson
Copy link
Contributor

@sygibson sygibson commented Jul 16, 2021

Adds enhanced vmnic handling in the Kickstart (Weasel) installer, and in the Firstboot network configuration.

Introduces two new Params:

  • esxi/network-kickstart-vmnic
  • esxi/network-firstboot-vmnic

These params take precedence overesxi/vmnic-device if they are set. This allows VMware ESXi installations to start Kickstart install and switch to Firstboot configuration on different Physical NICs more cleanly.

This code change is designed to support the complete transition from an installer (kickstart) NIC (eg vmnic0) device, to a completely different physical NIC device (eg vmnic1). As a part of this transition, it's necessary to destroy the associated vmk0 device in vSwitch0, and recreate it, assigning the new physical NIC MAC address (eg vmnic1) to the vmk0 virtual switch port. Otherwise, ESXi assigns a dynamic randomly generated MAC address, which can cause confusion for DHCP operations.

Limited support exists for "toggling" VMNIC assignments back and forth. For use of this feature in a non-standard "kickstart install, transition to firstboot configuration", you MUST set both of these new VMNIC devices to the correct current value, and newly requested vmnic device for the transition to succeed.

Existing Firstboot network configuration behaviors should not have been impacted or changed by this feature enhancement.

@galthaus galthaus merged commit f7fcfef into v4 Jul 30, 2021
@galthaus galthaus deleted the vmnic-enhancements branch July 30, 2021 03:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants