ede53b1dcb
Change-Id: I37d737509bc7cf3dc74bb13ecb0a6ae68080556e Partial-Bug: #1546944
15 lines
350 B
Bash
15 lines
350 B
Bash
#!/bin/bash
|
|
|
|
# TODO(SamYaple): Tweak libvirt.conf rather than change permissions.
|
|
# Fix permissions for libvirt
|
|
# Do not remove unless CentOS has been validated
|
|
if [[ -c /dev/kvm ]]; then
|
|
chmod 660 /dev/kvm
|
|
chown root:kvm /dev/kvm
|
|
fi
|
|
|
|
# Mount xenfs for libxl to work
|
|
if [[ $(lsmod | grep xenfs) ]]; then
|
|
mount -t xenfs xenfs /proc/xen
|
|
fi
|