Skip to content

Instantly share code, notes, and snippets.

@dav1x
Created July 7, 2017 14:35
Show Gist options
  • Save dav1x/effaafcf8a8ea742b046f6c69d8b9103 to your computer and use it in GitHub Desktop.
Save dav1x/effaafcf8a8ea742b046f6c69d8b9103 to your computer and use it in GitHub Desktop.
# 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