Modul Menü

Wer ist online?

Insgesamt sind 4 Besucher online: 1 registrierter, 0 unsichtbare und 3 Gäste
Der Besucherrekord liegt bei 226 Besuchern, die am 8. Jul 2012, 14:25 gleichzeitig online waren.

Mitglieder: Google [Bot]

basierend auf den aktiven Besuchern der letzten 5 Minuten
Legende:
Administratoren, Globale Moderatoren

Die 5 Top Poster

Benutzername Beiträge
neobiker 1226
lomdar67 984
lucifer 979
shadowrun 920
Carsten 843

Die 5 neuen User

Benutzername Datum
lblabr 05.11.2012
WheerLope 30.10.2012
cheap rugs 30.10.2012
avaighDiarl 30.10.2012
Gydaywawclutt 30.10.2012

Willkommen

  • Wichtige Bekanntmachungen
    Antw.
    Gel.
  • Neues vom Forum
    Letzter Beitrag
  • XEN 4.1.3 ist da
    von neobiker am 12. Aug 2012, 11:30
    von neobikerNeuester Beitrag
    am 26. Aug 2012, 14:41

    Das verstecken der PCI-Devices funtkioniert bei mir nur, wenn ich in initramfs.conf MODULES=dep definiere. Wenn ich den default 'MODULES=most' verwende, lädt er einige der ungewünschten Kernel-Module trotzdem vor dem xen-pciback Modul, und kann dann auch nur einige PCI-Devices verstecken.

    Weil ich das Late-Binding eh ganz nützlich finde, habe ich das Script mal noch etwas weiter 'debinanisert' - d.h. das template verwendet. Zukünftig soll das Kommando xl ja PCI-Devices dynamisch xen-pciback zuweisen können, wie ich in der Mailing-Liste gelesen habe. Dann werde ich wohl anstatt der manuellen Einträge unter /sys/bus/... das Kommando xl verwenden (sofern das dann überhaupt noch notwendig sein sollte).

    Hier jedenfalls mein aktualisiertes 'Late-Binding' Startscript /etc/init.d/xen-pciback, welches das Konfigfile /etc/xen/xen-pciback.conf auswertet.
    Code: Alles auswählen
    #! /bin/sh
    ### BEGIN INIT INFO
    # Provides:          xen-pciback
    # Required-Start:    $remote_fs $syslog
    # Required-Stop:     $remote_fs $syslog
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Bind devices to xen-pciback
    # Description:       Bind devices to xen-pciback
    ### END INIT INFO
    # Author: neobiker <neobiker@neobiker.de>
    PATH=/sbin:/usr/sbin:/bin:/usr/bin

    DESC="Bind devices to xen-pciback"
    NAME=xen-pciback
    SCRIPTNAME=/etc/init.d/$NAME
    CONFIGNAME=/etc/xen/$NAME.conf

    # Exit if the package is not installed
    [ -e $CONFIGNAME ] || exit 0

    # Read configuration variable file if it is present
    [ -r /etc/default/$NAME ] && . /etc/default/$NAME

    # Load the VERBOSE setting and other rcS variables
    . /lib/init/vars.sh

    # Define LSB log_* functions.
    # Depend on lsb-base (>= 3.2-14) to ensure that this file is present
    # and status_of_proc is working.
    . /lib/lsb/init-functions

    #
    # Function that starts the daemon/service
    #
    do_start()
    {
       # Return
       #   0 if daemon has been started
       #   1 if daemon was already running
       #   2 if daemon could not be started

            if [ ! -x /usr/bin/lspci ]; then
                log_warning_msg "lspci not found (please install pciutils)."
                return 2
            fi

            modprobe xen-pciback 2>/dev/null

            cat $CONFIGNAME 2>/dev/null |
                awk '{if ($1 !~ /#/) print $0}' |
            while read PCI ; do
                BDF=`echo "$PCI" | awk '{print $1}'`
                DRV=`lspci -s $BDF -k | awk ' /Kernel driver in use:/ {print $NF}'`
                if [ ! "$DRV" = "pciback" ]; then
                   [ ! -e /sys/bus/pci/devices/$BDF/driver/unbind ] || \
                    echo -n $BDF > /sys/bus/pci/devices/$BDF/driver/unbind
                    echo -n $BDF > /sys/bus/pci/drivers/pciback/new_slot
                    echo -n $BDF > /sys/bus/pci/drivers/pciback/bind
                    log_action_msg "xen-pciback.hide $BDF (added)"
                else
                    log_action_msg "xen-pciback.hide $BDF (found)"
                fi
            done || return 2
            return 0
    }

    #
    # Function that stops the daemon/service
    #
    do_stop()
    {
       # Return
       #   0 if daemon has been stopped
       #   1 if daemon was already stopped
       #   2 if daemon could not be stopped
       #   other if a failure occurred
            return 0
    }

    case "$1" in
      start)
       [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
       do_start
       case "$?" in
          0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
          2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
       esac
       ;;
      stop)
       [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
       do_stop
       case "$?" in
          0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
          2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
       esac
       ;;
      *)
       echo "Usage: $SCRIPTNAME {start|stop}" >&2
       exit 3
       ;;
    esac
  • Foren Software
    von lomdar67 am 5. Apr 2011, 21:39
    von PoldiSHNeuester Beitrag
    am 29. Mai 2011, 18:12
  • Portal
    von lomdar67 am 6. Apr 2011, 21:55
    von lomdar67Neuester Beitrag
    am 28. Apr 2011, 08:48
  • Tapatalk
    von lomdar67 am 6. Apr 2011, 09:47
    von lomdar67Neuester Beitrag
    am 6. Apr 2011, 09:47
  • Die neuesten 10 Beiträge
    Letzter Beitrag

Umfrage

es gibt keine Umfragen

Willkommen Gast




20301 Neue Beiträge

Aktuelle Zeit: 25. Mai 2013, 08:39

Alle Zeiten sind UTC + 1 Stunde [ Sommerzeit ]

Uhr


Aktuelle Zeit: 25. Mai 2013, 08:39

Anmelden

Ich habe mein Passwort vergessen
Mich bei jedem Besuch automatisch anmelden:
 

Geburtstage

Glückwünsche an: ExhighilM (40) kein Mitglied hat in den nächsten 3 Tagen Geburtstag

Statistik

Beiträge insgesamt: 20388
Themen insgesamt: 2905
Mitglieder insgesamt: 1699
Unser neuestes Mitglied: lblabr

Kalender

<< Mai 2013 >>
Mo Di Mi Do Fr Sa So
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

Fest u. Feiertage Kalender-Ereignisse
01.05. - 1. Mai
09.05. - Christi Himmelfahrt
12.05. - Muttertag
19.05. - Pfingstsonntag
20.05. - Pfingstmontag
30.05. - Fronleichnam

Anstehende Termine:

Die letzten 5 Besucher

Benutzername Datum
ich_tom 24.05/23:55
Carsten 24.05/14:26
frickelpit 24.05/07:18
bringha 22.05/12:30
xenhobbyist 22.05/11:04
cron