View Full Version : Help needed with remote RPC and VNC for VM hosts
  
zombie67
02-15-12, 08:39 PM
So I have a number of headless windows machines, that have linux VMs running on them.  I would like to be able to have BOINCtasks connect to the VMs as well.  Maybe even VNC into the VMs too.  Is this even possible?  If so, how do I tell what would the IP address of the VMs be (as perceived from other computers on my LAN)?
It actually depends on how you set up networking in the vm's as to whether they have a network accessible IP.
Log onto one of them in a commandline and type
ifconfig -a
and it should tell you it's IP address. Then try to ping it. You may well need to alter the networking part of the VM though, which is simple enough.
Which VM software is it?
Fire$torm
02-15-12, 09:57 PM
Take a look at these threads. The last one is a little vague but might hold a clue.
https://forums.virtualbox.org/viewtopic.php?f=3&t=15301
https://forums.virtualbox.org/viewtopic.php?f=6&t=35124
http://superuser.com/questions/322803/how-to-connect-to-virtualbox-remote-desktop-client-using-vnc
zombie67
02-15-12, 10:07 PM
It actually depends on how you set up networking in the vm's as to whether they have a network accessible IP.
Log onto one of them in a commandline and type
ifconfig -a
and it should tell you it's IP address. Then try to ping it. You may well need to alter the networking part of the VM though, which is simple enough.
Which VM software is it?
It is vbox, and the OS is ubuntu.  Which IP address should I be looking at?  My LAN is 192.168.1.x, so I am not sure how I could connect to a 10.x.x.x address?
$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:00:27:8f:04:f1  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe8f:4f1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2075 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3667 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:930310 (930.3 KB)  TX bytes:3622762 (3.6 MB)
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6884 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6884 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3504943 (3.5 MB)  TX bytes:3504943 (3.5 MB)
zombie67
02-15-12, 10:23 PM
Ah, I think I have to choose "bridged" in the network setting of the machine in vbox.  Thanks Guys!
Edit:  Okay, follow up question.  How do I define a fixed IP address.  I looked all over the vbox manager, but no good.
hmm, not sure, but you can change it once you get in.
Look in /etc/sysconfig/network-scripts/ifcfg-eth0
zombie67
02-15-12, 10:59 PM
hmm, not sure, but you can change it once you get in.
Look in /etc/sysconfig/network-scripts/ifcfg-eth0
Hrm.   /etc/sysconfig/ does not exist.  Why can this stuff be the same in all distros?
zombie67
02-16-12, 12:12 AM
I am using the DHCP addresses for now.  In any case, for the first time in all my years of crunching, I am seeing the tasks from all my machines and VMs in a single GUI manager.  
THIS IS FREAKING AWESOME!!
AAAAAAWWWWWW  YEEEEEAAAAAAAH!
\:D/  \:D/  \:D/
zombie67
02-16-12, 12:22 AM
Which distro is it?
10.04 LTS, with all the updates.
Debian based. Look in /etc/network/interfaces
Fire$torm
02-16-12, 01:59 AM
I am using the DHCP addresses for now.  In any case, for the first time in all my years of crunching, I am seeing the tasks from all my machines and VMs in a single GUI manager.  
THIS IS FREAKING AWESOME!!
AAAAAAWWWWWW  YEEEEEAAAAAAAH!
\:D/  \:D/  \:D/
Koool! What did the trick?
zombie67
02-16-12, 02:31 AM
Koool! What did the trick?
> Ah, I think I have to choose "bridged" in the network setting of the machine in vbox. Thanks Guys!
 
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.