diff --git a/.github/actions/start-vm/action.yml b/.github/actions/start-vm/action.yml index c0cd4560f..9550e7a93 100644 --- a/.github/actions/start-vm/action.yml +++ b/.github/actions/start-vm/action.yml @@ -27,25 +27,20 @@ runs: steps: - name: Start VM in background run: | - $QEMU \ + ${{ inputs.qemu }} \ -cpu host \ - -drive file=$IMAGE,format=raw,if=virtio \ + -drive file=${{ inputs.image }},format=raw,if=virtio \ -enable-kvm \ -smp $(nproc) \ -nographic \ - -m $RAM \ + -m ${{ inputs.ram }} \ -display none \ -machine q35,accel=kvm \ - -nic user,model=virtio-net-pci,hostfwd=tcp::$SSH_FWD_PORT-:22 \ - $OPTIONS \ + -nic user,model=virtio-net-pci,hostfwd=tcp::${{ inputs.ssh_fwd_port }}-:22 \ + ${{ inputs.options }} \ & shell: bash env: - QEMU: ${{ inputs.qemu }} - IMAGE: ${{ inputs.image }} - SSH_FWD_PORT: ${{ inputs.ssh_fwd_port }} - RAM: ${{ inputs.ram }} - OPTIONS: ${{ inputs.options }} SSHCMD: ssh root@localhost -p ${{ inputs.ssh_fwd_port }} - name: Wait for VM to boot run: sleep 10