- Install VM Extension pack in Virtual Machine
- Enable USB2.0 (EHCI) Controller in VM Settings
- Start-up and and shutdown VM, to ensure VM installs driver required by USB2.0 Controller
- Add USB filter for ST-Link/V2 USB programmer. (Do enter serial number , VM has issue with serial number containing non-readable ascii characters. )
- Install ST-Link utility in VM.
- Plug-in ST-Link programmer. Note: Host may install driver for USB2.0 Controller. Apparently this only works on USB2.0 host port , but later versions of Virtual Box may support USB3.0 ports.
If you got error:
Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.
- try to run virtualbox under root (sudo)
- Add user to vboxusers group sudo adduser $USER vboxusers
- try to modify /etc/fstab none /proc/bus/usb usbfs devgid=128,devmode=664 0 0
- reboot your system!