* [gentoo-user] [Xen] How to set or bring up "vif" interfaces?
@ 2007-01-14 0:55 Mihamina Rakotomandimby (R12y)
2007-01-15 3:38 ` [gentoo-user] " Sven Köhler
2007-01-15 18:33 ` Sven Köhler
0 siblings, 2 replies; 3+ messages in thread
From: Mihamina Rakotomandimby (R12y) @ 2007-01-14 0:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 858 bytes --]
Hi,
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.
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?
[-- Attachment #2: fc5-guest.cfg --]
[-- Type: text/plain, Size: 319 bytes --]
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-user] Re: [Xen] How to set or bring up "vif" interfaces?
2007-01-14 0:55 [gentoo-user] [Xen] How to set or bring up "vif" interfaces? Mihamina Rakotomandimby (R12y)
@ 2007-01-15 3:38 ` Sven Köhler
2007-01-15 18:33 ` Sven Köhler
1 sibling, 0 replies; 3+ messages in thread
From: Sven Köhler @ 2007-01-15 3:38 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1961 bytes --]
> 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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-user] Re: [Xen] How to set or bring up "vif" interfaces?
2007-01-14 0:55 [gentoo-user] [Xen] How to set or bring up "vif" interfaces? Mihamina Rakotomandimby (R12y)
2007-01-15 3:38 ` [gentoo-user] " Sven Köhler
@ 2007-01-15 18:33 ` Sven Köhler
1 sibling, 0 replies; 3+ messages in thread
From: Sven Köhler @ 2007-01-15 18:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1961 bytes --]
> 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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-15 18:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-14 0:55 [gentoo-user] [Xen] How to set or bring up "vif" interfaces? Mihamina Rakotomandimby (R12y)
2007-01-15 3:38 ` [gentoo-user] " Sven Köhler
2007-01-15 18:33 ` Sven Köhler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox