I''ve been able to successfully start para-virt guests with static ip address'' by using the network-route and vif-route scripts, but I haven''t gotten this to work for hvm''s. For testing purposes I want to have guests started with predetermined ip''s and not have to console into them and set the address myself. I think there''s a way to do this with qemu, and so it seems like it should be possible with xen as well. Has anyone been successful in assigning a static ip to hvm''s? -- Tommie McAfee Xen Testing _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tommie McAfee <tommie.mcafee@unisys.com> wrote:> I''ve been able to successfully start para-virt guests with static ip > address'' by using the network-route and vif-route scripts, but I haven''t > gotten this to work for hvm''s. For testing purposes I want to have > guests started with predetermined ip''s and not have to console into them > and set the address myself. I think there''s a way to do this with qemu, > and so it seems like it should be possible with xen as well. > Has anyone been successful in assigning a static ip to hvm''s?It doesn''t work AFAIK http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=584 You can bodge stuff into the qemu-up.sh script though which makes it work. -- Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi, I don''t have any problems to assign static IP address to HVM domain. I used Xen 3.0.3_0. Liang ----- Original Message ----- From: "Nick Craig-Wood" <nick@craig-wood.com> To: <xen-devel@lists.xensource.com> Cc: "Tommie McAfee" <tommie.mcafee@unisys.com> Sent: Monday, November 13, 2006 10:02 AM Subject: Re: [Xen-devel] static ip for hvm''s> Tommie McAfee <tommie.mcafee@unisys.com> wrote: >> I''ve been able to successfully start para-virt guests with static ip >> address'' by using the network-route and vif-route scripts, but I haven''t >> gotten this to work for hvm''s. For testing purposes I want to have >> guests started with predetermined ip''s and not have to console into them >> and set the address myself. I think there''s a way to do this with qemu, >> and so it seems like it should be possible with xen as well. >> Has anyone been successful in assigning a static ip to hvm''s? > > It doesn''t work AFAIK > > http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=584 > > You can bodge stuff into the qemu-up.sh script though which makes it > work. > > -- > Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, 2006-11-13 at 10:13 -0700, Liang Yang wrote:> Hi, > > I don''t have any problems to assign static IP address to HVM domain. I used > Xen 3.0.3_0. > > LiangJust wondering, did you just specify an ip address somewhere in your config file, or modify qemu-up.sh? What guest O.S are you using? -- Tommie McAfee Xen Testing _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I set the ip address in the ifcfg config file for network interface in the guest domain. The OS I used for domain0 and guest domain are RHEL AS 4.4 Liang ----- Original Message ----- From: "Tommie McAfee" <tommie.mcafee@unisys.com> To: "Liang Yang" <multisyncfe991@hotmail.com> Cc: <xen-devel@lists.xensource.com>; "Nick Craig-Wood" <nick@craig-wood.com> Sent: Monday, November 13, 2006 11:18 AM Subject: Re: [Xen-devel] static ip for hvm''s> On Mon, 2006-11-13 at 10:13 -0700, Liang Yang wrote: >> Hi, >> >> I don''t have any problems to assign static IP address to HVM domain. I >> used >> Xen 3.0.3_0. >> >> Liang > > > Just wondering, did you just specify an ip address somewhere in your > config file, or modify qemu-up.sh? > > What guest O.S are you using? > > -- > Tommie McAfee > Xen Testing >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, Nov 13, 2006 at 11:33:08AM -0700, Liang Yang wrote:> I set the ip address in the ifcfg config file for network interface in the > guest domain. The OS I used for domain0 and guest domain are RHEL AS 4.4It isn''t the static IP in the guest domain that is the problem, it is getting it routed properly in dom0 with the vif-route script. I much prefer routing over switching so I always set up Xen with routes. -- Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi Nick, What is the advantage of using xen router over xen bridge? Then how about using Xen NAT over Xen router and bridge? Could you shed some lights here? Thanks, Liang ----- Original Message ----- From: "Nick Craig-Wood" <nick@craig-wood.com> To: "Liang Yang" <multisyncfe991@hotmail.com> Cc: "Tommie McAfee" <tommie.mcafee@unisys.com>; <xen-devel@lists.xensource.com> Sent: Monday, November 13, 2006 11:51 AM Subject: Re: [Xen-devel] static ip for hvm''s> On Mon, Nov 13, 2006 at 11:33:08AM -0700, Liang Yang wrote: >> I set the ip address in the ifcfg config file for network interface in >> the >> guest domain. The OS I used for domain0 and guest domain are RHEL AS 4.4 > > It isn''t the static IP in the guest domain that is the problem, it is > getting it routed properly in dom0 with the vif-route script. > > I much prefer routing over switching so I always set up Xen with > routes. > -- > Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, Nov 13, 2006 at 12:14:09PM -0700, Liang Yang wrote:> What is the advantage of using xen router over xen bridge?Routing is a lot simpler, compare the lengths of the setup scripts... 311 network-bridge 67 vif-bridge vs 19 network-route 56 vif-route When routing the linux kernel of dom0 makes the routing decisions using the routing table we all know and love. If you set route filtering echo 1 > /proc/sys/net/ipv4/conf/INTERFACE/rp_filter then it is easy to make sure that the domUs can''t steal any IP addresses which don''t belong to them, nor spoof any IP traffic. No iptables magic required. Also every time I take a bridge down it seems to crash the computer! I guess I''m just allergic to bridging/switching in general having had to debug some horrible networking problems in the past all caused by misconfigured or faulty switches ;-) YMMV of course!> Then how about using Xen NAT over Xen router and bridge? Could you > shed some lights here?I haven''t tried Xen NAT. If I was going to do it then I''d do it using iptables/shorewall in domU. -- Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, Nov 13, 2006 at 07:31:31PM +0000, Nick Craig-Wood wrote:> I haven''t tried Xen NAT. If I was going to do it then I''d do it using > iptables/shorewall in domU....I meant dom0 of course! -- Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel