Subject: Re: NetBSD-Current/XEN3 : XM CREATE problem
To: None <port-xen@netbsd.org>
From: KlinT <klint@klintcentral.net>
List: port-xen
Date: 07/16/2006 19:51:17
Thanks a lot Rainer,

I've done this just before your mail :D

but, I have to change xend-config.sxp in order to have my default =20
network card available for xen ...

Many thanks

Le 16 juil. 06 =E0 19:46, Rainer Brinkm=F6ller a =E9crit :

> KlinT schrieb:
>
>> ...
>> my config file is "test" :
>>
>> #--------------------------------------------------------------------=20=

>> --- -----
>> kernel =3D "/root/netbsd-INSTALL_XEN3_DOMU"
>> # kernel =3D "/root/netbsd-XEN3_DOMU"
>> # ramdisk =3D "/boot/initrd.gz"
>> # builder=3D'linux'
>> memory =3D 128
>> name =3D "test"
>> # List of which CPUS this domain is allowed to use, default Xen picks
>> #cpus =3D ""         # leave to Xen to pick
>> #cpus =3D "0"        # all vcpus run on CPU0
>> #cpus =3D "0-3,5,^1" # run on cpus 0,2,3,5
>> # vcpus =3D 1
>> # vif =3D [ '', 'bridge=3Dxenbr1' ]
>> # vif =3D [ '', 'bridge=3Dbridge0' ]
>> # vif =3D [ '' ]
>> # vif =3D [ '', 'bridge=3Dxenbr0' ]
>> disk =3D [ 'phy:/dev/wd0h,0x03,w', 'phy:/dev/cd0a,0x04,r' ]
>> # disk =3D [ 'phy:/dev/wd0h,0x03,w' ]
>> root =3D "/dev/wd0d ro"
>> extra =3D "4"
>> #--------------------------------------------------------------------=20=

>> --- -----
>>
>> With this, I have successfully install NetBSD.DomU ...
>>
>> But at this point I still have no network :(
>
> You'll find further information about xen virtual networking here:
> http://wiki.xensource.com/xenwiki/XenNetworking
>
> First try something like this:
>
> 1. Add "vif =3D [ 'mac=3Daa:00:00:50:01:f0, bridge=3Dbridge0' ]" to =
your =20
> config file
> 2. Take a look inside /etc/xen/network
>    There you can read:
>    # However, it is simpler to create any network devices at system =20=

> startup
>    # via /etc/ifconfig.* scripts, e.g. if dom0 has a bge0 device =20
> and we wish
>    # to create a bridge0 device:
>    #
>    # /etc/ifconfig.bridge0
>    # ------8<------8<------8<------8<------
>    # create
>    # !brconfig $int add bge0 stp bge0 up
>    # ------>8------>8------>8------>8------
>    So, create /etc/ifconfig.bridge0 and insert this two lines,
>    replace bge0 with the "name" of your network interface.
>    In my environment (xen 2.0.7) this in /etc/ifconfig.bridge0 did =20
> work better:
>    create
>    !brconfig bridge0 add bge0
>    !brconfig bridge0 up
>
> 3. In domU create a network interface config file /etc/xennet0 and =20
> insert your network configuration,
>    something like:
>    inet 10.10.10.1 netmask 0xffffff00
>
>    (of course the ip and subnetmask depends on what your =20
> environment is configured)
>
>> I've tried many configuration parameters in xend-config.sxp =20
>> without  any success
>
> Don't change the xend-config.sxp now (maybe later if you understand =20=

> what happen here).
>
> - Rainer
>
>