Bitcoin Forum
October 27, 2025, 06:16:21 AM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Possible to run electrs on a Linux VM on a Macbook?  (Read 75 times)
zabzob (OP)
Member
**
Online Online

Activity: 110
Merit: 40


View Profile
October 14, 2025, 02:00:23 PM
Merited by ABCbits (1)
 #1

Title says it all. Will electrs work on a Linux VM running on a Macbook?
mcdouglasx
Sr. Member
****
Offline Offline

Activity: 798
Merit: 435



View Profile WWW
October 14, 2025, 08:26:25 PM
 #2

Title says it all. Will electrs work on a Linux VM running on a Macbook?

Yes, to run Electrs on a Macbook, you first need to make sure the Linux version for the VM is compatible with Intel or Apple Silicon processors. Once you know which processor it is, you can choose the recommended one. For example, for Intel, VirtualBox and the AMD64/x86_64 operating system are recommended, and for Silicon, UTM and the ARM64/ARCH64 operating system are recommended.

The rest of the process can be done the same as in any Linux environment, using Rust to compile Electrs.

However, you should first consider whether using a VM or installing it natively on macOS is better for your needs. Installing it natively avoids the additional complexity of setting up and maintaining a virtual machine, but I'm not sure it will work perfectly with all the dependencies.

betpanda.io.
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
████████░░░░░░░░░████████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████▀░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
SPORTS
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
zabzob (OP)
Member
**
Online Online

Activity: 110
Merit: 40


View Profile
October 14, 2025, 08:49:08 PM
 #3

Title says it all. Will electrs work on a Linux VM running on a Macbook?

Yes, to run Electrs on a Macbook, you first need to make sure the Linux version for the VM is compatible with Intel or Apple Silicon processors. Once you know which processor it is, you can choose the recommended one. For example, for Intel, VirtualBox and the AMD64/x86_64 operating system are recommended, and for Silicon, UTM and the ARM64/ARCH64 operating system are recommended.

The rest of the process can be done the same as in any Linux environment, using Rust to compile Electrs.

However, you should first consider whether using a VM or installing it natively on macOS is better for your needs. Installing it natively avoids the additional complexity of setting up and maintaining a virtual machine, but I'm not sure it will work perfectly with all the dependencies.

Thanks for this informative reply. It's an M1 Pro processor, so I'd need a system compatible with Apple Silicon. I'm thinking UTM with Asahi Linux could be the way to go.

I didn't realize it's possible to run electrs natively on a Mac. I looked into this on the Github site, but only found Linux installation instructions. How would I install it natively on MacOS?
mcdouglasx
Sr. Member
****
Offline Offline

Activity: 798
Merit: 435



View Profile WWW
October 14, 2025, 09:28:48 PM
 #4

Thanks for this informative reply. It's an M1 Pro processor, so I'd need a system compatible with Apple Silicon. I'm thinking UTM with Asahi Linux could be the way to go.

I didn't realize it's possible to run electrs natively on a Mac. I looked into this on the Github site, but only found Linux installation instructions. How would I install it natively on MacOS?

I don't currently have a Mac at hand to test and give you the correct steps, and I don't dare to give you a tutorial blindly for fear of making a mistake with something, but essentially you should install Homebrew if you don't have it (to facilitate the installation of some dependencies such as OpensSl or others), followed by Rust, and once both are installed, follow the steps given in the readme of the official Electrs repository on GitHub.

betpanda.io.
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
████████░░░░░░░░░████████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████▀░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
SPORTS
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
zabzob (OP)
Member
**
Online Online

Activity: 110
Merit: 40


View Profile
October 14, 2025, 09:52:33 PM
 #5

Thanks for this informative reply. It's an M1 Pro processor, so I'd need a system compatible with Apple Silicon. I'm thinking UTM with Asahi Linux could be the way to go.

I didn't realize it's possible to run electrs natively on a Mac. I looked into this on the Github site, but only found Linux installation instructions. How would I install it natively on MacOS?

I don't currently have a Mac at hand to test and give you the correct steps, and I don't dare to give you a tutorial blindly for fear of making a mistake with something, but essentially you should install Homebrew if you don't have it (to facilitate the installation of some dependencies such as OpensSl or others), followed by Rust, and once both are installed, follow the steps given in the readme of the official Electrs repository on GitHub.

Thanks, I'll try this and post results. I'll have to wait, though, until I get an external ssd for the Macbook, as I don't currently have enough space available to run a full bitcoin node.
ABCbits
Legendary
*
Offline Offline

Activity: 3402
Merit: 9268



View Profile
October 15, 2025, 08:14:38 AM
 #6

I don't have Macbook or other Mac device. But if you goal is to run any Electrum server, you may want to consider run Fulcrum instead[1]. It's fastest electrum server implementation[2]. While you need to compile it from source code, you don't have to run Linux VM which make things slower.

[1] https://github.com/cculianu/Fulcrum
[2] https://www.sparrowwallet.com/docs/server-performance.html

zabzob (OP)
Member
**
Online Online

Activity: 110
Merit: 40


View Profile
October 15, 2025, 11:44:23 AM
 #7

I don't have Macbook or other Mac device. But if you goal is to run any Electrum server, you may want to consider run Fulcrum instead[1]. It's fastest electrum server implementation[2]. While you need to compile it from source code, you don't have to run Linux VM which make things slower.

[1] https://github.com/cculianu/Fulcrum
[2] https://www.sparrowwallet.com/docs/server-performance.html

Thanks, Fulcrum looks great. After some research, I'm considering setting up a Raspibolt to run the node and electrum server. That way I won't have to have the ssd connected to my laptop whenever I'm running the server, and I can also use it with other devices. So that means both electrs and Fulcrum are options
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!