3

I will try to keep this question short and concise:

I have recently discovered the use of preseed and kickstart for unattended installation for numerous Linux distros. This seems to be the right way for me since I want to automate the installation process of an OS using packer, but there is a problem: It is a Desktop. Ubuntu Desktop 18.04 to be precise

I have googled this problem and found many examples, many of them with the same solution:

  1. Use Ubuntu server
  2. Install desktop on the server

That is not something I want.

I also found a possible solution - which I have not tried myself - for Ubuntu desktop 16.04, which seemed complicated even though it is well explained.
Ref: Unattended installation Ubuntu Desktop 16.04

I would really appreciate an answer or a solution to my dilemma. Giving a roughly explanation if it is possible or not.

Thanks.

EDIT: When I tried to use Packer for unattended installation it did not work.

user17378
  • 141

2 Answers2

1

I found the solution here Ubuntu 18 packer.

I've used and run the same preseed (desktop.cfg) using the newest dekstop image Ubuntu 18.04.4 along Packer version 1.5.4, and can confirm this works. Even though this example uses Virtualbox, with a little bit of adjusting it works for VMware Workstation too.

user17378
  • 141
0

If I understand correctly, you want to install custom made Ubuntu Desktop images, and not the default installation provided by the downloaded ISO. You actually don't have to use Packer for an unattended installation.

In short: Desktop and server OS use a very different installation method. Seed files are very very limited when installing desktop OS, but you may not even need them. You can just create custom desktop versions of your own with not much effort provided by Ubuntu tools. I think this might help: LiveCDCustomization . Making it truly unattended is also possible (but most of configuration should already be made in the custom image).

A wider explanation: First, we may want to understand why ubuntu server option was even suggested when considering KS and seed files, and why a different method should be used with custom desktop versions.

Ubuntu server uses the debian-installer method for most of the installation, including even most basic parts such as partition creating. It first install all the basic debians (installation components) it needs to run the most basic installer (such as partition manager), and then using them.

Debian-installer actually builds an OS from scratch with parameters of your choice, that need to be manually chosen by the user in tons of menus (that's why administrators love to use seed files).

Ubuntu desktop uses the ubiquity method with squashfs files, a compressed filesystem with many setting and debiand pre-configured for an easy live installation. You may use preseed files, but with a very limited support and range of choices (and a very very limited range of d-i commands are supported). Thus, if we want to use this method, we need to provide with a custom squashfs of a custom image we made.

Pizza
  • 1,512