If by "VBOX" you mean Oracle Virtual Box, then I am fairly sure that allows you to create and mount shared drives/folders... you'd need to set up one for either the drive that your Bitcoin Core datadir is on, or for the datadir itself. "electrs" needs to be able to read the Bitcoin Core folder... as you pass it in with the --daemon-dir commandline argument when you start electrs.
WSL appears to have full access to the Windows file system with all my drives available in /mnt (/mnt/c, /mnt/e, /mnt/j for C:, E: and J: etc), so it's very easy... in my case: "--daemon-dir /mnt/e/Bitcoin"
@HCP Thank you for quick reply.
1. Can I run electrs with my current setup? That includes just Electrum and electrs installed in Ubuntu, but not bitcoin core. I can try using the shared folders of Virtual Box but I am not sure how to start electrs and use the right arguments to tell it to access bitcoin on Windows 10.
What would be the full argument line to run electrs the right way to do that?
2. I can try and work with WSL of course. It can be even better. In that case, could you please tell me what steps I need to follow? What software should I install in WSL? Also, is it possible to copy-paste (move) the full WSL installation to another Windows 10 PC? I would hate to have to do it all again and I need to have this running on 2 PCs.
HCP, again, thank you so much for bothering to get back to me that fast, I now feel I might be able to get it right with your help, if you could help with #1 and #2. All the best to you.
UPDATE: I managed to connect to my Windows 10 bitcoin datadir from within Ubuntu, after I also installed bitcoind in Ubuntu.
Now I am trying to install electrs but when I use: cargo run --release -- -vvv --timestamp --db-dir ./db --electrum-rpc-addr="127.0.0.1:50001", I get error: could not find `Cargo.toml` in `/home/MYUSER` or any parent directory.
What is that error? I am following the instructions for electrs here:
https://github.com/romanz/electrs/blob/master/doc/usage.mdWhat is the proper way to install and run electrs in Ubuntu? Thank you in advance!!!