Skip to content

Instantly share code, notes, and snippets.

@clouetb
Created November 2, 2019 21:37
Show Gist options
  • Save clouetb/6c29af68a10bdbb2241e27ee61d05f9c to your computer and use it in GitHub Desktop.
Save clouetb/6c29af68a10bdbb2241e27ee61d05f9c to your computer and use it in GitHub Desktop.
Vagrant set usb controller present for VMWare
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/centos-8"
config.vm.provider "vmware_desktop" do |vm|
vm.vmx["usb_xhci.present"] = "TRUE"
vm.vmx["usb.present"] = "TRUE"
vm.vmx["ehci.present"] = "TRUE"
vm.vmx["usb_xhci.present"] = "TRUE"
# Apparently GUI must be present for automatic plugging onto the guest to be working
vm.gui = true
vm.vmx["usb.generic.pluginAction"] = "guest"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment