debian-installer (d-i) as a service
Usage
Debian
- Download an official Debian netinst image (*-netinst.iso) or set up dhcp&tftp to use netboot.tar.gz for PXE.
- Visit the demo site, edit, and save your preseed.cfg and late_command script.
- Boot from the netinst image you just downloaded or boot into PXE you just set up with the following kernel parameters.
auto=true url=sylee.org
If you need less prompts to achieve the fully automatic installation,
auto=true url=sylee.org priority=critical netcfg/get_hostname=debian
- Check B.2. Using preseeding - B.2.3. Auto mode to see how Debian stable works.
Ubuntu
- Download an official Ubuntu netboot image (mini.iso) or set up dhcp&tftp to use netboot.tar.gz for PXE.
- Visit the demo site, edit, and save your preseed.cfg and late_command script.
- Boot from the netboot image you just downloaded or boot into PXE you just set up with the following kernel parameters.
auto=true url=sylee.org
If you need less prompts to achieve the fully automatic installation,
auto=true url=sylee.org priority=critical netcfg/get_hostname=ubuntu
- Check B.2. Using preseeding - B.2.3. Auto mode to see how Ubuntu LTS works.
Setup the service
$ git clone --depth=1 https://github.com/fourdollars/diaas.git
$ cd diaas
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ FLASK_ENV=development FLASK_APP=service.py flask run --host=0.0.0.0