Fork me on GitHub

You are here

Automating Debian installs with preseeding in a KVM environment.

I'm really eager to use Vagrant to easily set up virtual machines for testing purposes.  However I'm using KVM with libvirt and virt-manager.  Although I think VirtualBox is nice software, I'm not feeling comfortable with the license of the VirtualBox extension.  I'm looking forward to Vagrant supporting libvirt.

In the mean time I wanted to automatically install Debian machines.  I have experience with FAI, and am using it at work.  I have known about preseeding the Debian installer but have never used it.

During the installation of new machine in virt-manager you can select a network installation from HTTP.  Use the following url: http://ftp.nl.debian.org/debian/dists/squeeze/main/installer-amd64/ and the following kernel arguments: priority=critical locale=en_US url=http://192.168.122.1:8000/kvm/squeeze.txt.  I want to use the en_US local and I'm telling the installer to download the preseed file from given url.  In my case I'm running a small web server on my host machine (webfs).  I've put the preseed file available for download.

I'm nowhere near the usability that vagrant gives me, but for the time being I can live with it.  I just need to bootstrap puppet in my virtual machine.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.