Visual Basic is a 'Windows only' application used to program for
Windows - it ain't gonna work in Ubuntu no matter what you try
If the VM works then that's what you'll need to do, at least you don't
have to dual-boot.
Next question is what are you wanting to program for ? You'll get
nowhere fast trying to use VB to program for Ubuntu !