Skip to main content
The 2024 Developer Survey results are live! See the results
9 votes
Accepted

Preseed Ubuntu / Debian - Partitioning: prevent "Partition 1 does not start on physical sector boundary."

Change your d-i partman/alignment parameter to optimal instead of cylinder. This should fix the issue.
Tero Kilkanen's user avatar
9 votes

Preseed automatic partitioning

Special notes It wasn't mentioned whether there is bios_grub, ESP, GPT or MBR, or which method the firmware uses. When using GPT, you need one or the other (or both). So what will happen is the ...
Peter's user avatar
  • 2,876
6 votes

What do the 3 numbers mean in manual partitioning of HDD in Ubuntu preseed?

The three numbers are minimum size, priority, and maximum size. If there is enough disk space to create this partition and all the partitions with a higher priority value with their maximum sizes, and ...
telcoM's user avatar
  • 4,628
5 votes
Accepted

Preseeding debian 11 fully unattended (get rid of questions)

I found a way to do it ! Thanks to this post on the opposite problem I just added two parameters to my boot line in grub.cfg netcfg/get_hostname=install netcfg/get_domain=install It is now fully ...
proxyd43's user avatar
  • 162
5 votes

Passing variables to use in the preseed file for a Debian Jessie installation

It depends on what OS you are using, but the Linux kernel will let you specify environment variables as kernel parameters. The Linux kernel documentation has some good information around it (important ...
wheeler's user avatar
  • 299
4 votes
Accepted

Can I prevent Debian from hitting DHCP server twice during installation?

The first DHCP DORA (Discover, Offer, Request, Accept) sequence is triggered by the client PXE firmware trying to find an IP/MASK and the PXE data (NBP + TFTP location). The PXE firmware then TFTP ...
Pat's user avatar
  • 3,599
3 votes
Accepted

Preseed automatic partitioning

TL;DR: The wrong image was mounted. Thanks to @Peter for pointing me that way. The long story: After Peters comment I rechecked my whole iso build pipeline, the .seed files, the isolinux txt.cfg, ...
Gerald Schneider's user avatar
3 votes
Accepted

dpkg-reconfigure: dialog frontend sets up postfix successfully; non-interactive frontend fails

The postfix config files including /etc/mailname CANNOT be changed using debconf-set-selections and dpkg-reconfigure once the postfix config files have been written out. I burnt way too many hours ...
Firefishy's user avatar
  • 235
3 votes

How to use/debug Debian preseed with SSL using Startssl Certs

@alekibango and @bahamat are correct, wget from busybox is not compiled to support SSL. But as of 2014, you can enable the --no-check-certificate parameter via the boot parameter: debian-installer/...
xsc27's user avatar
  • 31
2 votes

Passing variables to use in the preseed file for a Debian Jessie installation

While looking to solve much the same issue I learned about some magic that is baked into the debian-installer. You can use preseed_fetch to pull from the URL if you add a /./ at the point in the URL ...
dragon788's user avatar
  • 856
2 votes
Accepted

preseed command string fail with newline character using virt-install initrd-inject

As far as I can tell: The backslash is an escape character for newlines in the preseed file format. If you need a backslash to appear in a shell command, the only solution I've found is to base64 ...
Gordon Messmer's user avatar
2 votes
Accepted

How to make custom partitioning of hdd via preseed?

Do you want /boot as a separate filesystem? The example in your question will create it with a minimum of 40 MB, maximum of 100 MB. If you want it to be 500 MB always, then set the three numbers for /...
telcoM's user avatar
  • 4,628
2 votes

Ubuntu 16.04 installer: any way to save setup info for a preseed?

The simplest solution would be to use one of the following tool: https://fai-project.org/ - Project was aimed to automate debian installation process, can be used with many other images. The other ...
Dmitriy Kupch's user avatar
2 votes
Accepted

Showing message to the user during a Debian unattended preseeded installation

You will be pretty limited by debconf and it may not be worth the effort. I don't think you'll be able to do it at all with a script run in-target. I did have success using the following preseed ...
Andrew Lowther's user avatar
2 votes

How do you use method "keep" in partman-auto?

The following partman recipe worked for me. I tried it with an install of Ubuntu 20.04 d-i partman-auto/expert_recipe string \ efi-boot-root :: \ 256 256 256 fat32 \ ...
Andrew Lowther's user avatar
2 votes
Accepted

cloud-init queries DHCP

If you'd like to disable cloud-init networking using the kernel cmdline, add: network-config=disabled Documentation for disabling network-config in cloud-init can be found at https://cloudinit....
falcojr's user avatar
  • 296
2 votes

How debian's preseed install work?

Change your preseed/file=/hd-media/preseed.cfg to preseed/file=/cdrom/preseed.cfg. The preseed path has to be specified with the file system layout of the installer in mind. While the initramfs is ...
anx's user avatar
  • 9,952
1 vote
Accepted

How debian's preseed install work?

Preseed files can work many ways. The specific details gets can get pretty complicated and be different based on your hardware. Assuming your installer supports your network hardware, one way is to ...
Zoredache's user avatar
  • 132k
1 vote
Accepted

What is the difference between Cloud-Init and Autoinstall?

I was struggling with the same thing for hours! Here's what seems to work (at least for me), so try this; #cloud-config autoinstall: version: 1 ... user-data: runcmd: - mkdir -m ...
Anttu's user avatar
  • 126
1 vote

What is the difference between Cloud-Init and Autoinstall?

What is the difference between Cloud-Init and Autoinstall? Subiquity uses cloud-init, and it does so by overloading the cloud-init's config file with its own custom keys. This is why subiquity's docs ...
Brett Holman's user avatar
1 vote

Ignore the warning less of swap partition while preseed loading

The solution is to add to preseed-file: d-i partman-basicfilesystems/no_swap boolean false
Budro's user avatar
  • 21
1 vote

Ubuntu Preseed - Netboot installs

you can do it by d-i preseed/late_command string in-target wget -P /tmp/ $server/script.sh; in-target chmod $+x /tmp/script.sh; in-target /tmp/script.sh` Put this line into a preseed file and you ...
Pat's user avatar
  • 3,599
1 vote
Accepted

Ubuntu 16.04 installer: any way to save setup info for a preseed?

Preseed can only configure some basic things. Often you need a config management after the preseed installation to get the whole system configured to your local needs. That's why you should look at ...
MrFAI's user avatar
  • 36
1 vote

PXE install of Debian Stretch to a host with two network devices

There is a kernel parameter to decide which network device should be used. Additionally the network parameters can be added, too. In your case you should add "ip=eth0:dhcp" (change eth0 to the ...
Marco's user avatar
  • 396
1 vote
Accepted

Debian preseed prompts disk select dispite it being seeded

As it has been discovered, you are missing a string token. So use: d-i partman-auto/method string regular instead of your current: d-i partman-auto/method regular
Patrick Mevzek's user avatar
1 vote

Debian preseed.cfg - Language not set

If you use build-simple-cdd then the parameters to skip language and keyboard questions are: build-simple-cdd --keyboard us --locale en_US.UTF-8 The reason for that is that the pressed is loaded ...
Bogdan's user avatar
  • 218
1 vote

Preeseding a debian stable install with a complex partitioning scheme - missing physical volume

For d-i partman-auto/method string crypto, you need to put a space character between in_vg and { (braces) like so: in_vg{ vg_crypto_tmp } -> in_vg { vg_crypto_tmp }
dirgnirg's user avatar
1 vote

preseeding debian netinstall does not get preseed file via http

A filename specification in the dhcp configuration will override a preseed configuration file specified in the boot string. If you're using filename to specify a pxeboot config file, the debian ...
Erik von Reis's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible