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 ef1d601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ jobs:
- name: Install qemu
run: |
sudo apt install qemu-kvm
sudo modprobe kvm
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 ef1d601

Please sign in to comment.