Mining with Azure Batch

New version for new Monero Hard Fork on 10/18

Updated on 4/28/2018 with new PoW for Monero7 and XMR-Stak miner

 

Azure Batch and Pool VM

  • Connect to http://portal.azure.com
  • Create a new Batch Account (free) and associated Storage Account with pool allocation mode “Batch Service” so you don’t need Key Vault
  • Open Batch Account and select Pools
  • Add a new pool with the following settings
    • Image Type = Marketplace (Linux/Windows)
    • Publisher = Canonical
    • Offer = Ubuntu Server
    • Sku = 16.04-LTS
    • Node Size =
      • F16 – XMR Monero
      • NC6 – ETH Ethereum
    • Mode = Fixed
    • Low priority = 3
    • Resize timeout = 90 minutes
  • Wait for resize operation if succeed or not as we are using Low Priority VM so it may fail if Azure has other higher priority VM
  • Click on Nodes and review if VM is there
  • Select the VM and verify Overview = Idle
  • Click on Connect and add a new user with Administrator privilege

Monero CPU miner in Ubuntu F16 VM

  • Create the following setup_xmr_f16_v1.sh file:
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev screen git nano
git clone https://github.com/fireice-uk/xmr-stak-cpu.git
cd xmr-stak-cpu/
cmake .
make install
cd bin/
mv config.txt config.txt.ori
wget https://<your_storage_account>.blob.core.windows.net/miner/f16/config.txt
sudo sysctl -w vm.nr_hugepages=128
screen -dmS monero sudo ./xmr-stak
  • Create the following cpu.txt file:
"cpu_threads_conf" :
[
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 7 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 8 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 9 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 10 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 11 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 13 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 },
 { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 15 },
],
  • Create the following config.txt file:
"use_slow_memory" : "no_mlck",
"nicehash_nonce" : false,
"aes_override" : null,
"use_tls" : false,
"tls_secure_algo" : true,
"tls_fingerprint" : "",
"call_timeout" : 10,
"retry_time" : 10,
"giveup_limit" : 0,
"verbose_level" : 4,
"h_print_time" : 60,
"daemon_mode" : true,
"output_file" : "./xmr.log",
"httpd_port" : 51000,
"prefer_ipv4" : true,
  • Create the following pools.txt file:
"pool_list" :
[
 {"pool_address" : "pool.minexmr.com:7777",
  "wallet_address" : "your_wallet",
  "rig_id" : "",
  "pool_password" : "x",
  "use_nicehash" : false,
  "use_tls" : false,
  "tls_fingerprint" : "",
   "pool_weight" : 1
 },
],
"currency" : "monero7",

Ethereum GPU miner in Ubuntu with NC6 VM

CUDA_REPO_PKG=cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
wget -O /tmp/${CUDA_REPO_PKG} http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG}
sudo dpkg -i /tmp/${CUDA_REPO_PKG}
rm -f /tmp/${CUDA_REPO_PKG}
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install cuda-drivers
sudo apt-get --assume-yes install software-properties-common
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install ethereum ethminer
wget https://github.com/ethereum-mining/ethminer/releases/download/v0.11.0/ethminer-0.11.0-Linux.tar.gz
tar -xf ethminer-0.11.0-Linux.tar.gz
cd bin
./ethminer --farm-recheck 200 -G -S us1.ethermine.org:4444 -FS us2.ethermine.org:4444 -O <wallet_id>.nc6

 

Upload files to Storage Account

  • Install Azure Storage Explorer
  • Connect to Azure subscription
  • Select Azure Storage Account created for Azure Batch
  • Browse to Blob Containers
  • Right click on Blob containers -> Create a new container
  • Right click on new container -> Set public level access
  • Set “Public read access for blob only”
  • Create 2 new folder f16 and nc6
  • Upload the 3 files in correct folder as reported below:
https://<your_storage-account>.blob.core.windows.net/miner/f16/setup_xmr_f16_v4.sh
https://<your_storage-account>.blob.core.windows.net/miner/f16/config.txt
https://<your_storage-account>.blob.core.windows.net/miner/f16/pools.txt
https://<your_storage-account>.blob.core.windows.net/miner/f16/cpu.txt
https://<your_storage-account>.blob.core.windows.net/miner/nc6/setup_eth_nc6_v1.sh
  • Remember to edit setup_xmr_f16_v4.sh and point to correct config.txt file location

