| |
@@ -285,8 +285,12 @@
|
| |
param_m = str(fmf_get(['qemu', 'm'], "1024"))
|
| |
param_net_nic_model = str(fmf_get(['qemu', 'net_nic', 'model'], 'virtio'))
|
| |
# Use -cpu host and -smp by default.
|
| |
+ path_lookups = ["/usr/bin/qemu-system-x86_64", "/usr/libexec/qemu-kvm"]
|
| |
+ for qemu_path in path_lookups:
|
| |
+ if os.path.exists(qemu_path):
|
| |
+ break
|
| |
# virtio-rng-pci: https://wiki.qemu.org/Features/VirtIORNG
|
| |
- qemu_cmd = ["/usr/bin/qemu-system-x86_64",
|
| |
+ qemu_cmd = [qemu_path,
|
| |
"-cpu", "host", "-smp", get_qemu_smp_arg(),
|
| |
"-m", param_m, image, "-enable-kvm", "-snapshot", "-cdrom", cloudinit,
|
| |
"-net", "nic,model=%s" % param_net_nic_model, "-net", "user,hostfwd=tcp:127.0.0.3:{0}-:22".format(port),
|
| |
Signed-off-by: Andrei Stepanov astepano@redhat.com