LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-01-2010, 06:27 AM   #1
raskar
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
Xen - Image nbetwork connectivity between 2 different dom0


Hello,

I'm building my new virtual infrastructure.
My physical servers are hosted in datacenter with one public ip address.
So I configured my vm (domU) to use nat.

On one server I can connect to every vm hosted in this server and vm can connect to each other.
But I need one vm on server A can connect to another vm on server B.

I think there is a lot of iptable rules to enable that but how can I do that ?

Is someone know another way ?


Thanks
 
Old 02-01-2010, 07:30 AM   #2
wogri
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
your domU uses nat? should be dom0, right?
if you have enabled dom0 masquerading / nat, you should put the domU's in the same subnet (e. g. 192.168.0.0/24), and you should be fine. iptables has a forwarding chain that is responsible for filtering that kind of traffic.
 
Old 02-02-2010, 12:40 AM   #3
wogri
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
oh, you are searching for DNAT with iptables. works, but your concept sucks.
 
0 members found this post helpful.
Old 02-08-2010, 05:39 AM   #4
raskar
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, if my concept sucks what is your solution ?
So I've installed OpenVPN in both physical servers, the first is the server and the other one the client and the next servers as well.
I have set 1 virtual sub net for server 1 and a other one for the second (10.1.1.0 and 10.2.1.0 respectively).
Vpn works well, from server 2 I can ping a virtual machine of server A , but I can't ping a virtual machine of server B from server A (the vpn server)


This is the output of server A (vpn server)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.10.1 * 255.255.255.255 UH 0 0 0 vif8.0
10.1.8.1 * 255.255.255.255 UH 0 0 0 vif7.0
10.1.2.1 * 255.255.255.255 UH 0 0 0 vif12.0
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
10.1.9.1 * 255.255.255.255 UH 0 0 0 vif9.0
10.1.1.2 * 255.255.255.255 UH 0 0 0 vif3.0
10.1.3.1 * 255.255.255.255 UH 0 0 0 vif6.0
10.1.1.1 * 255.255.255.255 UH 0 0 0 vif4.0
10.1.5.1 * 255.255.255.255 UH 0 0 0 vif5.0
xxxxxxxxxxx * 255.255.255.0 U 0 0 0 eth0
10.2.1.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0

And route table of server B (vpn client)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.5 * 255.255.255.255 UH 0 0 0 tun0
10.2.2.2 * 255.255.255.255 UH 0 0 0 vif6.0
10.2.1.3 * 255.255.255.255 UH 0 0 0 vif2.0
10.2.1.4 * 255.255.255.255 UH 0 0 0 vif4.0
xxxxxxxxxxx * 255.255.255.0 U 0 0 0 eth0
10.8.0.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0
10.1.1.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0

(I'm using xen network mode)
Is someone has an idea of what's wrong on my setup
 
Old 02-09-2010, 07:46 AM   #5
wogri
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
you should get a bunch of public ip addresses on both sides, you really want to.
 
Old 02-16-2010, 06:47 AM   #6
raskar
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Finally, I made it work.

I setup a VPN (openVPN) connection between my physical server and pushed the the virtual network from each other like it was real hosts.

So now I can connect from a vm on server A to vm on server B and so on.

I have other problems that I will post in a new post

resolved
 
  


Reply

Tags
connectivity, network, xen


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Setup Slackware64 HVM with Xen Dom0 Kernel 2.6.31.4 in Fedora 11 x86-64 Dom0 Teo En Ming Linux - Virtualization and Cloud 0 11-01-2009 09:24 AM
LXer: Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http: LXer Syndicated Linux News 0 01-03-2009 06:50 PM
LXer: Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http: LXer Syndicated Linux News 0 01-03-2009 01:00 PM
LXer: Install SNV103 PV DomU with ZFS image at Xen 3.3.1. openSUSE 11.1 Dom0 (all 64- LXer Syndicated Linux News 0 12-08-2008 03:50 AM
LXer: Backport Intrepid Xen 3.3 Hypervisor to Ubuntu Hardy Dom0 (2.6.24-21-xen) LXer Syndicated Linux News 0 11-13-2008 07:11 PM


All times are GMT -5. The time now is 06:28 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration