Skip to content

Instantly share code, notes, and snippets.

@recklessop
Last active March 7, 2024 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recklessop/e0fd57999f6bc7c90de8a5c6d540e52f to your computer and use it in GitHub Desktop.
Save recklessop/e0fd57999f6bc7c90de8a5c6d540e52f to your computer and use it in GitHub Desktop.
50-cloud-init.yaml
# This netplan yaml is delivered in Azure cloud images to support
# attaching and detaching nics after the instance first boot.
# Cloud-init otherwise handles initial boot network configuration in
# /etc/netplan/50-cloud-init.yaml
network:
version: 2
ethernets:
ephemeral:
dhcp4: true
match:
driver: hv_netvsc
name: '!eth0'
optional: true
hotpluggedeth0:
dhcp4: true
match:
driver: hv_netvsc
name: 'eth0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment