serveur_xen
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
serveur_xen [2010/01/09 23:15] – thierry | serveur_xen [2011/09/21 22:27] – thierry | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | | :!: Xen 4 et Squeeze sont juste survolé ici... | | ||
+ | |||
====== Xen ====== | ====== Xen ====== | ||
Liens: | Liens: | ||
Ligne 207: | Ligne 209: | ||
... | ... | ||
Bien mettre en commentaire la ligne "'' | Bien mettre en commentaire la ligne "'' | ||
+ | |||
+ | === Tips === | ||
+ | |||
+ | == tracking == | ||
+ | |||
+ | Liens: | ||
+ | *http:// | ||
+ | *http:// | ||
+ | *http:// | ||
+ | |||
+ | Désactiver le " | ||
+ | net.bridge.bridge-nf-call-ip6tables = 0 | ||
+ | net.bridge.bridge-nf-call-iptables = 0 | ||
+ | net.bridge.bridge-nf-call-arptables = 0 | ||
+ | |||
+ | Sinon **''/ | ||
+ | |||
==== Methode en production ==== | ==== Methode en production ==== | ||
Ligne 778: | Ligne 797: | ||
startkde & | startkde & | ||
Et voila. | Et voila. | ||
+ | |||
+ | === tips === | ||
+ | |||
+ | Desactiver les tentations de " | ||
+ | # echo "/ | ||
+ | Et ainsi: | ||
+ | # / | ||
+ | Not starting K Display Manager (kdm); it is not the default display manager. | ||
===== Windowz en machine Virtuel ===== | ===== Windowz en machine Virtuel ===== | ||
Ligne 969: | Ligne 996: | ||
==== ttyS0 ==== | ==== ttyS0 ==== | ||
+ | |||
+ | === methode 1 === | ||
+ | |||
Par défaut, Xen se réserve l' | Par défaut, Xen se réserve l' | ||
Ligne 986: | Ligne 1016: | ||
Il existe d' | Il existe d' | ||
+ | === methode 2 === | ||
+ | '' | ||
- | + | Exemple de conf de '' | |
+ | ... | ||
+ | ## Xen Linux kernel options to use with the default Xen boot option | ||
+ | # xenkopt=console=tty0 console=hvc0 | ||
+ | ... | ||
==== 4gb seg fixup ==== | ==== 4gb seg fixup ==== | ||
Ligne 1214: | Ligne 1249: | ||
==== clocksource/ | ==== clocksource/ | ||
+ | |||
+ | === methode 1 (Obsolete?) === | ||
+ | |||
Lien: http:// | Lien: http:// | ||
Ligne 1221: | Ligne 1259: | ||
extra = ' | extra = ' | ||
+ | === methode 2 (mieux?) === | ||
+ | | :!: Ca ne fonctionne pas ! | | ||
+ | |||
+ | Lien: http:// | ||
+ | |||
+ | Ne rien touché à la conf des DomU, mais plutot au niveau du Dom0, en apportant la modification suivante: | ||
+ | |||
+ | # echo " | ||
+ | |||
+ | Pour que ce soit en place à chaque boot, voici un petit script: | ||
+ | | ||
+ | #! /bin/sh | ||
+ | ### BEGIN INIT INFO | ||
+ | # Provides: | ||
+ | # Required-Start: | ||
+ | # Required-Stop: | ||
+ | # Default-Start: | ||
+ | # Default-Stop: | ||
+ | # Short-Description: | ||
+ | # Description: | ||
+ | # placed in / | ||
+ | ### END INIT INFO | ||
+ | | ||
+ | # Author: Thierry JAOUEN | ||
+ | # | ||
+ | | ||
+ | # Do NOT "set -e" | ||
+ | | ||
+ | # PATH should only include /usr/* if it runs after the mountnfs.sh script | ||
+ | PATH=/ | ||
+ | DESC=" | ||
+ | NAME=myxen-stuff | ||
+ | SCRIPTNAME=/ | ||
+ | | ||
+ | # Read configuration variable file if it is present | ||
+ | [ -r / | ||
+ | | ||
+ | # Load the VERBOSE setting and other rcS variables | ||
+ | . / | ||
+ | | ||
+ | # Define LSB log_* functions. | ||
+ | # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. | ||
+ | . / | ||
+ | | ||
+ | # | ||
+ | # Function that starts the daemon/ | ||
+ | # | ||
+ | do_start() | ||
+ | { | ||
+ | # http:// | ||
+ | | ||
+ | echo " | ||
+ | } | ||
+ | | ||
+ | # | ||
+ | # Function that stops the daemon/ | ||
+ | # | ||
+ | do_stop() | ||
+ | { | ||
+ | echo " | ||
+ | } | ||
+ | | ||
+ | # | ||
+ | # Function that sends a SIGHUP to the daemon/ | ||
+ | # | ||
+ | do_reload() { | ||
+ | return 0 | ||
+ | } | ||
+ | | ||
+ | case " | ||
+ | start) | ||
+ | [ " | ||
+ | do_start | ||
+ | case " | ||
+ | 0|1) [ " | ||
+ | 2) [ " | ||
+ | esac | ||
+ | ;; | ||
+ | stop) | ||
+ | [ " | ||
+ | do_stop | ||
+ | case " | ||
+ | 0|1) [ " | ||
+ | 2) [ " | ||
+ | esac | ||
+ | ;; | ||
+ | # | ||
+ | # | ||
+ | # If do_reload() is not implemented then leave this commented out | ||
+ | # and leave ' | ||
+ | # | ||
+ | # | ||
+ | #do_reload | ||
+ | # | ||
+ | #;; | ||
+ | restart|force-reload) | ||
+ | # | ||
+ | # If the " | ||
+ | # ' | ||
+ | # | ||
+ | log_daemon_msg " | ||
+ | do_stop | ||
+ | case " | ||
+ | 0|1) | ||
+ | do_start | ||
+ | case " | ||
+ | 0) log_end_msg 0 ;; | ||
+ | 1) log_end_msg 1 ;; # Old process is still running | ||
+ | *) log_end_msg 1 ;; # Failed to start | ||
+ | esac | ||
+ | ;; | ||
+ | *) | ||
+ | # Failed to stop | ||
+ | log_end_msg 1 | ||
+ | ;; | ||
+ | esac | ||
+ | ;; | ||
+ | *) | ||
+ | #echo " | ||
+ | echo " | ||
+ | exit 3 | ||
+ | ;; | ||
+ | esac | ||
+ | Il faut que ce script demarre *avant* les services Xen (qui va demarrer les DomU), donc: | ||
+ | # update-rc.d myxen-stuff defaults 19 | ||
+ | Et puis tester. | ||
==== PTY allocation request failed on channel 0 ==== | ==== PTY allocation request failed on channel 0 ==== | ||
Ligne 1452: | Ligne 1616: | ||
# xm create gall2.cfg -c | # xm create gall2.cfg -c | ||
+ | |||
+ | ==== network ==== | ||
+ | |||
+ | Ca rame, alors j' | ||
+ | # ip link set dev vif15.0 txqlen 1000 | ||
+ | |||
+ | Avec **'' | ||
+ | |||
+ | # ip link set dev vif15.0 txqlen 32 | ||
+ | |||
+ | **'' | ||
+ | |||
+ | 100 Mbits/s en moins... ce n'est pas rien. | ||
+ | |||
+ | |||
+ | |||
+ | ====== Tips ====== | ||
+ | |||
+ | ===== Dummy ===== | ||
+ | |||
+ | Créer un DomU avec une carte reseau " | ||
+ | |||
+ | Liens: | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | |||
+ | ===== nvidia ===== | ||
+ | |||
+ | C'est possible ? | ||
+ | |||
+ | Lien: http:// | ||
serveur_xen.txt · Dernière modification : 2011/09/22 14:35 de thierry