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 |
|
15 |
Actually, you just have to start xend, and it will setup xenbr0. |
16 |
But i prefer, to setup xenbr0 manually, by myself. And that's the way i |
17 |
do it, in /etc/conf.d/net: |
18 |
|
19 |
|
20 |
bridge_xenbr0="eth0" |
21 |
config_xenbr0=( |
22 |
"a.b.c.d/24" |
23 |
) |
24 |
routes_xenbr0=( |
25 |
"default via a.b.c.d" |
26 |
) |
27 |
brctl_xenbr0=( |
28 |
"setfd 0" |
29 |
"sethello 0" |
30 |
"stp off" |
31 |
) |
32 |
|
33 |
> When I run Xen, I have: |
34 |
> |
35 |
> asus ~ # xm create fc5-guest.cfg |
36 |
> Using config file "/etc/xen/fc5-guest.cfg". |
37 |
> VNC= 3 |
38 |
> Error: Device 0 (vif) could not be connected. Hotplug |
39 |
> scripts not working. |
40 |
> |
41 |
> bridge-utils is already emerged. |
42 |
> vnc is also emerged with USE="server" |
43 |
> |
44 |
> What didi I do wrong? |
45 |
|
46 |
Do you have the necessary backend-driver in your dom0 kernel? |
47 |
Please check CONFIG_XEN_NETDEV_BACKEND. |
48 |
|
49 |
|
50 |
> ------------------------------------------------------------------------ |
51 |
> |
52 |
> kernel = "/usr/lib64/xen/boot/hvmloader" |
53 |
> builder='hvm' |
54 |
> memory = 512 |
55 |
> name = "fc5-guest" |
56 |
> vcpus=1 |
57 |
> vif = [ 'bridge=xenbr0' ] |
58 |
> disk = ['phy:/dev/sda5,ioemu:hda,w','file:/home/mihamina/downloads/isos/FC-5-i386-disc1.iso,hdc:cdrom,r'] |
59 |
> device_model ='/usr/lib64/xen/bin/qemu-dm' |
60 |
> boot='d' |
61 |
> vnc=1 |
62 |
> vncviewer=1 |
63 |
> serial='pty' |
64 |
> ne2000=0 |
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 |