Skip to content

Commit

Permalink
Use qemu-kvm in the qemu task for rpm based systems.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
  • Loading branch information
andrewschoen committed Jan 8, 2015
1 parent 574be5b commit 8f53688
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tasks/qemu.py
Expand Up @@ -169,14 +169,21 @@ def run_qemu(ctx, config):
]
)

base_file = '{tdir}/qemu/base.{client}.qcow2'.format(tdir=testdir, client=client)
base_file = '{tdir}/qemu/base.{client}.qcow2'.format(
tdir=testdir,
client=client
)
system_type = teuthology.get_system_type(remote)
qemu_cmd = 'qemu-system-x86_64'
if system_type == "rpm":
qemu_cmd = "/usr/libexec/qemu-kvm"
args=[
'adjust-ulimits',
'ceph-coverage',
'{tdir}/archive/coverage'.format(tdir=testdir),
'daemon-helper',
'term',
'qemu-system-x86_64', '-enable-kvm', '-nographic',
qemu_cmd, '-enable-kvm', '-nographic',
'-m', str(client_config.get('memory', DEFAULT_MEM)),
# base OS device
'-drive',
Expand Down

0 comments on commit 8f53688

Please sign in to comment.