添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hopefully people who install this container will actually read this notice. I highly doubt it. Let's see how many people post about it here.

Recommended by JonathanM

* ABOUT XMRig/6.12.1 gcc/9.3.0
* LIBS libuv/1.41.0 OpenSSL/1.1.1j hwloc/2.4.1
* HUGE PAGES supported
* 1GB PAGES disabled
* CPU Intel(R) Xeon(R) CPU E5649 @ 2.53GHz (1) 64-bit AES
L2:1.5 MB L3:12.0 MB 6C/12T NUMA:1
* MEMORY 22.7/23.5 GB (97%)
J2: 4 GB Reserved @ 1333 MHz J2
J3: 4 GB Reserved @ 1333 MHz J3
J4: 4 GB Reserved @ 1333 MHz J4
J5: 4 GB Reserved @ 1333 MHz J5
J6: 4 GB Reserved @ 1333 MHz J6
J7: 4 GB Reserved @ 1333 MHz J7
* MOTHERBOARD LENOVO - Lenovo
* DONATE 1%
* ASSEMBLY intel
* POOL #1 xmr-asia1.nanopool.org:14444 coin monero
* COMMANDS 'h' hashrate, 'p' pause, 'r' resume, 's' results, 'c' connection
* OPENCL disabled
* CUDA 11.2/11.4/6.12.0
* NVML disabled (failed to load NVML)
* CUDA GPU #0 03:00.0 Quadro P400 1252/2005 MHz smx:2 arch:61 mem:1966/1999 MB
[2021-11-21 00:05:39.523] net use pool xmr-asia1.nanopool.org:14444 139.99.101.232
[2021-11-21 00:05:39.523] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497488
[2021-11-21 00:05:39.523] cpu use argon2 implementation SSSE3
[2021-11-21 00:05:39.524] randomx init dataset algo rx/0 (12 threads) seed d02e1b1704b67497...
[2021-11-21 00:05:39.816] randomx allocated 2336 MB (2080+256) huge pages 100% 1168/1168 +JIT (293 ms)
[2021-11-21 00:05:41.451] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497488
[2021-11-21 00:05:45.186] randomx dataset ready (5369 ms)
[2021-11-21 00:05:45.186] cpu use profile rx (6 threads) scratchpad 2048 KB
[2021-11-21 00:05:45.186] nvidia use profile rx (1 thread) scratchpad 2048 KB
| # | GPU | BUS ID | INTENSITY | THREADS | BLOCKS | BF | BS | MEMORY | NAME
| 0 | 0 | 03:00.0 | 128 | 32 | 4 | 0 | 0 | 256 | Quadro P400
[2021-11-21 00:05:45.200] cpu READY threads 6/6 (6) huge pages 100% 6/6 memory 12288 KB (15 ms)
[2021-11-21 00:05:45.186] randomx dataset ready (5369 ms)
[2021-11-21 00:05:45.186] cpu use profile rx (6 threads) scratchpad 2048 KB
[2021-11-21 00:05:45.186] nvidia use profile rx (1 thread) scratchpad 2048 KB
| # | GPU | BUS ID | INTENSITY | THREADS | BLOCKS | BF | BS | MEMORY | NAME
| 0 | 0 | 03:00.0 | 128 | 32 | 4 | 0 | 0 | 256 | Quadro P400
[2021-11-21 00:05:45.200] cpu READY threads 6/6 (6) huge pages 100% 6/6 memory 12288 KB (15 ms)
[2021-11-21 00:05:46.030] nvidia READY threads 1/1 (843 ms)
[2021-11-21 00:06:41.723] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497488
[2021-11-21 00:06:41.723] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497488
[2021-11-21 00:06:45.232] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:06:45.232] miner speed 10s/60s/15m 1398.9 n/a n/a H/s max 1411.8 H/s
[2021-11-21 00:07:45.272] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:07:45.272] miner speed 10s/60s/15m 1386.3 1373.5 n/a H/s max 1411.8 H/s
[2021-11-21 00:07:45.631] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497488
[2021-11-21 00:08:45.311] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:08:45.311] miner speed 10s/60s/15m 1395.3 1394.6 n/a H/s max 1411.8 H/s
[2021-11-21 00:08:45.311] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:08:45.311] miner speed 10s/60s/15m 1395.3 1394.6 n/a H/s max 1411.8 H/s
[2021-11-21 00:08:46.105] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497488
[2021-11-21 00:08:51.526] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497489
[2021-11-21 00:08:51.526] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497489
[2021-11-21 00:09:45.357] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:09:45.357] miner speed 10s/60s/15m 1400.6 1402.0 n/a H/s max 1411.8 H/s
[2021-11-21 00:09:52.659] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497489
[2021-11-21 00:09:52.659] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497489
[2021-11-21 00:10:19.253] net no active pools, stop mining
[2021-11-21 00:10:24.608] net use pool xmr-asia1.nanopool.org:14444 139.99.102.74
[2021-11-21 00:10:24.608] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497490
[2021-11-21 00:10:45.409] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:10:45.409] miner speed 10s/60s/15m 1402.9 1260.3 n/a H/s max 1411.8 H/s
[2021-11-21 00:11:11.737] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497490
[2021-11-21 00:11:45.462] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:11:45.462] miner speed 10s/60s/15m 1404.3 1382.1 n/a H/s max 1411.8 H/s
[2021-11-21 00:12:12.768] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497490
[2021-11-21 00:12:45.512] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:12:45.512] miner speed 10s/60s/15m 1396.7 1397.5 n/a H/s max 1411.8 H/s
[2021-11-21 00:13:14.011] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497490
[2021-11-21 00:13:14.011] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497490
[2021-11-21 00:13:45.566] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:13:45.566] miner speed 10s/60s/15m 1394.6 1397.4 n/a H/s max 1411.8 H/s
[2021-11-21 00:14:12.857] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497490
[2021-11-21 00:14:45.621] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:14:45.621] miner speed 10s/60s/15m 1390.1 1397.5 n/a H/s max 1411.8 H/s
[2021-11-21 00:14:46.850] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497491
[2021-11-21 00:15:09.065] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497492
[2021-11-21 00:15:09.982] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497493
[2021-11-21 00:15:45.679] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:15:45.679] miner speed 10s/60s/15m 1389.8 1400.4 n/a H/s max 1416.4 H/s
[2021-11-21 00:16:00.322] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497494
[2021-11-21 00:16:42.072] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497495
[2021-11-21 00:16:45.738] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:16:45.738] miner speed 10s/60s/15m 1393.4 1402.8 n/a H/s max 1416.4 H/s
[2021-11-21 00:17:42.379] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497495
[2021-11-21 00:17:45.805] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:17:45.805] miner speed 10s/60s/15m 1377.2 1386.6 n/a H/s max 1416.4 H/s
[2021-11-21 00:18:43.510] net new job from xmr-asia1.nanopool.org:14444 diff 480045 algo rx/0 height 2497495
[2021-11-21 00:18:45.864] nvidia #0 03:00.0 0W 0C
[2021-11-21 00:18:45.865] miner speed 10s/60s/15m 1385.3 1397.8 n/a H/s max 1416.4 H/s I do plan on it assuming it's compatible and not a massive amount of work. Problem is I've forgotten the password for my build VM which is where I stored all my build files, and they're not backed up of course. I'm going to have to make another VM and mount the image over there to get them out. Time is still a massive issue for me, so this will likely happen over the next few days to weeks as I get back on top of things.  Check out the container logs to get updates, etc. I usually look at the graphs generated by the pool I'm mining to in order to monitor progress as they're way prettier and have come a long way, but you *can* view the docker logs over http / ssh, or access the API directly as @Koldo has provided steps for above . While the binary is interactive in that you can watch the output and use keyboard commands to exert very basic control over it, as you found it's usually controlled by a config file. This container doesn't rely on that config file though, it uses variables which can be set in the edit container page. Your question was so long ago though that I'm assuming you worked it out shortly after posting. It is possible and quite easy to get an interactive session from this container and have it running over SSH in terminal. I used it for testing while I was developing this, but it goes slightly against the way docker was integrated into Unraid so I designed the container to rely on the environment variables instead.
root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='XMRig' --net='bridge' --cpuset-cpus='1,2,3,4,5,7,8,9,10,11' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e 'POOL'='gulf.moneroocean:10128' -e 'WALLET'='XXXXXXXXXXXXXXXXXXXXX' -e 'WORKER'='Unraid' -e 'ADDITIONAL'='--no-color ' -e 'DONATE'='1' -e 'FEE'='lnxd-fee' -e 'COIN'='monero' -e 'DRIVERV'='' -e 'NVIDIA_VISIBLE_DEVICES'='' -e 'NVIDIA_DRIVER_CAPABILITIES'='all' --device='' 'lnxd/xmrig:latest'
docker: bad format for path: .
See 'docker run --help'.
Update the pool address to your closest node or preferred pool. Don't forget to pay attention to the port if you change pools, as they tend to use arbitrary ports. Set the --donate-level you would like to enable. Eg. entering a 1 causes XMRig to mine for 99 minutes for you, and then 1 minute for the fee option chosen in the next step. Setting the --donate-level flag to 0 will not work unless you follow the steps below. There are 3 fee options enabled by a custom build from my fork of the latest release source. This allows for some options that aren't available in the base version :
no-fee : Makes it possible to set the --donate-level flag to 0%. Unless you set it to 0%, the fee goes to the developer of XMRig.
dev-fee : The fee goes to the developer of XMRig.
lnxd-fee : The fee goes to me 🙃 Thank you in advance if you choose this option. Turn on advanced mode for the template and select CPU core / thread pairs that you would like to use in CPU pinning. I recommend leaving core 1 and its thread pair unselected, as it could possibly cause Unraid to unexpectedly slow down / the Docker engine to quit if things get too intense while mining.
Run the container and check the temperature of your CPU and other hardware regularly for at least 20-30 minutes to ensure everything is safe and stable. If you get any errors that you can't decipher, feel free reach out and I'll take a look for you. (Optional) To increase your hash rate, you can add and run the following User Script. At the moment, in order to reset your MSR values to default you need to restart your Unraid host. For this reason, it needs to be re-run after every boot as the updated values do not survive reboots. The script installs msr-tools and then updates the registry values to optimise your CPU for XMRig. This may have performance implications for other functions on your server. The logs will also show that XMRig is being run with MSR MOD disabled, but if you run this script it serves the same purpose and you should get a higher hash rate.
#!/bin/bash
# Write XMRig Optimised MSR values
# https://github.com/xmrig/xmrig/blob/master/scripts/randomx_boost.sh
VERSION=1.3
echo "Installing msr-tools v${VERSION}"
echo ""
echo "(don't!) blame lnxd if something goes wrong"
echo ""
curl -fsSL https://packages.slackonly.com/pub/packages/14.2-x86_64/system/msr-tools/msr-tools-${VERSION}-x86_64-1_slonly.txz -o /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz
upgradepkg --install-new /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz
rm /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz
echo ""
echo "Optimising register values for XMRig"
echo ""
modprobe msr
if cat /proc/cpuinfo | grep "AMD Ryzen" >/dev/null; then
	if cat /proc/cpuinfo | grep "cpu family[[:space:]]:[[:space:]]25" >/dev/null; then
		echo "Detected Ryzen (Zen3)"
		wrmsr -a 0xc0011020 0x4480000000000
		wrmsr -a 0xc0011021 0x1c000200000040
		wrmsr -a 0xc0011022 0xc000000401500000
		wrmsr -a 0xc001102b 0x2000cc14
		echo "MSR register values for Ryzen (Zen3) applied"
		echo "Detected Ryzen (Zen1/Zen2)"
		wrmsr -a 0xc0011020 0
		wrmsr -a 0xc0011021 0x40
		wrmsr -a 0xc0011022 0x1510000
		wrmsr -a 0xc001102b 0x2000cc16
		echo "MSR register values for Ryzen (Zen1/Zen2) applied"
