static ip for hvm's
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?
Signature · 2 lines
Tommie McAfee Xen Testing
Quoted 7 lines · Tommie McAfee
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.
Signature · 1 line
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick
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" <[email protected]>
To: <[email protected]>
Cc: "Tommie McAfee" <[email protected]>
Sent: Monday, November 13, 2006 10:02 AM
Subject: Re: [Xen-devel] static ip for hvm's
Quoted 24 lines
Quoted 7 lines · Tommie McAfee
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.shscript though which makes it work.Signature · 6 lines
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel
Quoted 6 lines · Liang Yang
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?
Signature · 2 lines
Tommie McAfee Xen Testing
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" <[email protected]>
To: "Liang Yang" <[email protected]>
Cc: <[email protected]>; "Nick Craig-Wood" <[email protected]>
Sent: Monday, November 13, 2006 11:18 AM
Subject: Re: [Xen-devel] static ip for hvm's
Quoted 18 lines · Liang Yang
Quoted 6 lines
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.Sare you using?Signature · 2 lines
Tommie McAfee Xen Testing
Quoted 2 lines · Liang Yang
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.
Signature · 1 line
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick
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" <[email protected]>
To: "Liang Yang" <[email protected]>
Cc: "Tommie McAfee" <[email protected]>; <[email protected]>
Sent: Monday, November 13, 2006 11:51 AM
Subject: Re: [Xen-devel] static ip for hvm's
Quoted 12 lines · Liang Yang
Quoted 2 lines
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.
Signature · 1 line
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick
Quoted 1 line · Liang Yang
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!
Quoted 2 lines
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.
Signature · 1 line
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick
Quoted 2 lines · Nick Craig-Wood
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!
Signature · 1 line
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick