From ae34850440ea3a7e65e9bfa224a5d24150d35bc5 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Sat, 26 Jul 2025 21:45:42 +1000 Subject: [PATCH] chore: Mount /dev/kvm volume with debugging --- .gitea/workflows/actions.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index f0a5ea3..b464b75 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -47,6 +47,8 @@ jobs: name: Build image runs-on: ubuntu-latest # needs: semrel_dryrun + volumes: + - /dev/kvm:/dev/kvm steps: - name: Check out repository code uses: actions/checkout@v4 @@ -97,8 +99,12 @@ jobs: libvirtd -d - ps aux | grep libvirtd - ls -l /var/run/libvirt/libvirt-sock + ls -l /dev/kvm + groups + + kvm-ok || cat /proc/cpuinfo | grep -E 'vmx|svm' + + qemu-system-x86_64 -enable-kvm --version virt-install \ --name ubuntu-harvester \ @@ -106,7 +112,7 @@ jobs: --vcpus 2 \ --disk path=ubuntu-vm/ubuntu.qcow2,size=10,format=qcow2 \ --disk path=ubuntu-vm/seed.iso,device=cdrom \ - --cdrom '/iso/Canonical/Ubuntu Server 24.04/ubuntu-24.04.2-desktop-amd64.iso' \ + --cdrom '/iso/Canonical/Ubuntu\ Server\ 24.04/ubuntu-24.04.2-desktop-amd64.iso' \ --os-variant ubuntu24.04 \ --graphics none \ --network network=default \