Lexique Xen
Dénomination a connaître et savoir pour comprendre.
- dom0 = Serveur hébergeur
- domU = Serveur hébergé
Nécessaire
Une installation serveur debian etch minimal, rien d’autre.
Préparation
Si vous avez une installation précédente de Xen sauvegarder la avant tout.
<span style="color: #c20cb9; font-weight: bold;">cp</span> -R <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>xen <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> -R <span style="color: #000000; font-weight: bold;">/</span>boot <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>
Bon maintenant on dé-installe les versions précédente de xen Si vous utiliser une ancienne version de Xen vous pouvez supprimer le logiciel et le noyau sur le dom0 sans soucis semble t’il
dpkg -l <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> -i xen apt-get remove xen-tools etc.
Installation des paquets xen
Installer les paquets suivant :
apt-get <span style="color: #c20cb9; font-weight: bold;">install</span> linux-image<span style="color: #000000;">-2.6</span>-xen<span style="color: #000000;">-686</span> xen-hypervisor<span style="color: #000000;">-3.0</span><span style="color: #000000;">.3</span><span style="color: #000000;">-1</span>-i386-pae xen-tools bridge-utils libc6-xen sysfsutils
Note : L’hypervisor PAE n’est pas nécéssaire car les paquets Debian ne fournissent que des binaires avec support PAE activé. Si vous voulez tester sur votre portable à base de Pentium-M (sans support PAE), vous n’avez plus qu’à installer votre propre noyau, car les paquets Debian ne fonctionneront pas (compilés en mode PAE uniquement ;
- erreurs PAE mode mismatch in Xen (xen=no Dom0=yes)
- Cannot execute a PAE-enabled kernel on a PAE-less CPU.
Utiliser grep pae /proc/cpuinfo pour voir si votre processeur gère PAE. C’est à se demander pourquoi une version de l’hyperviseur en mode non-PAE est disponible
Grub & Reboot
Vérifier /boot/grub/menu.lst pour voir si le kernel xen à bien été pris en compte pour le prochain reboot Après le reboot, vérifier que xen fonctionne et est actif. Pour ceci utilisez les commandes « xm list », « xm top ». Vérifier également le réseau avec la commande « ifconfig« , vous devez trouver deux nouvelles interfaces réseau : peth0 et vif0.0.
Network Bridge
Configurer dom0 correctement pour utiliser un bridge réseau. Pour ceci éditer le fichier /etc/xen/xend-config.sxp et vérifier qu’il présente les instructions suivantes :
vi <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>xend-config.sxp <span style="color: #808080; font-style: italic;">#xend-relocation-server yes</span> <span style="color: #7a0874; font-weight: bold;">(</span>vif-script vif-bridge<span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">(</span>dom0-min-mem <span style="color: #000000;">128</span><span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #808080; font-style: italic;">#(network-script network-dummy)</span> <span style="color: #808080; font-style: italic;">#(xend-relocation-hosts-allow '^localhost$')</span> <span style="color: #7a0874; font-weight: bold;">(</span>network-script network-bridge<span style="color: #7a0874; font-weight: bold;">)</span>
Voila c’est fini
Il vous reste à :
- Créé, configuré et lancer des machines virtuel
- Appliquer quelques astuces
Sorry, the comment form is closed at this time.