LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-30-2010, 04:47 AM   #1
ericmn
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Rep: Reputation: 0
how to reach a vbox session from another one


Hello,
I have different vbox sessions. I run one application on one of them and it shouild be able to reach programms and files located on another session.
How can I do that ? Can I get a url that addresses each of my virtual machines ?

OS host linux X86_64
 
Old 10-30-2010, 08:57 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
It depends on how you configured your virtual network(s) and whether
or not you have firewall restrictions on the guests.

How do you have your network(s) set up in VirtualBox?
 
Old 10-30-2010, 09:08 AM   #3
ericmn
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
I have not setup anything. There is a workgroup name, no domain set.
 
Old 10-30-2010, 09:12 AM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Just to be clear, when you mention vbox, are you referring to VirtualBox?

If so, you have the option to create virtual networks. As I recall, the
options are a bridged network to any one of your host's interfaces, a
host-only network and a NAT network. Check what type(s) you have configured.
 
Old 10-30-2010, 09:14 AM   #5
ericmn
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Yes it is Virtual box. and it is defined as nat.
 
Old 10-30-2010, 09:19 AM   #6
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
The next step would be to make sure each guest can connect to
the host. The easy way is to see if each guest gets an address
from dhcp. If so, your NAT connection is working properly.
If not, we'll have to figure out why.

Would you mind posting the IP addresses of each guest as well
as the IP address of the host on the NAT network?

Last edited by carltm; 10-30-2010 at 09:32 AM. Reason: added 2nd paragraph
 
Old 10-30-2010, 09:32 AM   #7
ericmn
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
each guest nat works. I have internet access on each guest and shared folders working.
But I need one application running on one guest to call another one running on another guest.
This is already working inside the same session, my program calls the other one asking him to look for an url. with localhost it works well inside my virtual session.
But I need this program to call another one outside the session, so I cannot use localhost to ask him to search. I need to identify the other virtual machine thanks to an url, but I do not know how to do this.
 
Old 10-30-2010, 09:34 AM   #8
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Okay, the next step is to make sure the guests can ping each other.
You might need to remove some firewall restrictions.
 
Old 10-30-2010, 01:04 PM   #9
ericmn
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
firewalls off
 
Old 10-31-2010, 12:44 PM   #10
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
I'd suggest opening a terminal window on your host and pinging each
of the IP addresses. For example, if one guest uses 192.168.50.102,
type "ping -c1 192.168.50.102". Post the output for each of your guests.
 
Old 10-31-2010, 02:06 PM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Are you using DHCP in the guests? If you are then each will get an address in the 10.0.2.x range and AFAIK there is no way for them to learn each others addresses, that is VirtualBox does not run a dynamic DNS.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Runing VBox TheSappy Slackware 8 09-12-2010 11:38 PM
VBox in Slackware 13.1 gregkedro Linux - Virtualization and Cloud 5 08-05-2010 08:26 AM
[SOLVED] VBox-NS_ERROR_FAILURE th1bill Linux - Software 3 07-25-2010 05:47 AM
vbox on current justwantin Slackware 4 08-11-2009 02:29 AM
Upgrading VBox 2.0.2 on Fedora 9 to VBox 2.0.6 fcquayso Linux - Newbie 2 12-10-2008 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration