Use a macOS image that already contains AC2

If you only need the functional power of Apple Configurator (like scripting device restores or updates), you can install the Apple Configurator Automation Tools Apple Support