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

Re: [Xen-users] DomU WinXP no network connection



Well, I don't want xen to create any bridges or network-devices itself,
so I wrote a new vif-* and a new network-* script to achieve that (using
Gentoo Linux).

The network-* script is empty except for a line containing "/bin/true"
and the vif-* script contains the following:


******************************************
dir=$(dirname "$0")
. "$dir/vif-common.sh"


case "$command" in
    online)
        /etc/init.d/net.${vifname} start
        ;;
    offline)
        /etc/init.d/net.${vifname} stop
        ;;
esac

success
******************************************

The following line is important in the configuration-file for the
virtual machine:

******************************************
vif = [ 'type=ioemu, vifname=vifwinxp, bridge=br0' ]
******************************************

In addition to that, I create the bridge 'br0' manually (with an IP) and
attach a real ethernet device (lan0) to it:


******************************************
# brctl show

bridge name     bridge id               STP enabled     interfaces
br0             8000.0017312c5aaa       no              lan0
                                                        tun0
                                                        vifwinxp
******************************************


(I didn't test it yet, but it's probably not even necessary to create
the device 'vifwinxp', since xen creates a device tun0 for the virtual
machine.)
... and don't forget to change the names of the network scripts in
/etc/xen/xend-config.sxp if you create new vif-* and network-* scripts
and restart xen to load it.


Greets,
Tiziano Mueller




Wayne Pascoe wrote:
>
> On 21 Jul 2006, at 21:28, Simon Gao wrote:
>
>> Loading tun module does fix domU network problem.  Thanks a lot.
>>
>
> I have the tun module loaded, and this still does not fix it for me.
>
> Could you please share the rest of your network connection please ?
>
> When you are booted up, are you bridging eth0? Does xenbr0 have an IP
> address or not ?
>
> Any pointers you could give me about how you setup your networking
> would be MUCH appreciated!
>
> Thanks in advance,
>
> --Wayne Pascoe    (gpg --keyserver www.co.uk.pgp.net --recv-keys
> 79A7C870)
> It could be dangerous... A lot of killing...
> and violence. You wanna come?
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


-- 
Tiziano Müller
Software Development & IT

Neuronics AG
Technoparkstrasse 1
8005 Zuerich / Switzerland

Tel (direct): +41 44 445 15 31
Tel +41 44 445 16 40
Fax +41 44 445 16 44
www.neuronics.ch
--


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

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