WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

Subject: Re: [Xen-users] DomU WinXP no network connection
From: Tiziano Mueller <tiziano.mueller@xxxxxxxxxxxx>
Date: Sat, 22 Jul 2006 22:35:14 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 22 Jul 2006 13:36:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <A19A0C8B-769D-47C4-8878-48DCEB67392C@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Neuronics AG
References: <08B1877B2880CE42811294894F33AD5C68C3C3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <44C10927.3000406@xxxxxxxxxxxxxxx> <E88B77B4-1AB4-4110-94A7-75BD627E8589@xxxxxxxxxxxxxxxxxx> <44C138E1.8010509@xxxxxxxxxxxxxxx> <A19A0C8B-769D-47C4-8878-48DCEB67392C@xxxxxxxxxxxxxxxxxx>
Reply-to: tiziano.mueller@xxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.4) Gecko/20060605 Thunderbird/1.5.0.4 Mnenhy/0.7.4.0
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