This will become part of the testgen fixture. See the work done in the infrastructure test_pxe_provisioning for a starter.