From d987936b99984d99e3cfe70a4668c5290a6f2a08 Mon Sep 17 00:00:00 2001 From: Jeffrey Martin Date: Fri, 21 Aug 2020 13:59:15 -0500 Subject: [PATCH] import libvirt box `packer` build `provider` is not consistent at this time. type qemu builder in the current packer config reports provider as `libvirt` --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index a182311..6cb9831 100755 --- a/build.sh +++ b/build.sh @@ -173,6 +173,9 @@ for provider in $providers; do echo "NOTE: If you are having issues, try starting over by doing 'vagrant destroy' and then 'vagrant up'." else if [ -z $box_import ]; then + if [ $provider = "qemu" ]; then + provider="libvirt" + fi if vagrant box add $packer_build_path/"$os_full"_"$provider"_"$box_version".box --name rapid7/metasploitable3-$os_short; then echo "Box successfully added to Vagrant." else