Skip to content

Instantly share code, notes, and snippets.

@jrandiny
Last active March 28, 2025 14:09
Show Gist options
  • Save jrandiny/4b60d64b6fe598337a86064578e2b3cd to your computer and use it in GitHub Desktop.
Save jrandiny/4b60d64b6fe598337a86064578e2b3cd to your computer and use it in GitHub Desktop.
Fresh Install of Ubuntu 24.04 Desktop to existing LVM PV/LV partition

The new Ubuntu 24.04 desktop installer doesn't support installing to existing LVM partiton (https://bugs.launchpad.net/ubuntu-desktop-provision/+bug/2058511)

DISCLAIMER: I am not responsible for any damage or negative consequences to your system

However there are workaround that we can use

  • Download Ubuntu 24.04 server and desktop installer
  • Install Ubuntu 24.04 server to your existing LVM partition
  • Create a autoinstall.yml file
    • Copy the template below
    • Copy the .autoinstall.storage.config section from /var/log/installer/autoinstall-user-data of the Ubuntu 24.04 server installation and put it inside the same section in your autoinstall.yml file
  • Boot into Ubuntu 24.04 desktop installer and choose "Try ubuntu" when asked "What would you like to do with Ubuntu?"
  • Put the autoinstall.yml file on the live system home folder
  • Open terminal and run python3 -m http.server on the home folder
  • Open the Ubuntu installer app and select "Automated installation" when asked "How would you like to install Ubuntu?"
  • Use http://localhost:8000/autoinstall.yml for the autoinstall.yml URL

References:

autoinstall:
version: 1
interactive-sections:
- identity
- locale
- keyboard
source:
search_drivers: true
storage:
version: 1
config:
< copy from /var/log/installer/autoinstall-user-data >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment