Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.4 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.4 KB

Description

The goal is to provide simple scripts to install an amd64 Debian installation (default: buster) in qemu image from an install with PXE and a preseed.

Dependencies

$ apt install qemu-utils qemu-system-x86 qemu-kvm curl python3

Technical

  1. The build_qemu_debian_image.sh <distro_name> script will create a temporary directory and generate password
  2. Create a Simple webserver to serve the preseed.cfg file (not need to tftp)
  3. Download netboot.tar.gz from Debian repo
  4. Create the pxe configuration
  5. Create the qemu image
  6. Boot using the qemu image, pxe and preseed

boot.sh <distro_name> will boot on the newly created image.

To use a different version of Debian, update the preseed.cfg configuration:

d-i mirror/suite string buster

Credits

This is a fork from to make it work on Debian:

Known error

If you get the following error:

No kernel modules were found. This probably is due to a mismatch between the
kernel used by this version of the installer and the kernel version available
in the archive.

It is caused by a mismatch between the kernel used in the installer and the package not available on the repository. Use https://d-i.debian.org/daily-images/ instead.