Hi All, im going to setup a cluster XEN based; I have 1 Server, where i''ve installed openfiler, and another server, where i want to install a xen VM for mysql and one for mail/web. Now, my problem is: i have to mount a remote volume via NFS. Do you think it''s better mounting it on host then creating a virtual hd in it or mounting it directy in the VM? And, i need to comunicate between VM1 and VM2 (now are in the same server, but in the future i want divide them) via TCP/IP, without going trough the external switch. How can i do? When those 2 VM will be on separate servers, i''ll connect them with a cross cable. So i think i need another virtual network card on each VM. Right? Any other idea? Thankyoi very much and sorry for my bad english. Giorgio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Admin GG wrote:>And, i need to comunicate between VM1 and VM2 (now are in the same >server, but in the future i want divide them) via TCP/IP, without >going trough the external switch. How can i do? When those 2 VM will >be on separate servers, i''ll connect them with a cross cable. So i >think i need another virtual network card on each VM. Right?It''s easy to do that - you''ll find a couple of threads in the last week on setting up two bridges in Xen. Check the archives for "Xen with 2 eth interface" and "Giving multiple interfaces to a xen guest". -- 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
Thankyou Simon. Anything about the other question? And, now, if i have 2 xen VM on same host, one with the ip 192.168.1.2 and one with the 192.168.1.4, if i from .4 try to ping .2 i reach it trough .1, the gateway. Can i enable direct routing between VMs on the same host? Now it''s a proble, because my gateway has a 54 mbps speed connection, and i can''t use second vm for storage. In webfarm it''s a bit different, but it''s always a pity using a switch to comunicate between 2 vm that are hosted on the same fisical machine. Thankyou again. 2009/5/18 Simon Hobson <linux@thehobsons.co.uk>> Admin GG wrote: > > And, i need to comunicate between VM1 and VM2 (now are in the same server, >> but in the future i want divide them) via TCP/IP, without going trough the >> external switch. How can i do? When those 2 VM will be on separate servers, >> i''ll connect them with a cross cable. So i think i need another virtual >> network card on each VM. Right? >> > > It''s easy to do that - you''ll find a couple of threads in the last week on > setting up two bridges in Xen. Check the archives for "Xen with 2 eth > interface" and "Giving multiple interfaces to a xen guest". > > > -- > 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
Admin GG wrote:>And, now, if i have 2 xen VM on same host, one with the ip >192.168.1.2 and one with the 192.168.1.4, if i from .4 try to ping >.2 i reach it trough .1, the gateway.It shouldn''t need the external router - the guests are on the same subnet, so the packet should simply get forwarded to the right interface by the bridge code on the Dom0>Can i enable direct routing between VMs on the same host?That''s the default. -- 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
2009/5/18 Simon Hobson <linux@thehobsons.co.uk>> Admin GG wrote: > > And, now, if i have 2 xen VM on same host, one with the ip 192.168.1.2 and >> one with the 192.168.1.4, if i from .4 try to ping .2 i reach it trough .1, >> the gateway. >> > > It shouldn''t need the external router - the guests are on the same subnet, > so the packet should simply get forwarded to the right interface by the > bridge code on the Dom0Well, ok. Right. As VMs are on the same subnet, packages go straight to the right VM. And, now i know how can i comunicate between 2 VM on the same host. Now remains the problem: if i have 2 hosts? I''ve searched in the archive, and i haven''t found anything with keys you gave me. I''ll look topic by topic tonight. What about "Now, my problem is: i have to mount a remote volume via NFS. Do you think it''s better mounting it on host then creating a virtual hd in it or mounting it directy in the VM?"? Thankyou Giorgio> > > > Can i enable direct routing between VMs on the same host? >> > > That''s the default. > > -- > 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 >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users