Score:0

Disable Network Configuration in Auto install user-data

am flag

I am trying install Ubuntu using autoinstall. Though I have not configured network in user-data file automatically dhcp IP gets assigned to the NIC. How can we disable it in autoinstall of Ubuntu 22.

Score:1
jp flag

Initially, the installer environment has its network configured by cloud-init using a very generic netplan configuration that uses DHCP on all physical interfaces.

Later, the installer (subiquity) will apply the network configuration provided by the autoinstall file.

Therefore, you must use cloud-init to disable networking for the initial installer environment and disable networking within the autoinstall file.

For the initial installer environment, I was able to disable networking using the kernel command line argument network-config=disabled. The complete boot argument when using a nocloud data source was

linux /casper/vmlinuz autoinstall network-config=disabled "ds=nocloud"

For the autoinstall file, it is enough to simply omit the network section. Another option is to explicitly configure an empty network configuration like this.

#cloud-config
autoinstall:
  network:
    version: 2
    ethernets: {}

notes

  • I tested using Ubuntu 22.04 (subiquity 22.04.2).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.