Need some help, usb/usb-c

lacekim](https://app.slack.com/team/USK3YQ08J) 4:01 PM

# VM specific configs
config.vm.provider "virtualbox" do |v|
v.name = "ARK Ledger App Development Box"
v.customize ["modifyvm", :id, "--memory", "1024"] # Connect Ledger Nano S throug usb
v.customize ["modifyvm", :id, "--usb", "on"]
v.customize ["modifyvm", :id, "--usbehci", "on"]
v.customize ["usbfilter", "add", "0",
"--target", :id,
"--name", "Ledger Nano S",
"--manufacturer", "Ledger",
"--product", "Nano S"]
end And im running a macbook pro with usb-c’s.

mikecallahan@Mikes-MacBook-Pro  ~/VagrantVMs/ledger   master  vagrant up --provider virtualbox
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Box ‘ubuntu/bionic64’ could not be found. Attempting to find and install…
default: Box Provider: virtualbox
default: Box Version: 20190814.0.0
==> default: Loading metadata for box ‘ubuntu/bionic64’
default: URL: https://vagrantcloud.com/ubuntu/bionic64
==> default: Adding box 'ubuntu/bionic64' (v20190814.0.0) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/ubuntu/boxes/bionic64/versions/20190814.0.0/providers/virtualbox.box
default: Download redirected to host: cloud-images.ubuntu.com
==> default: Successfully added box 'ubuntu/bionic64' (v20190814.0.0) for 'virtualbox'!
==> default: Importing base box 'ubuntu/bionic64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/bionic64' version '20190814.0.0' is up to date...
==> default: Setting the name of the VM: ARK Ledger App Development Box
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below. Command: ["startvm", "fc62835d-d20a-461b-840e-b990141d90b4", "--type", "headless"] Stderr: VBoxManage: error: Implementation of the USB 2.0 controller not found!
VBoxManage: error: Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings.
VBoxManage: error: Note! This error could also mean that an incompatible version of the 'Oracle VM VirtualBox Extension Pack' is installed (VERR_NOT_FOUND)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole ✘ mikecallahan@Mikes-MacBook-Pro  ~/VagrantVMs/ledger   master 

Vagrant.configure(“2”) do |config|

# Specify the base box
config.vm.box = "ubuntu/bionic64"
config.vm.box_version = "20190814.0.0"

# set the `app`, `examples`, `glyphs`, and `src` folders for syncing
config.vm.synced_folder("apps/", "/home/vagrant/apps/",
                        id: "appsdir",
                        :create => true,
                        type: "virtualbox")
config.vm.synced_folder("examples/", "/home/vagrant/apps/ledger-app-ark/examples/",
                        id: "examplesdir",
                        :create => true,
                        type: "virtualbox")
config.vm.synced_folder("glyphs/", "/home/vagrant/apps/ledger-app-ark/glyphs/",
                        id: "glyphsdir",
                        :create => true,
                        type: "virtualbox")
config.vm.synced_folder("src/", "/home/vagrant/apps/ledger-app-ark/src/",
                        id: "srcdir",
                        :create => true,
                        type: "virtualbox")

# copy the rebuild script and app Makefile to vagrant machine
config.vm.provision("file",
                    source: "./scripts/rebuild.sh",
                    destination: "/home/vagrant/apps/ledger-app-ark/scripts/")
config.vm.provision("file",
                    source: "./Makefile",
                    destination: "/home/vagrant/apps/ledger-app-ark/")

# Copy Icons
config.vm.provision("file",
                    source: "./icons/nanos_app_ark.gif",
                    destination: "/home/vagrant/apps/ledger-app-ark/icons/")
config.vm.provision("file",
                    source: "./icons/nanox_app_ark.gif",
                    destination: "/home/vagrant/apps/ledger-app-ark/icons/")

# VM specific configs
config.vm.provider "virtualbox" do |v|
    v.name = "ARK Ledger App Development Box"
    v.customize ["modifyvm", :id, "--memory", "1024"]

    # Connect Ledger Nano S throug usb
    v.customize ["modifyvm", :id, "--usb", "on"]
    v.customize ["modifyvm", :id, "--usbehci", "on"]
    v.customize ["usbfilter", "add", "0",
                 "--target", :id,
                 "--name", "Ledger Nano S",
                 "--manufacturer", "Ledger",
                 "--product", "Nano S"]
end

# Shell provisioning
config.vm.provision "shell" do |s|
    s.path = "scripts/provision.sh"
end

end

And im running a macbook pro with usb-c’s. not USB 2.0 ports

Hi there,

There’s a line in the Vagrantfile that does a bit of VirtualBox-specific configuration:

 v.customize ["modifyvm", :id, "--usbehci", "on"]

This command enables the USB 2.0 (OHCI + EHCI) Controller in the VM. In order for that to work you need to install the VirtualBox Oracle VM VirtualBox Extension Pack. You can download it by clicking on the link that says “All Supported Platforms”. You may need to download an older version of the extension pack if you’re not using the latest version of VirtualBox.

Cheers!