Debian – virt-install automatic Debian installation with preseed.cfg

debiandebian-installerlibvirtvirtual machine

I am trying to script a Debian installation using virt-install and a preseed.cfg file. I am installing into a virtual machine.

Currently, I am using an ISO file rather than a network installation.
I ran into the same problem as another user.
That is,

  1. --extra-args can not be passed when using --cdrom
  2. giving the path of the iso as --location doesn't seem to work either.

So I followed the Debian wiki instructions to modify the iso with my preseed.cfg file.

The installation now works entirely automatically, except for one final detail. The ISO I used throws up a splash screen on boot, offering the menu where the options are

  • Live (amd64)
  • Live (amd64 failsafe)
  • Install
  • Graphical Install
  • Advanced Options

Once I select 'Install' the rest works perfectly. However, I would like to skip this screen and install directly, but I can't figure out how to do so. Does it require adding an option to the debian preseed.cfg file, modifying the iso, or adding another parameter to virt-install? (Bear in mind the --extra-args constraint).

Best Answer

As you're remastering the ISO anyway, you can set a timeout in the isolinux/isolinux.cfg file. Prepend

TIMEOUT 1

and be patient for 0.1 s during boot. You could also start your desired kernel with custom arguments and skip the boot menu completely, but the above is the simplest solution if the default fits you.

Related Question