Skip to content

Instantly share code, notes, and snippets.

@kovagoz
Created May 3, 2021 08:55
Show Gist options
  • Save kovagoz/f114e59c4d39f45271a5c23b55273c7f to your computer and use it in GitHub Desktop.
Save kovagoz/f114e59c4d39f45271a5c23b55273c7f to your computer and use it in GitHub Desktop.
Setup docker-machine for the Go Board
#!/bin/bash
set -e
# Create the virtual machine (VM)
docker-machine create -d virtualbox default
# VM must be stopped before USB configuration
docker-machine stop
# Enable USB (OHCI!)
vboxmanage modifyvm default --usb on
# Start the VM again
docker-machine start
# Make the Go Board automatically accessible in VM
vboxmanage usbfilter add 0 --target default --name ftdi --vendorid 0x0403 --productid 0x6010
# Load the FTDI kernel module
docker-machine ssh default "sudo modprobe ftdi_sio"
# Setup docker environment variables for the CLI client
eval $(docker-machine env default)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment