OK! If you still want the other path, can you try:
$ touch /home/richard/data/musiclibrary.db
to see if there’s a permissions problem or something else?
Also, any particular reason you’re using a VM instead of running beets directly on your Mac? (That’s what I do; it works great.)