How to use XMR-STAK? Beginners guide to xmr-stak CryptoNight miner – v7

Basically to get started with mining any Cryptocurrency  you’ll need three things. 1. Hardware (CPU or GPU). 2. Wallet address of the currency to send your mining income. 3. A mining software that lets your hardware to connect to pool stratum and mine a specific algorithm or coin. There are variety of Cryptocurrency hashing algorithms and one among the most popular one is CryptoNight.

CryptoNight is a Proof-of-Work mining algorithm that is designed to be mineable using consumer grade CPUs and GPUs. Bytecoin (BCN) and Monero (XMR) are the early currencies to use CryptoNight followed by Electroneum, Sumokoin and Aeon. Currently there are many CryptoNote forked coins that are powered by this CryptoNight hashing algorithm.

CryptoNight Miner

To mine Monero or cryptonight or cryptonight_lite coins there are several mining applications such as:

CCMiner and XMR STAK for NVIDIA Cards

Wolf’s Miner, XMRig, XMR STAK and CastXMR for AMD Cards

Wolf’s Miner, XMR STAK, XMRig and Monero Spelunker for Intel and AMD CPU.

XMR-STAK – All-in-One Mining Software for CryptoNight

Among those miners XMR-STAK is the only program that supports mining with CPU, NVIDIA GPUs and AMD GPUs. Also it is available for Windows, Linux and MacOS. XMR-Stak is a universal stratum pool miner to mine crypto currencies like Monero, SumoKoin, Electroneum and basically any coins that are powered by cryptonight and cryptonight_lite  algorithm.

XMR Stak is well optimized and it is known to significantly generate more hashrates than any other miners. Here in this beginners guide we’ll be showing you how to use XMR-STAK miner. We are not covering any coins specifically. We’ll just show you how to install xmr stak, configure and connect it to a pool. In addition to that we’ll add some tips, tricks and fixes.

CryptoNight algorithm was formerly ASIC resistant. After the recent release of ASICs, coins like Monero and Electroneum has announced  that they will hard fork to V7 (Monero Hard Fork Countdown). They will be switching PoW to CryptoNight V7 to combat ASIC machines. While they are on their way; coins like Stellite, Aeon and few others have already forked to CryprtoNightV7. For this particular V7 algorithm the only miner that is currently available is Stack-XMR. So in addition to configuring xmr stak this guide should also help you get started with mining cryptonight V7 algorithm.

Note: By default pre compiled xmr-stak miner comes with 2% fee. If you wish you can download the binaries source from github, remove the fees and compile it.

Getting Started

Step 1: Go to xmr stak github release page and download the latest version. You’ll find releases from fireice-uk and psychocrypt. At the time of writing this article the latest released version is 2.4.2.

downloading xmr stak

Step 2: Download the zip file to your computer. Once done unzip the file into a directory as you wish. While doing this your Windows defender or Antivirus may flag / block your miner. It’s nothing to worry about so just add exclusions to the miner.

Step 3: Once extracted; inside the folder you’ll find xmr-stak.exe along with 4 other files.

xmr-stak files

Step 4: Now its time to configure the miner, connect it to a pool and get started with mining. The setup process is basically simple. All we have to do is run the configuration wizard (xmr-stak.exe) and enter the information one by one in the command window.

Configuring XMR-STAK

Step 5: Run xmr-stak.exe and this is the first thing you’ll notice. It will ask for “Do you want to use the HTTP interface?”. Just type 9999 or any number and hit enter which should create a config.txt.  We’ll explain its use later in this article.

xmr stak initial setup

Step 6: Next it will ask you to choose the currency that you’d like to mine. Just enter the name of the currency and hit enter. If the currency is not listed then just type the algorithm it uses. In this example we’ll use Stellite as they have recently hard forked to Cryptonight v7.

xmr stak currency list

Step 7: Then it will ask pool address for the currency you chose. E.g. Choosing the reliable pool for your currency is the most important step. We hope you found one and almost every crptonight based pool looks similar.

