Gentoo Archives: gentoo-user

From: "Sven Köhler" <skoehler@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [Xen] How to set or bring up "vif" interfaces?
Date: Mon, 15 Jan 2007 03:47:59
Message-Id: eoesvt$8n2$1@sea.gmane.org
In Reply to: [gentoo-user] [Xen] How to set or bring up "vif" interfaces? by "Mihamina Rakotomandimby (R12y)"
1 > I would like to have Xen to run unmodified OS (Windows, and some other
2 > Linuces). I know Linux may be ran Xen-aware, but the goal is to
3 > experiment some kernel packaging, so that I need to use the distribution
4 > kernel.
5 > I got the FC5 isos.
6 > I made a file "/etc/xen/fc5-guest.cfg" (see attached)
7 > But the problem is about vifX interfaces.
8 > Neither http://fr.gentoo-wiki.com/HOWTO_XEN#Windows_XP
9 > nor http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo tells how to bring up
10 > such interface.
11 > In fact I dont see anywhere any documentation on how to setup networking
12 > for the need of Xen.
13
14 Actually, you just have to start xend, and it will setup xenbr0.
15 But i prefer, to setup xenbr0 manually, by myself. And that's the way i
16 do it, in /etc/conf.d/net:
17
18
19 bridge_xenbr0="eth0"
20 config_xenbr0=(
21 "a.b.c.d/24"
22 )
23 routes_xenbr0=(
24 "default via a.b.c.d"
25 )
26 brctl_xenbr0=(
27 "setfd 0"
28 "sethello 0"
29 "stp off"
30 )
31
32 > When I run Xen, I have:
33 >
34 > asus ~ # xm create fc5-guest.cfg
35 > Using config file "/etc/xen/fc5-guest.cfg".
36 > VNC= 3
37 > Error: Device 0 (vif) could not be connected. Hotplug
38 > scripts not working.
39 >
40 > bridge-utils is already emerged.
41 > vnc is also emerged with USE="server"
42 >
43 > What didi I do wrong?
44
45 Do you have the necessary backend-driver in your dom0 kernel?
46 Please check CONFIG_XEN_NETDEV_BACKEND.
47
48
49 > ------------------------------------------------------------------------
50 >
51 > kernel = "/usr/lib64/xen/boot/hvmloader"
52 > builder='hvm'
53 > memory = 512
54 > name = "fc5-guest"
55 > vcpus=1
56 > vif = [ 'bridge=xenbr0' ]
57 > disk = ['phy:/dev/sda5,ioemu:hda,w','file:/home/mihamina/downloads/isos/FC-5-i386-disc1.iso,hdc:cdrom,r']
58 > device_model ='/usr/lib64/xen/bin/qemu-dm'
59 > boot='d'
60 > vnc=1
61 > vncviewer=1
62 > serial='pty'
63 > ne2000=0
64
65
66 In my config, it reads:
67 vif = [ 'bridge=xenbr0' ]
68
69
70 So yes, your config should work.
71
72
73 Greetings,
74 Sven

Attachments

File name MIME type
signature.asc application/pgp-signature