#!/bin/bash -x

find /var/run/libvirt/qemu -name "*.xml" -exec sed -i -e '/disable-ksm/d' {} \;
find /var/run/libvirt/qemu -name "*.xml" -exec sed -i -e '/virtio-net-pci.__com_redhat_macvtap_compat/d' {} \;

rpm -Uvh --force --nodeps *.rpm
service libvirtd restart
