diff --git a/.github/workflows/pkr-bld-qemu-x64.yml b/.github/workflows/pkr-bld-qemu-x64.yml index 451370a6c..c851230ca 100644 --- a/.github/workflows/pkr-bld-qemu-x64.yml +++ b/.github/workflows/pkr-bld-qemu-x64.yml @@ -49,7 +49,7 @@ jobs: sudo udevadm control --reload-rules sudo udevadm trigger --name-match=kvm sudo usermod -aG kvm $USER - sudo usermod -aG libvirt $USER + sudo usermod -aG libvirtd $USER sudo systemctl start libvirtd sudo systemctl status libvirtd - name: Install Chef @@ -74,7 +74,7 @@ jobs: - name: Bento Test run: | eval "$(chef shell-init bash)" - bento test + sudo bento test # - name: Remove VM in case of canceled job # if: cancelled() # run: | diff --git a/.github/workflows/pkr-bld-virtualbox-x64.yml b/.github/workflows/pkr-bld-virtualbox-x64.yml index bca313f60..17bdcd560 100644 --- a/.github/workflows/pkr-bld-virtualbox-x64.yml +++ b/.github/workflows/pkr-bld-virtualbox-x64.yml @@ -68,14 +68,6 @@ jobs: run: | eval "$(chef shell-init bash)" bento test ${{ matrix.os }} -# - name: Remove VM in case of canceled job -# if: cancelled() -# run: | -# echo Powering off and deleting any existing VMs named ${{ matrix.os }}*-amd64 -# VBoxManage controlvm ${{ matrix.os }}*-amd64 poweroff --type headless 2> /dev/null -# sleep 1 -# VBoxManage unregistervm ${{ matrix.os }}*-amd64 --delete 2> /dev/null -# sleep 2 - name: Upload build artifact uses: actions/upload-artifact@main with: