Merge pull request #1293 from ceph/wip-17977-fix

qemu: Set permissions on /dev/kvm

Reviewed-by: Dan Mick <dmick@redhat.com>
This commit is contained in:
Dan Mick 2016-11-30 15:15:15 -08:00 committed by GitHub
commit 47cd4f4608

View File

@ -292,6 +292,13 @@ def run_qemu(ctx, config):
tdir=testdir,
client=client
)
# Hack to make sure /dev/kvm permissions are set correctly
# See http://tracker.ceph.com/issues/17977 and
# https://bugzilla.redhat.com/show_bug.cgi?id=1333159
remote.run(args='sudo udevadm control --reload')
remote.run(args='sudo udevadm trigger /dev/kvm')
remote.run(args='ls -l /dev/kvm')
qemu_cmd = 'qemu-system-x86_64'
if remote.os.package_type == "rpm":
qemu_cmd = "/usr/libexec/qemu-kvm"