Current best solution for running bitcoind on an AppVM:
Download the binaries, run bitcoind as `user`

Disadvantages:
- bitcoind runs as the main VM user, no isolation
- no automatic updates of bitcoind
- no systemd service file, have to hack something together with `rc.local` to get bitcoind to start on VM boot

Nicer approach:
install bitcoind via the Snapcraft Store, so we have systemd integration, automatic updates, bitcoind running as a separate user

Attempted implementation steps:
- on debian-10 template, `sudo apt install -y snapd qubes-snapd-helper`
- reboot template and appVM
- on VM run `sudo snapd install bitcoin-core`
- reboot VM

Result:
- bitcoind does not appear as a service, `bitcoind` at the command line produces file-not-foud

Additionally, trying to manually create a `bitcoind` user doesn't work. After linking /etc/passwd, group, gshadow, passwd-, shadow, subgid, subuid into bind-dirs using /rw/config/qubes-bind-dirs.d/50_user.conf, `sudo adduser` produces the error:

$ sudo adduser bitcoind
Adding user `bitcoind' ...
Adding new group `bitcoind' (1001) ...
groupadd: failure while writing changes to /etc/group
adduser: `/sbin/groupadd -g 1001 bitcoind' returned error code 10. Exiting


--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20200227151830.GB1180%40danwin1210.me.

Reply via email to