test/image: don't fallback to hvf/tcg if kvm is not available
-cpu host cannot be used with anything else than kvm. This commit removes hvf and tcg because it doesn't make any sense with -cpu host. If this causes some issues for anyone, we can revert back and remove -cpu host.
This commit is contained in:
parent
0c354e34e4
commit
3ba8c79e5e
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ func withBootedQemuImage(image string, ns netNS, f func() error) error {
|
|||
"-smp", strconv.Itoa(runtime.NumCPU()),
|
||||
"-m", "1024",
|
||||
"-snapshot",
|
||||
"-M", "accel=kvm:hvf:tcg",
|
||||
"-M", "accel=kvm",
|
||||
"-cdrom", cloudInitFile.Name(),
|
||||
"-net", "nic,model=rtl8139", "-net", "user,hostfwd=tcp::22-:22",
|
||||
"-nographic",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue