> I would like to have Xen to run unmodified OS (Windows, and some other > Linuces). I know Linux may be ran Xen-aware, but the goal is to > experiment some kernel packaging, so that I need to use the distribution > kernel. > I got the FC5 isos. > I made a file "/etc/xen/fc5-guest.cfg" (see attached) > But the problem is about vifX interfaces. > Neither http://fr.gentoo-wiki.com/HOWTO_XEN#Windows_XP > nor http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo tells how to bring up > such interface. > In fact I dont see anywhere any documentation on how to setup networking > for the need of Xen.
Actually, you just have to start xend, and it will setup xenbr0.
But i prefer, to setup xenbr0 manually, by myself. And that's the way i
do it, in /etc/conf.d/net:
bridge_xenbr0="eth0"
config_xenbr0=(
"a.b.c.d/24"
)
routes_xenbr0=(
"default via a.b.c.d"
)
brctl_xenbr0=(
"setfd 0"
"sethello 0"
"stp off"
)
> When I run Xen, I have:
>
> asus ~ # xm create fc5-guest.cfg
> Using config file "/etc/xen/fc5-guest.cfg".
> VNC= 3
> Error: Device 0 (vif) could not be connected. Hotplug
> scripts not working.
>
> bridge-utils is already emerged.
> vnc is also emerged with USE="server"
>
> What didi I do wrong?
Do you have the necessary backend-driver in your dom0 kernel?
Please check CONFIG_XEN_NETDEV_BACKEND.
> ------------------------------------------------------------------------
>
> kernel = "/usr/lib64/xen/boot/hvmloader"
> builder='hvm'
> memory = 512
> name = "fc5-guest"
> vcpus=1
> vif = [ 'bridge=xenbr0' ]
> disk =
> ['phy:/dev/sda5,ioemu:hda,w','file:/home/mihamina/downloads/isos/FC-5-i386-disc1.iso,hdc:cdrom,r']
> device_model ='/usr/lib64/xen/bin/qemu-dm'
> boot='d'
> vnc=1
> vncviewer=1
> serial='pty'
> ne2000=0
In my config, it reads:
vif = [ 'bridge=xenbr0' ]
So yes, your config should work.
Greetings,
Sven
signature.asc
Description: OpenPGP digital signature

