Skip to content

Commit

Permalink
enable kvm?
Browse files Browse the repository at this point in the history
  • Loading branch information
cfergeau committed May 16, 2024
1 parent 8a8fd1b commit 2b22b5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ jobs:

- name: Install qemu
run: |
sudo apt install qemu-kvm
sudo modprobe kvm
#sudo apt install qemu-kvm
sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system
sudo usermod -a -G libvirt $USER
#sudo modprobe kvm
- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion test/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func qemuArgs() string {
if runtime.GOOS == "darwin" {
return "-machine q35,accel=hvf:tcg -smp 4 -cpu host"
}
return "-cpu host"
return "-machine q35,accel=kvm -smp 4 -cpu host"
}

func createSSHKeys() (string, error) {
Expand Down

0 comments on commit 2b22b5d

Please sign in to comment.