Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Community Lounge > Wibble
FedoraForum Search

Forgot Password? Join Us!

Wibble A place to have a sensible chat, about anything non linux related. Please remember that political and religious topics are not permitted.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st December 2009, 06:24 AM
satimis Offline
Registered User
 
Join Date: Jul 2004
Posts: 1,386
linuxdebianmozilla
How to browse VM

Hi folks,


KVM - virtualization software
SugarCRM
host OS - Debian 5.0
VMs (guest) OS - Ubutun 9.04
Single(one) external IP


This is an experiment.

There are 4 VMs, each running SugarCRM which is a web-base CRM. Each VM has its own host name and internal IP. Desktops on local network(Intranet) can browse each VM on;
Code:
local_ip/sugarcrm
without problem.

Now my further test is how can remote-desktops connect/browse the VMs? Because there is only ONE external IP. Suggestion and pointer would be appreciated. TIA


B.R.
satimis
Reply With Quote
  #2  
Old 3rd December 2009, 09:04 AM
savage's Avatar
savage Offline
Registered User
 
Join Date: Jun 2005
Location: Mission Control
Posts: 1,229
linuxfedorafirefox
I'm not familiar with SugarCRM, but the usual way you would do this is routing different ports on the host's external IP address.

Say the host has an external IP of 74.125.45.100 and each of your VMs has an internal IP address of 192.168.0.1 - 192.168.0.4. You say SugarCRM is web based, so I'm assuming it's using port 80.

So using iptables (does Ubuntu use iptables?), I would route port 74.125.45.100:80 to 192.168.0.1:80, then for the 2nd VM, use port 81 on the external IP to 192.168.0.2:80 and so on.

Doing this you would then have:As I say I'm not familiar with SugarCRM, you may encounter hostname problems or URL problems depending on how it works.
Reply With Quote
  #3  
Old 3rd December 2009, 10:19 AM
satimis Offline
Registered User
 
Join Date: Jul 2004
Posts: 1,386
linuxdebianmozilla
Quote:
Originally Posted by savage View Post
I'm not familiar with SugarCRM, but the usual way you would do this is routing different ports on the host's external IP address.

Say the host has an external IP of 74.125.45.100 and each of your VMs has an internal IP address of 192.168.0.1 - 192.168.0.4. You say SugarCRM is web based, so I'm assuming it's using port 80.

So using iptables (does Ubuntu use iptables?), I would route port 74.125.45.100:80 to 192.168.0.1:80, then for the 2nd VM, use port 81 on the external IP to 192.168.0.2:80 and so on.

Doing this you would then have:As I say I'm not familiar with SugarCRM, you may encounter hostname problems or URL problems depending on how it works.
Hi savage,

Thanks for your advice which is one of the solution making use of router. However the number of "Service Ports" has limit.

This is an experiment on cloud computing. In full service it may have >100 clients/subscriber. Then it needs a robust router. Making use of "Service Ports" on router is not an ideal solution.

B.R.
satimis
Reply With Quote
  #4  
Old 3rd December 2009, 12:00 PM
savage's Avatar
savage Offline
Registered User
 
Join Date: Jun 2005
Location: Mission Control
Posts: 1,229
linuxsafari
Well I just had another thought and I really have no idea how workable this is, or even if it'll work at all.

I'm at work on a phone so can't really investigate, but if it's purely web driven, in theory you could setup Apache on the host, with virtual hosts for each of the VMs and use mod_rewrite to silently redirect to the VMs.

If that sounds suitable, I'd have a look into mod_rewrite and check that it's capable of that.

---------- Post added at 12:00 PM CST ---------- Previous post was at 12:00 PM CST ----------

Well I just had another thought and I really have no idea how workable this is, or even if it'll work at all.

I'm at work on a phone so can't really investigate, but if it's purely web driven, in theory you could setup Apache on the host, with virtual hosts for each of the VMs and use mod_rewrite to silently redirect to the VMs.

If that sounds suitable, I'd have a look into mod_rewrite and check that it's capable of that.
Reply With Quote
  #5  
Old 3rd December 2009, 12:44 PM
satimis Offline
Registered User
 
Join Date: Jul 2004
Posts: 1,386
linuxdebianmozilla
Quote:
Originally Posted by savage View Post
........
but if it's purely web driven, in theory you could setup Apache on the host, with virtual hosts for each of the VMs and use mod_rewrite to silently redirect to the VMs.

If that sounds suitable, I'd have a look into mod_rewrite and check that it's capable of that.
Your suggestion sounds workable.

Actually what I need is to allow the clients/subscribers to call/login their own SugarCRM running as VM on the virtual machine via a single external IP. Each VM has its own static IP.

This setup looks similar to vhosting. I expect clone a VM for distributing function running Apache2. Port 80 will point at this VM. I don't expect running Apache2 on the host where KVM is running.

TIA

B.R.
satimis
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I can SSH but can't browse the web? GammaPoint Servers & Networking 4 4th April 2008 03:14 AM
httpd directory browse onf F7 (ok can browse) and F8 (Forbidden, error 403) nuaing Servers & Networking 7 31st March 2008 10:14 AM
browse ilcarlos Servers & Networking 0 19th November 2006 09:08 AM
Can use SSH but not browse websites? GeneralChaos Servers & Networking 1 1st March 2006 01:09 AM
Can browse FedoraForum.org, can't browse google.com josephy Installation and Live Media 6 16th February 2006 11:12 AM


Current GMT-time: 19:19 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat