[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] "routed" networking under Xen 3.2.1 / HVM?

Ray Barnes <tical.net@xxxxxxxxx> wrote:
> Understanding that HVM does not support routed networking in the
> sense that we're accustomed to with paravirtualized guests, I'm
> hoping there is some similar use-case scenario I've missed.

I made this work with Xen 3.1 and hvm guests.

Probably the easiest way is to hard code the routing you want in 

The interface is passed in as argument $1 and the bridge name as
argument $2.  Since you aren't bridging you can use the bridge name to
decide how to configure the interface with a shell case statement.

Eg in your /etc/xen/MYDOMAIN file

vif = [ 'type=ioemu, ip=, bridge=MYDOMAIN' ]

Then in /etc/xen/qemu-ifup something like (untested)



case "$bridge" in
        ifconfig $if netmask up
        route add -host dev $if

echo 1 >/proc/sys/net/ipv4/conf/${if}/proxy_arp
echo 1 >/proc/sys/net/ipv4/conf/${if}/rp_filter

You need to make the usual changes for routing rather than bridging in
xen also.

I actually did this in a different very much more complicated way
which allowed the original routing scripts to work.  This way should
work and be a lot simpler though!

Nick Craig-Wood <nick@xxxxxxxxxxxxxx> -- http://www.craig-wood.com/nick

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.