elif cat /proc/cpuinfo | grep "Intel" >/dev/null; then
	echo "Detected Intel"
	wrmsr -a 0x1a4 0xf
	echo "MSR register values for Intel applied"
	echo "No supported CPU detected"
echo ""
echo "Done!"
echo "To reset values, please reboot your server."
# Write XMRig Optimised MSR values # https://github.com/xmrig/xmrig/blob/master/scripts/randomx_boost.sh VERSION=1.3 echo "Installing msr-tools v${VERSION}" echo "" echo "(don't!) blame lnxd if something goes wrong" echo "" curl -fsSL https://packages.slackonly.com/pub/packages/14.2-x86_64/system/msr-tools/msr-tools-${VERSION}-x86_64-1_slonly.txz -o /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz upgradepkg --install-new /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz rm /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz echo "" echo "Optimising register values for XMRig" echo "" modprobe msr if grep -E 'AMD Ryzen|AMD EPYC' /proc/cpuinfo > /dev/null; if grep "cpu family[[:space:]]\{1,\}:[[:space:]]25" /proc/cpuinfo > /dev/null; if grep "model[[:space:]]\{1,\}:[[:space:]]97" /proc/cpuinfo > /dev/null; echo "Detected Zen4 CPU" wrmsr -a 0xc0011020 0x4400000000000 wrmsr -a 0xc0011021 0x4000000000040 wrmsr -a 0xc0011022 0x8680000401570000 wrmsr -a 0xc001102b 0x2040cc10 echo "MSR register values for Zen4 applied" echo "Detected Zen3 CPU" wrmsr -a 0xc0011020 0x4480000000000 wrmsr -a 0xc0011021 0x1c000200000040 wrmsr -a 0xc0011022 0xc000000401570000 wrmsr -a 0xc001102b 0x2000cc10 echo "MSR register values for Zen3 applied" echo "Detected Zen1/Zen2 CPU" wrmsr -a 0xc0011020 0 wrmsr -a 0xc0011021 0x40 wrmsr -a 0xc0011022 0x1510000 wrmsr -a 0xc001102b 0x2000cc16 echo "MSR register values for Zen1/Zen2 applied" elif grep "Intel" /proc/cpuinfo > /dev/null; echo "Detected Intel CPU" wrmsr -a 0x1a4 0xf echo "MSR register values for Intel applied" echo "No supported CPU detected" echo "" echo "Done!" echo "To reset values, please reboot your server." [2023-08-11 10:51:48.249]  msr      msr kernel module is not available
[2023-08-11 10:51:48.249]  msr      FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW I am running it on a AMD EPYC 7302 # Write XMRig Optimised MSR values # https://github.com/xmrig/xmrig/blob/master/scripts/randomx_boost.sh VERSION=1.3 echo "Installing msr-tools v${VERSION}" echo "" echo "(don't!) blame lnxd if something goes wrong" echo "" curl -fsSL https://packages.slackonly.com/pub/packages/14.2-x86_64/system/msr-tools/msr-tools-${VERSION}-x86_64-1_slonly.txz -o /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz upgradepkg --install-new /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz rm /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz echo "" echo "Optimising register values for XMRig" echo "" modprobe msr if grep -E 'AMD Ryzen|AMD EPYC' /proc/cpuinfo > /dev/null; if grep "cpu family[[:space:]]\{1,\}:[[:space:]]25" /proc/cpuinfo > /dev/null; if grep "model[[:space:]]\{1,\}:[[:space:]]97" /proc/cpuinfo > /dev/null; echo "Detected Zen4 CPU" wrmsr -a 0xc0011020 0x4400000000000 wrmsr -a 0xc0011021 0x4000000000040 wrmsr -a 0xc0011022 0x8680000401570000 wrmsr -a 0xc001102b 0x2040cc10 echo "MSR register values for Zen4 applied" echo "Detected Zen3 CPU" wrmsr -a 0xc0011020 0x4480000000000 wrmsr -a 0xc0011021 0x1c000200000040 wrmsr -a 0xc0011022 0xc000000401570000 wrmsr -a 0xc001102b 0x2000cc10 echo "MSR register values for Zen3 applied" echo "Detected Zen1/Zen2 CPU" wrmsr -a 0xc0011020 0 wrmsr -a 0xc0011021 0x40 wrmsr -a 0xc0011022 0x1510000 wrmsr -a 0xc001102b 0x2000cc16 echo "MSR register values for Zen1/Zen2 applied" elif grep "Intel" /proc/cpuinfo > /dev/null; echo "Detected Intel CPU" wrmsr -a 0x1a4 0xf echo "MSR register values for Intel applied" echo "No supported CPU detected" echo "" echo "Done!" echo "To reset values, please reboot your server." [2023-08-11 10:51:48.249]  msr      msr kernel module is not available
[2023-08-11 10:51:48.249]  msr      FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW I am running it on a AMD EPYC 7302 I ended up cloning the git repo ( https://github.com/lnxd/docker-xmrig.git ), building xmrig on an equivalent environment to ubuntu:20.04 (because Dockerfile & packaged xmrig build based off it) and changing dev fee from 1 to 0 in src/donate.h, uploading somewhere,  updating the Dockerfile links to that location so it pulls my .tar.gz instead. Replace command and echo lines in mine.sh to eliminate hard coded msr disabling parameter. I have:
echo "--url=${POOL} --coin=${COIN} --user=${WALLET}.${WORKER} --randomx-no-rdmsr ${ADDITIONAL}"
cd /home/docker/xmrig-${FEE}
./xmrig --url=${POOL} --coin=${COIN} --user=${WALLET}.${WORKER} --randomx-no-rdmsr --donate-level=${DONATE} ${ADDITIONAL}
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.