Bitcoin Forum
November 09, 2024, 07:53:53 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Wallet daemon in a VM with miner on physical machine... Is it possible?  (Read 724 times)
Random Bit (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


So many coins so little hash power


View Profile
May 14, 2013, 10:06:41 PM
Last edit: May 14, 2013, 10:19:35 PM by Random Bit
 #1

With all the crapcoins being released it's only a matter of time before there will be a wallet stealing script, key logger or other type of Trojan that comes out.

Is it possible to run the wallet daemon in a Linux VM and the actual miner on the physical box?  Have searched to forums but there is not much information on it.

Here is what I have:  Using bridge network cgminer connects on port 9222 at ~1.2Mh/s but gethashespersec shows 0 with 0 accepts and 0 rejects.  Using elacoin as a test since difficulty is low and should be able to occasionally find a block.

# Accepting incoming connections
listen=1
# Enable UPnP negotiation with router/firewall to accept incoming connections
upnp=1
# Maximum number of inbound+outbound connections.
maxconnections=75
#Server mode allows Qt to accept JSON-RPC commands, used in solo mining if want this be server
server=1
# You must set rpcuser and rpcpassword to secure the JSON-RPC api
rpcuser=user
rpcpassword=pass
# By default, only RPC connections from localhost are allowed.  Specify
# as many rpcallowip= settings as you like to allow connections from
# other hosts (and you may use * as a wildcard character):
rpcallowip=192.168.1.*
# Listen for RPC connections on this TCP port:
rpcport=9222
rpcconnect=127.0.0.1
port=9223


On cgminer
{
"pools" : [
   {
      "url" : "192.168.1.172:9222",
      "user" : "user",
      "pass" : "pass"
   }
]
Kyune
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250


View Profile
May 14, 2013, 10:13:47 PM
 #2

I do this all the time using Virtualbox, I use the "Bridged Adapter" mode which assigns the VM an actual address on my 192.168.1.* subnet.  If that is what you are doing, cgminer needs to aim at the ip address assigned to the VM, i.e., it would be 192.168.1.xxx, (you can look up xxx using the "ip r" terminal command), and cg miner also needs to aim at the rpcport you specified, 9222.  I think you are just aiming cgminer at the wrong ip address and wrong port.

I don't think you need that rpcconnect line in the config file but not 100% sure.


BTC:  1K4VpdQXQhgmTmq68rbWhybvoRcyNHKyVP
Random Bit (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


So many coins so little hash power


View Profile
May 14, 2013, 10:23:21 PM
 #3

I do this all the time using Virtualbox, I use the "Bridged Adapter" mode which assigns the VM an actual address on my 192.168.1.* subnet.  If that is what you are doing, cgminer needs to aim at the ip address assigned to the VM, i.e., it would be 192.168.1.xxx, (you can look up xxx using the "ip r" terminal command), and cg miner also needs to aim at the rpcport you specified, 9222.  I think you are just aiming cgminer at the wrong ip address and wrong port.

I don't think you need that rpcconnect line in the config file but not 100% sure.



I put the wrong IP and port in the config example, corrected it.

Thanks for the input now know it can be done I'll keep at it probably something simple I'm missing.
sido
Full Member
***
Offline Offline

Activity: 148
Merit: 100



View Profile
May 14, 2013, 10:28:20 PM
 #4

i'm creating ssh tunel for this
aa
Hero Member
*****
Offline Offline

Activity: 544
Merit: 500


Litecoin is right coin


View Profile WWW
May 14, 2013, 10:31:29 PM
 #5

Yes, it is possible.

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!