public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sven Köhler" <skoehler@upb.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: [Xen] How to set or bring up "vif" interfaces?
Date: Mon, 15 Jan 2007 19:33:35 +0100	[thread overview]
Message-ID: <eoghe1$972$1@sea.gmane.org> (raw)
In-Reply-To: <1168736114.6027.27.camel@asus.localdomain>

[-- 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 --]

      parent reply	other threads:[~2007-01-15 18:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='eoghe1$972$1@sea.gmane.org' \
    --to=skoehler@upb.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox