Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ubuntu 20.04 server autoinstallation HowTo
Ventoy has a plugin to work with the debian autoinstaller. Unfortunately, Ubuntu 20 comes with a new auto install method (cloud-init), which works differently. At first, I wasn't able to get it to work with Ventoy, so I made an account to ask for help; in the time it took the account to get activated, I solved the problem however. So here's how to do it in case anyone else has the same problem.

A working auto installer needs two files, one `meta-data` and one `user-data`. These need to be on a partition that has `cidata` as the partition label.

These files can not be put into the same partition that has the iso files, because that partition is locked while the booted software is running.

So, to get it to work:

  • When running Ventoy for the first time to install it on the USB drive, leave some space for a 3rd partition. On linux, that's `-r 16` to leave 16 MB at the end of the medium.
    ventoy-1.0.36/ -I /dev/sdX -r 16
  • Create a new partition on the medium
    fdisk /dev/sdX
    n (new)
    p (partition)
    3 (partition number)
    press return twice to confirm the sector numbers
    t (type)
    3 (partition number)
    7 (vfat partition type)
  • format it to vfat, and name it `cidata`.

    mkfs.vfat -n cidata /dev/sdX3
  • copy the ubuntu installer iso to the first partition, and your user-data and meta-data to the third partition
More information about user-data is at meta-data can be left empty unless you know what you're doing and want to have some version control for different configs.

Messages In This Thread
Ubuntu 20.04 server autoinstallation HowTo - by gbl - 03-02-2021, 01:46 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)