Created
July 7, 2017 14:35
-
-
Save dav1x/effaafcf8a8ea742b046f6c69d8b9103 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Additional drivers for vmware and hyperv | |
echo 'add_drivers+="mptspi vmw_pvscsi "' > /etc/dracut.conf.d/vmware-fusion-drivers.conf | |
echo 'add_drivers+="hv_storvsc hv_netvsc "' > /etc/dracut.conf.d/hyperv-drivers.conf | |
# Rerun dracut for the installed kernel (not the running kernel): | |
KERNEL_VERSION=$(rpm -q kernel --qf '%{V}-%{R}.%{arch}\n') | |
dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION | |
# Embed the system open-vm-tools container. | |
atomic pull --storage ostree brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest | |
atomic images tag --storage ostree brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest registry.access.redhat.com/rhel7/open-vm-tools:latest | |
atomic --assumeyes images delete --storage ostree brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest | |
atomic install --system registry.access.redhat.com/rhel7/open-vm-tools:latest | |
# rbz 1465336 | |
echo 'runc exec -t open-vm-tools vmware-toolbox-cmd "$@"' > /usr/local/bin/vmware-toolbox-cmd | |
chmod +x /usr/local/bin/vmware-toolbox-cmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment