Hi: I have two HVM domU ubuntu 10.04 Lts and Window XP running. I have assigned PCIe device to each of this domU. I would like to communicate these two VM. Can anyone give me some idea on how to do. I did some research on IVC but unable to get answer. Anything will be appreciated. Anju _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 06/01/2011 01:15 PM, Achala Aryal wrote:> > Hi: > I have two HVM domU ubuntu 10.04 Lts and Window XP running. I have > assigned PCIe device to each of this domU. I would like to communicate > these two VM. Can anyone give me some idea on how to do. I did some > research on IVC but unable to get answer. Anything will be appreciated. > > > AnjuI create a bridge in dom0 (whether tied to a real interface or not it up to you), and then connect a new interface on the VMs to it. Then inter-node comms can simply be ''eth1'' or what have you. -- Digimer E-Mail: digimer@alteeve.com Freenode handle: digimer Papers and Projects: http://alteeve.com Node Assassin: http://nodeassassin.org "I feel confined, only free to expand myself within boundaries." _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I am little bit confuse on do I have to build an external code or just modify the xen source code for this?Do you know any documentation related to this? I found some but all are talking only about the performance. But I am looking for something how to do this. Anju> Date: Wed, 1 Jun 2011 13:20:51 -0400 > From: linux@alteeve.com > To: arya2595@vandals.uidaho.edu > Subject: Re: [Xen-users] Inter VM communication > CC: xen-users@lists.xensource.com > > On 06/01/2011 01:15 PM, Achala Aryal wrote: > > > > Hi: > > I have two HVM domU ubuntu 10.04 Lts and Window XP running. I have > > assigned PCIe device to each of this domU. I would like to communicate > > these two VM. Can anyone give me some idea on how to do. I did some > > research on IVC but unable to get answer. Anything will be appreciated. > > > > > > Anju > > I create a bridge in dom0 (whether tied to a real interface or not it up > to you), and then connect a new interface on the VMs to it. Then > inter-node comms can simply be ''eth1'' or what have you. > > -- > Digimer > E-Mail: digimer@alteeve.com > Freenode handle: digimer > Papers and Projects: http://alteeve.com > Node Assassin: http://nodeassassin.org > "I feel confined, only free to expand myself within boundaries." > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 06/01/2011 01:26 PM, Achala Aryal wrote:> I am little bit confuse on do I have to build an external code or just > modify the xen source code for this? > Do you know any documentation related to this? I found some but all are > talking only about the performance. But I am looking for something how > to do this. > > AnjuFirst, you''ve not mentioned what OS or versions you are running, so specific answers are quite difficult. That said; Build a normal bridge in the OS, the use ''virsh'' to attach a new vifX.Y interface between the domU and dom0 bridge. I''ve covered the building of bridges in a RHEL 5.6 based tutorial using Xen 3.0 here, perhaps it will help. It also covers the networking in Xen in general: http://wiki.alteeve.com/index.php/Red_Hat_Cluster_Service_2_Tutorial#Setting_Up_Xen -- Digimer E-Mail: digimer@alteeve.com Freenode handle: digimer Papers and Projects: http://alteeve.com Node Assassin: http://nodeassassin.org "I feel confined, only free to expand myself within boundaries." _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Jun 1, 2011 at 7:15 PM, Achala Aryal <arya2595@vandals.uidaho.edu>wrote:> > Hi: > I have two HVM domU ubuntu 10.04 Lts and Window XP running. I have assigned > PCIe device to each of this domU. I would like to communicate these two VM. > Can anyone give me some idea on how to do. I did some research on IVC but > unable to get answer. Anything will be appreciated. > > > Anju > > >Simply setup an extra interface on each VM, on the same IP subnet and they''ll communicate to each other :) i.e. something like: ifconfig eth0:0 192.168.2.1 and then on the other VM ifconfig eth0:0 192.168.2.2 -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 06/01/2011 01:48 PM, Rudi Ahlers wrote:> > > On Wed, Jun 1, 2011 at 7:15 PM, Achala Aryal > <arya2595@vandals.uidaho.edu <mailto:arya2595@vandals.uidaho.edu>> wrote: > > > Hi: > I have two HVM domU ubuntu 10.04 Lts and Window XP running. I have > assigned PCIe device to each of this domU. I would like to > communicate these two VM. Can anyone give me some idea on how to do. > I did some research on IVC but unable to get answer. Anything will > be appreciated. > > > Anju > > > Simply setup an extra interface on each VM, on the same IP subnet and > they''ll communicate to each other :) > i.e. something like: > ifconfig eth0:0 192.168.2.1 > and then on the other VM > ifconfig eth0:0 192.168.2.2This works, but it shares the network traffic with the same network as the existing traffic. This is possibly a security issue if the existing network is not fully trusted. -- Digimer E-Mail: digimer@alteeve.com Freenode handle: digimer Papers and Projects: http://alteeve.com Node Assassin: http://nodeassassin.org "I feel confined, only free to expand myself within boundaries." _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Jun 1, 2011 at 7:53 PM, Digimer <linux@alteeve.com> wrote:> On 06/01/2011 01:48 PM, Rudi Ahlers wrote: > >> >> >> On Wed, Jun 1, 2011 at 7:15 PM, Achala Aryal >> <arya2595@vandals.uidaho.edu <mailto:arya2595@vandals.uidaho.edu>> wrote: >> >> >> Hi: >> I have two HVM domU ubuntu 10.04 Lts and Window XP running. I have >> assigned PCIe device to each of this domU. I would like to >> communicate these two VM. Can anyone give me some idea on how to do. >> I did some research on IVC but unable to get answer. Anything will >> be appreciated. >> >> >> Anju >> >> >> Simply setup an extra interface on each VM, on the same IP subnet and >> they''ll communicate to each other :) >> i.e. something like: >> ifconfig eth0:0 192.168.2.1 >> and then on the other VM >> ifconfig eth0:0 192.168.2.2 >> > > This works, but it shares the network traffic with the same network as the > existing traffic. This is possibly a security issue if the existing network > is not fully trusted. > > > -- > >If the 2 VM''s are on the same Hypervisor, and they''re using a IP subnet which other hosts don''t use then it doesn''t get "shared". Use VLAN if you need security :) -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
My OS is Ubuntu 10.04 lts and using xen 4.0. I will give a try on both. However, I don''t want to share. I will post the result.Thank you Anju From: Rudi@SoftDux.com Date: Wed, 1 Jun 2011 19:59:07 +0200 Subject: Re: [Xen-users] Inter VM communication To: linux@alteeve.com CC: xen-users@lists.xensource.com; arya2595@vandals.uidaho.edu On Wed, Jun 1, 2011 at 7:53 PM, Digimer <linux@alteeve.com> wrote: On 06/01/2011 01:48 PM, Rudi Ahlers wrote: On Wed, Jun 1, 2011 at 7:15 PM, Achala Aryal <arya2595@vandals.uidaho.edu <mailto:arya2595@vandals.uidaho.edu>> wrote: Hi: I have two HVM domU ubuntu 10.04 Lts and Window XP running. I have assigned PCIe device to each of this domU. I would like to communicate these two VM. Can anyone give me some idea on how to do. I did some research on IVC but unable to get answer. Anything will be appreciated. Anju Simply setup an extra interface on each VM, on the same IP subnet and they''ll communicate to each other :) i.e. something like: ifconfig eth0:0 192.168.2.1 and then on the other VM ifconfig eth0:0 192.168.2.2 This works, but it shares the network traffic with the same network as the existing traffic. This is possibly a security issue if the existing network is not fully trusted. -- If the 2 VM''s are on the same Hypervisor, and they''re using a IP subnet which other hosts don''t use then it doesn''t get "shared". Use VLAN if you need security :) -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
At 11:09 -0700 1/6/11, Achala Aryal wrote:>My OS is Ubuntu 10.04 lts and using xen 4.0. >I will give a try on both. However, I don''t want to share.You can create another bridge in the Dom0 which does *NOT* have a real interface connected to it. You can then create two IVFs for each DomU - one connected to the bridge with an external interface, the other connected to the internal bridge. Traffic on the internal bridge will be invisible to the outside world. Eg, if you current bridge is br0, then you can create a new one by : brctl addbr br1 then just connect each DomU to br0 and br1 -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users