cryptonight pool sample

If you navigate to get stated page you’ll find the connectivity information. Choose the right address depending on your location and the right port depending on your hardware. Enter the pool address in the command window and hit enter to proceed to the next step.

pool address in xmr stak

Step 8: Next it will ask for your username which is basically your wallet address. Enter your wallet address and hit enter.

wallet address

Then password which is mostly empty. Then Rig identifier for pool side statistics which is optional. Next pool port support option (TLS/SSL), just enter n. Nicehash; definitely No. Multiple pools; No. Once this list is complete your miner will connect to the pool and should start mining the coin which you chose. Also it will create 3 more additional files in the folder such as cpu.txt, nvidia.txt or amd.txt and pools.txt.

mining with xmr stak

How to check hashrate and results in xmr-stak

You can check your hashrate by entering your wallet address in the pool, but how do you check the results in miner. This command window by default won’t show your mining hashrate or results. To check the hashrate and results in xmr stak you have 2 options. Command line option and HTML reports.

Command Line option: Just type h in the command window to display your hashrate and type r to display the share results. It’s plain and simple. If you want clean looking reports to display your hashrate then you can use the HTML reports option.

xmr-stak hashrate check

HTML reports: Remember step 5 where we told you to enter any number; this will come in handy now. If you are not sure what you entered then go to config.txt file and find this line.

"httpd_port" : 9999,

To check your hashrates, results and connection reports enter the following in your browser address bar.

Where is your local IP and 9999 is the port which we configured initially. You’ll get a neat looking report page which displays your mining hashrates and results.

html hashrate reports

How to prevent / stop CPU mining in XMR stak

Xmr stak is a combined miner and by default it uses both CPU and GPU power to mine. In case if your CPU specs are too low or if you don’t feel like using your CPU to mine crypto then here is you stop CPU from mining.

Within the xmr stak folder you’ll find cpu.txt file. Just open the txt file and scroll to its bottom where you’ll find something like this.

"cpu_threads_conf" :
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },


To prevent CPU from mining just make the cpu_threads_conf to null like this.

"cpu_threads_conf" : null,

This will disable CPU mining regardless of any startup parameters.

Adding pool lists or new coins to the miner

The information which you entered during miner configuration will be stored in separate text files. Whenever you initiate the miner it will connect to the pool and start mining the coin which you configured.

What if you want to change pool or add a new cryptonight coin? To reset xmr-stak or to change the information go to pools.txt file. In there you’ll find pool list consisting all your inputs. Just change the pool address and wallet address to switch to a new pool or new coin.

"pool_list" :
 {"pool_address" : "", 
"wallet_address" : "Se3DaTa8VPt1EJdHsdfDF987DSFDS789DsdfghdgFDSF897sdfD4Apmdm9hsMohS5SpdGeS2ySfdam8T", 
"rig_id" : "", "pool_password" : "", "use_nicehash" : false, 
"use_tls" : false, "tls_fingerprint" : "", "pool_weight" : 1 },

If you are tired of changing this information each time and if you still want to have a quick access to mine your favorite coins then just create a new xmr stak folder and rename it.

Application Has Been Blocked From Accessing Graphics Hardware error – Solved

“Application xmr-stak.exe has been blocked from accessing graphics hardware” error on Windows 10 is one of the most common error which you may notice. Especially on NVIDIA mining rigs. If you encounter this error then here is a quick fix.

xmr stak blocked graphics hardware

Go to nvidia.txt file and at the bottom of the file you’ll find the following configuration.

"gpu_threads_conf" :
 // gpu: GeForce GTX 970 architecture: 52
 // memory: 3374/4096 MiB
 // smx: 13
 { "index" : 0,
 "threads" : 16, "blocks" : 39,
 "bfactor" : 6, "bsleep" : 25,
 "affine_to_cpu" : false, "sync_mode" : 3,


First try increasing bfactor value from 6 to 8 or more. Save the file and run the miner. If you still get this error then try reducing the threads or blocks. It should fix this issue, if still no luck then here is another option.


  1. Open registry editor. In Run command type regedit and hit enter which should open registry editor.
  2. Now in registry editor navigate to the following location.  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers
  3. Now in the right panel of the graphics drive key, create a registry DWORD (32-bit) value named TdrDelay.
  4. Modify the TdrDelay, set its value to 8 and click OK to save changes.
  5. Once done restart your system or mining rig and they start xmr-stak (Run as Administrator). This issue no longer occur.

Mining Settings, Intensity tuning and threads configuration:

XMR-STAK gives too many options for tuning to get the best results out of your hardware. By default the miner creates config file for CPU, NVIDIA and AMD GPU. You can edit the values within these text files and see which works best for your rigs. Change the value of intensity, work-size, threads and blocks. You can add more GPUs and also you can lower the power mode of your CPU. For more information on Tuning and configuring your hardware in xmr stak we suggest you to read this guide.

We hope this guide has enough basic information covering xmr-stak and mining cryptonight. If you think we missed any then please do mention. or if you have any questions then please feel free to post your comment.

Show More


We are crypto enthusiasts and our main intention with Coin Guides is to educate people about Cryptocurrency and Blockchain technology. We regularly publish content about Bitcoin, Ethereum, Altcoins, wallet guides, mining tutorials and trading tips.

Related Articles


  1. So everytime you reboot you have to do this, so complex configuration all over again.
    Where is ccminer with v7?

    1. CCMiner for Cryptonight V7 has not yet released which we can expect soon. On the other hand using xmr stak is not so complicated. Could you please be more specific on the reboot part so we can answer precisely.

  2. Don’t you also need to change the “currency” : “cryptonight_lite_v7”, changing “cryptonight_lite_v7”, to whatever other coin your wanting to mine, when switching to a different coin as well as what you mentioned of the pool address and the wallet address?

    1. That’s correct. If you take a look at step number 6, there we’ve mentioned about choosing currency or algorithm which xmr stak requires you to input initially when you configure. You can also change this input later on when you switch to different coins or algorithm by editing the pools.txt file. Just below “pool_list” you’ll find “currency” : “monero7”.

  3. Sorry my english is bad, I’m from Brazil, your website is excellent, I did not find anything on the internet, talking about why ccminer does not support criptonight v7, you explained why and still gave a solution with the xmr stak miner, explained in detail how to setup the miner, thank you.
    Can I quote and link your website on my blog?
    I do not know if the question is correct, I want to talk about your website.

  4. Was having issues with the accessing graphics card error.

    “Application Has Been Blocked From Accessing Graphics Hardware error – Solved”
    Increasing the bfactor to 8 from 6 worked in my situation.
    Thank You for the post

  5. How can i transfer my mined blocks/amount to my wallet? MyMonero gui shows 0XMR balance even after lot blocks accepted by the pool.
    Can You help please?

  6. Friend, is it possible to use a nvidia onboard gt 630M from my laptop to mining? Im just wanna test xmr on this. I tried just with processor core and work fine, but i have on error when config for nvidia card: backend nvidia disable, and then it runs only with processor core.

    1. Sure, I use the same card. Try the following settings.

      "gpu_threads_conf" :
      { "index" : 0,
      "threads" : 40, "blocks" : 10,
      "bfactor" : 8, "bsleep" : 25,
      "affine_to_cpu" : false, 
  7. Hi, I am running xmr stak 2.6.0 – however, after install I am missing the “amd.txt” file. Thus he is using the wrong GPU – Can somebody provide a 2.6.0 amd.txt file?

  8. How do i edit my settings in XMR?
    I followed the instructions above, but i am receiving
    ‘socket error- login error invalid payment address provided’
    ‘Recieve error: a blocking operatiion was interupted by a call to WSACancelBlockingCall’

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button