5

I'm trying to run bitmonerod in a VirtualBox VM with --data-dir pointing to a directory in a shared folder from the host system. I get this error:

enter image description here

If I do the same in the host system, using the same directory in the shared folder, it works. It also works when copying the entire data dir of bitmonerod into the VM (which I want to avoid). Both host and guest are the same Linux distro (OpenSuSE Leap 42.1). Im running the official 0.9.4 binaries.

I have no clue what is the property of a shared folder that makes lmdb unhappy. It can't be a permission problem as I can read and write to the shared folder from within the VM.

villabacho
  • 1,215
  • 6
  • 15

2 Answers2

8

This will not work. VirtualBox shared folders don't support mmap, which is required for LMDB (and BDB).

hyc
  • 4,253
  • 19
  • 21
6

I personally use an external hard drive to store the blockchain and get virtual box to capture the device so it can be recognised by the VB OS. It works very well as an alternative to storing the blockchain on the virtual OS itself.

ferretinjapan
  • 6,494
  • 2
  • 20
  • 47