Skip to content

Cloud-init: change default network interface name from eth0 to ens18 #847

Discussion options

You must be logged in to vote

My bad. I thought generating network-config cloud-init template happens on the terraform provider side.
But actually, this provider sets the IP address and Gateway into network-config through Proxmox API.
Moreover, Proxmox API doesn't provide the ability to set custom interface names to cloud-init network templates.
The best way to resolve this issue is to generate a custom configuration and override the Proxmox cloud-init network configuration ( network_data_file_id ).
It is also necessary to manually generate mac_address and put it into the network-config template ( if you want to set a custom interface name )
Or
Just keep the default OS interface name. This way is a little bit dirty, b…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@vacquah
Comment options

@bpg
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by everythings-gonna-be-alright
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #833 on December 29, 2023 16:26.