Skip to content

Instantly share code, notes, and snippets.

@wvengen
Last active October 5, 2015 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wvengen/f143793e63684509565d to your computer and use it in GitHub Desktop.
Save wvengen/f143793e63684509565d to your computer and use it in GitHub Desktop.
Running a VST with Carla in a VM using netjack

Testing Carla's VST bridge in a VM with netjack

Install Ubuntu Server 15.04 in VirtualBox and enable OpenSSH. Then:

sudo apt-get install -yy apt-transport-https software-properties-common wget
wget https://launchpad.net/~kxstudio-debian/+archive/kxstudio/+files/kxstudio-repos_9.2.0~kxstudio1_all.deb
sudo dpkg -i kxstudio-*.deb
sudo apt-get update
sudo apt-get -yy install --no-install-recommends \
  kxstudio-default-settings jackd \
  carla-git carla-bridge-win32 mda-lv2 wine unzip
sudo addgroup <username> audio

mkdir -p ~/.vst
wget http://mda.smartelectronix.com/vst/mdaPiano.zip
unzip mdaPiano.zip
mv 'mda Piano.dll' ~/.vst/mda_piano.dll

wineboot   # and cancel all dialogs

Login and logout. On the host Linux machine run jack and load the net server by running jack_load netmanager -i '-a <host ip>'. Then ssh on one terminal to the virtual machine and run

jackd -R -d net -a <host ip>

On the host you should see a new block appear. Connect audio output to system output, and a (virtual jack) keyboard to the midi input. (I had the VirtualBox network adapter running in bridged mode, but it might work with NAT as well.)

On another terminal, ssh to the virtual machine with X forwarding (ssh -X vbox). Run Carla in the background to manage jack connections, and test a native instrument by calling the bridge directly:

carla &
/usr/lib/carla/carla-bridge-posix64 lv2 - http://drobilla.net/plugins/mda/Piano

After connecting midi and audio, you should be able to play on the piano and hear it. Now that everything is working, let's try a Win32 VST.

/usr/lib/carla/carla-bridge-win32.exe vst ~/.vst/mda_piano.dll piano

Connect midi and audio, you should be able to play the piano and hear it. Unfortunately, it doesn't work.

@falkTX
Copy link

falkTX commented Oct 2, 2015

you say 15.04.3 but that doesn't sound right.
I guess you meant 14.04.3

@falkTX
Copy link

falkTX commented Oct 2, 2015

well, I just tried that and hmm, the dll synth works fine...

@falkTX
Copy link

falkTX commented Oct 5, 2015

I'm dumb. The link you posted is for trusty, not vivid where this bug actually happens.
I'll reinstall and report back.

@wvengen
Copy link
Author

wvengen commented Oct 5, 2015

Thanks for noticing, I updated the link. Indeed 15.04 is where it doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment