Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

[Solved]Xen networking question

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
COiN3D
Guru
Guru
User avatar
Posts: 543
Joined: Mon Aug 02, 2004 11:20 pm
Location: Munich, Germany

[Solved]Xen networking question

  • Quote

Post by COiN3D » Tue Apr 22, 2008 9:51 am

Hello there,

I've just installed a fresh copy of Gentoo amd64 2007.0 with Xen and bootet it correctly. For my installation, I took a look at the Gentoo-Wiki XEN Howto, as well at the official Gentoo-XEN Howto. However, there is one thing which I'm not sure about if its working fine: the networking device.

In Gentoo Wiki, there is a line which tells me that I should deactivate net.eth0 completely:

Code: Select all

To configure the network, make your changes in /etc/conf.d/net but DO NOT add net.eth0 to runlevel default. /etc/init.d/xend will start and configure your network at boot time. (While testing the initial kernel build on a machine on a remote net connection it may be useful to leave net.eth0 enabled and NOT autostart xend)

Newer Gentoo automaticly loads net.eth0 even if it is disabled in the default runlevel. You can disable this behaviour by changing RC_PLUG_SERVICES variable in /etc/conf.d/rc:
File: /etc/conf.d/rc

RC_PLUG_SERVICES="!net.*"
I did that although nothing about deactivating the net.eth0 init script is said in the official Howto! The problem was that after rebooting the new XEN Kernel, xend didn't start up my net.eth0 or "managed" it like it is told me in the Gentoo Wiki. I then added net.eth0 again to runlevel default and rebooted the machine, and then my machine had at least networking - but now I'm not sure if thats wrong!

So my question is: Is it possible that the gentoo wiki is telling me bullshit and that deactivating net.eth0 from bootup isn't necessary any longer? And if NOT, what's the correct cycle?

Best wishes...
Last edited by COiN3D on Fri Apr 25, 2008 5:50 pm, edited 1 time in total.
e17 documentation | Be free and use Jabber as your IM! | Combine IRC and IM
Top
COiN3D
Guru
Guru
User avatar
Posts: 543
Joined: Mon Aug 02, 2004 11:20 pm
Location: Munich, Germany

  • Quote

Post by COiN3D » Tue Apr 22, 2008 5:24 pm

No one with xen? :(
e17 documentation | Be free and use Jabber as your IM! | Combine IRC and IM
Top
xming
Guru
Guru
User avatar
Posts: 441
Joined: Tue Jul 02, 2002 7:32 pm
Contact:
Contact xming
Website

  • Quote

Post by xming » Wed Apr 23, 2008 10:12 am

The behavior and interactions of xend, gentoo network scripts and udev has changed oh so many times, it's frustrating. Xen 3.2 changed the default bridge name and it's really messy, I haven't any time to figure out how it works (or not :).

My advise (and experience since the xen 2.x days till now): don't use xend's magic for your network !!!!!

So what you need for a basic bridged xen are:
  • a bridge for all your domUs
  • a physical interface plugged into that bridge
Really simple no? :)

Step you have to do:
  • create a bridge in /etc/conf.d/net like this:

    Code: Select all

    config_xenbr0=( "192.168.100.1/24" )
    and put your eth0 in the bridge by

    Code: Select all

    bridge_xenbr0="eth0"
  • /etc/xen/xend-config.sxp comment the line

    Code: Select all

    (network-script network-bridge)
    so it becomes

    Code: Select all

    #(network-script network-bridge)
    and add

    Code: Select all

    (vif-script vif-bridge bridge=xenbr0)
  • in /etc/init.d do

    Code: Select all

    ln -s net.lo net.xenbr0
  • add net.xenbr0 in your default runlevel by

    Code: Select all

    rc-update add net.xenbr0 default
  • in every config of DomU you need this:

    Code: Select all

    vif = [ 'mac=00:16:3e:00:00:01, bridge=xenbr0' ] 
    (please change mac for every DomU)
With is network setup you have everything in hand and your network won't break after any upgrade (this is a must for remote machines). The only difference is that your eth0 does not have an ip address anymore.
http://wojia.be
Top
COiN3D
Guru
Guru
User avatar
Posts: 543
Joined: Mon Aug 02, 2004 11:20 pm
Location: Munich, Germany

  • Quote

Post by COiN3D » Fri Apr 25, 2008 5:50 pm

Okay, thank you very much. I'll try it your way.
e17 documentation | Be free and use Jabber as your IM! | Combine IRC and IM
Top
Post Reply

4 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic