Backport/Add useful features and fixes from upstream
- Allow customizing of virt-sysprep behaviour on package.
- Use fetch to obtain environment variable value in package_domain.
- Halt a domain before packaging it as a box to avoid hard to debug
issues.