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:
Ondřej Budai 2020-05-01 20:59:51 +02:00
parent 0c354e34e4
commit 3ba8c79e5e

View file

@ -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",