<commit_before>This is a JSON template, a preseeding configuration for the Debian Installer (d-i), and helper scripts to automatically build Vagrant boxes [1] from Debian "testing" daily snapshots [2] with HashiCorp's Packer [3], which carry a base system.

To use this, a Packer binary [4] and Virtualbox [5] must be present.
There's a Debian package of Packer [6] becoming available for Debian 9, and other distributions have packages for that, too.
I've tested everything against Virtualbox 5.1.10, but other versions should also work.
The builder of Packer needs the guest additions ISO image for Virtualbox, and downloads the corresponding version from <http://download.virtualbox.org/virtualbox>, if it's not to be found in one the usual places for it on the build machine.

There's a Makefile included which conveniently provides the MD5 hash of the Debian netinst ISO for the Packer template.
If you have GNU Make, awk and wget available you could just do:
```
$ make create
```

Otherwise, you could run the template with:
```
MD5=<hash> packer build debian-testing-vagrant.json
```
where `<hash>` must be copied from <http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/MD5SUMS> (it's the hash for `debian-testing-amd64-netinst.iso`).
Like:
```
MD5=b92a4e25eb9997824b6d0f33198327e6 packer build debian-testing-vagrant.json
```

A fast internet connection is needed for good performance.
If the time needed to install the Debian base system within the virtual machine exceeds the preset timeout for Packer to wait for SSH to become available for that (25 minutes), you could expand `ssh_wait_timeout` in the template as it's needed.

When the box is created it could be used with Vagrant.<commit_msg>non-POSIX usage pointer too subtle<commit_after>This is a JSON template, a preseeding configuration for the Debian Installer (d-i), and helper scripts to automatically build Vagrant boxes [1] from Debian "testing" daily snapshots [2] with HashiCorp's Packer [3], which carry a base system.

To use this, a Packer binary [4] and Virtualbox [5] must be present.
There's a Debian package of Packer [6] becoming available for Debian 9, and other distributions have packages for that, too.
I've tested everything against Virtualbox 5.1.10, but other versions should also work.
The builder of Packer needs the guest additions ISO image for Virtualbox, and downloads the corresponding version from <http://download.virtualbox.org/virtualbox>, if it's not to be found in one the usual places for it on the build machine.

There's a Makefile included which conveniently provides the MD5 hash of the Debian netinst ISO for the Packer template.
If you have GNU Make, awk and wget available you could just do:
```
$ make create
```

Otherwise, you could run the template with:
```
$ MD5=<hash> packer build debian-testing-vagrant.json
```
where `<hash>` must be copied from <http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/MD5SUMS> (it's the hash for `debian-testing-amd64-netinst.iso`).
Like:
```
$ MD5=b92a4e25eb9997824b6d0f33198327e6 packer build debian-testing-vagrant.json
```

A fast internet connection is needed for good performance.
If the time needed to install the Debian base system within the virtual machine exceeds the preset timeout for Packer to wait for SSH to become available for that (25 minutes), you could expand `ssh_wait_timeout` in the template as it's needed.

When the box is created it could be used with Vagrant.
{'fraction_non_alphanumeric': 0.07181688125894134, 'fraction_numerical': 0.025178826895565092, 'mean_word_length': 4.865771812080537, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1477595', 'n_tokens_mistral': 1056, 'n_tokens_neox': 952, 'n_words': 485}