Virtualbox Windows 7 X64 Install

The xcrun: error: invalid active developer path implies that you don't have the CLT installed. As others already said, run xcode-select --install to fix this. Homebrew relies on CTL being present, so if you want to run brew you must install it.