Create a Start task for pool

  • Select the pool
  • Select Start Task
  • Max retry = 0
  • Command line = sudo ./setup_xmr_f16_v4.sh
  • User identity = Pool autouser, Admin
  • Wait for success = False
  • Resource files
  • Environment settings = not configured

Monitor Linux resource

  • Monitor xmr miner =
tail -s 5 -n 100 -f /mnt/batch/tasks/startup/wd/xmr-stak/build/bin/xmr.log
screen -r -S monero
  • Other monitoring tools =

Review this post = https://inglele.wordpress.com/2017/05/19/ethereum-block-reward/

Troubleshooting

If script is failing to start, please review the log files in

cd /mnt/batch/tasks/startup
vi /mnt/batch/tasks/startup/stderr.txt
vi /mnt/batch/tasks/startup/stdout.txt

 

Source:

Advertisement

OnePlus 5

OnePlus_5

Network Technology GSM / CDMA / HSPA / LTE
Launch Announced 2017, June
Status Available. Released 2017, June
Body Dimensions 154.2 x 74.1 x 7.3 mm (6.07 x 2.92 x 0.29 in)
Weight 153 g (5.40 oz)
SIM Dual SIM (Nano-SIM, dual stand-by)
Display Type Optic AMOLED capacitive touchscreen, 16M colors
Size 5.5 inches (~73.0% screen-to-body ratio)
Resolution 1080 x 1920 pixels (~401 ppi pixel density)
Multitouch Yes
Protection Corning Gorilla Glass 5
– Oxygen OS 4.5.8
Platform OS Android 7.1.1 (Nougat)
Chipset Qualcomm MSM8998 Snapdragon 835
CPU Octa-core (4×2.45 GHz Kryo & 4×1.9 GHz Kryo)
GPU Adreno 540
Memory Card slot No
Internal 64 GB, 6 GB RAM or 128 GB, 8 GB RAM
Camera Primary Dual 16 MP, f/1.7, 24mm, EIS (gyro) + 20 MP, f/2.6, 36mm, phase detection autofocus, 1.6x optical zoom, dual-LED flash, check quality
Features 1/2.8″ sensor size, 1.12 µm @ 16MP & 1/2.8″ sensor size, 1.0 µm @ 20MP, geo-tagging, touch focus, face detection, HDR, panorama
Video 2160p@30fps, 1080p@30/60fps, 720p@30/120fps, check quality
Secondary 16 MP, f/2.0, 20mm, EIS (gyro), 1.0 µm pixel size, 1080p, Auto HDR
Sound Alert types Vibration; MP3, WAV ringtones
Loudspeaker Yes
3.5mm jack Yes
– Active noise cancellation with dedicated mic
– Dirac HD sound
Comms WLAN Wi-Fi 802.11 a/b/g/n/ac, Wi-Fi Direct, DLNA, hotspot
Bluetooth 5.0, A2DP, LE, aptX HD
GPS Yes, with A-GPS, GLONASS, BDS
NFC Yes
Radio No
USB 2.0, Type-C 1.0 reversible connector
Features Sensors Fingerprint (front-mounted), accelerometer, gyro, proximity, compass
Messaging SMS (threaded view), MMS, Email, IM, Push Email
Browser HTML5
Java No
– Fast battery charging (Dash Charge)
– DivX/Xvid/MP4/H.265 player
– MP3/eAAC+/WMA/WAV/FLAC player
– Document viewer
– Photo/video editor
Battery Non-removable Li-Po 3300 mAh battery
Misc Colors Midnight Black, Slate Gray
Price About 500 EUR

https://oneplus.net/5/

ZCash mining evolution

ZCash Mining 101 Guide

ZCash Wallet – Windows

 

Miner App

Best open source GPU miner = nheqminer-0.5c

Miner Pool

nheqminer.exe -l eu1-zcash.flypool.org:3333 -u <address>.<worker>