<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>L&#039;admin sous GNU / Linux - Blog Libre &#187; xen</title> <atom:link href="http://blog.admin-linux.org/tag/xen/feed" rel="self" type="application/rss+xml" /><link>http://blog.admin-linux.org</link> <description>Vous trouverez des howtos, des news, des astuces sur les logiciels libres. Les sujets traités y sont la messagerie (postfix, cyrus...), les systèmes (ubuntu, debian, gentoo...), la supervision (nagios, zabbix, centreon...), les base des données (mysql, postgresql), le web (apache et autres...) et tout le reste</description> <lastBuildDate>Thu, 26 Jan 2012 13:31:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Howto install Xen 3.3.2 Debian Lenny 5.0</title><link>http://blog.admin-linux.org/virtualisation/howto-install-xen-3-3-2-debian-lenny-5-0</link> <comments>http://blog.admin-linux.org/virtualisation/howto-install-xen-3-3-2-debian-lenny-5-0#comments</comments> <pubDate>Thu, 20 May 2010 13:17:45 +0000</pubDate> <dc:creator>rdefaux</dc:creator> <category><![CDATA[Virtualisation]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[Planet-Libre]]></category> <category><![CDATA[xen]]></category><guid isPermaLink="false">http://blog.admin-linux.org/?p=1996</guid> <description><![CDATA[Note en passant : Salut à tous, j&#8217;ai pas posté depuis longtemps sur ce site parce que j&#8217;étais parti pendant un an en voyage. Me revoilà (tadaaa !), premier article...]]></description> <content:encoded><![CDATA[<p style="text-align: center;"><a href="http://blog.admin-linux.org/wp-content/uploads/2010/05/debian_xen_virtualisation.png"><img class="aligncenter size-full wp-image-1997" title="debian_xen_virtualisation" src="http://blog.admin-linux.org/wp-content/uploads/2010/05/debian_xen_virtualisation.png" alt="debian xen virtualisation Howto install Xen 3.3.2 Debian Lenny 5.0"  /></a></p><p>Note en passant : Salut à tous, j&#8217;ai pas posté depuis longtemps sur ce site parce que j&#8217;étais parti pendant un an en voyage. Me revoilà  (tadaaa !), premier article le jour de mon anniversaire <img src='http://blog.admin-linux.org/wp-includes/images/smilies/icon_biggrin.gif' alt="icon biggrin Howto install Xen 3.3.2 Debian Lenny 5.0" class='wp-smiley' title="Howto install Xen 3.3.2 Debian Lenny 5.0" /> Enjoy !</p><p>J&#8217;ai décidé d&#8217;écrire ce howto parce que j&#8217;ai rencontré des problèmes  à l&#8217;installation de <a title="Xen" href="http://blog.admin-linux.org/tag/xen" target="_blank">Xen</a> 3.3.2 avec les modules du noyau compilé  &laquo;&nbsp;manuellement&nbsp;&raquo; sur une <a title="debian" href="http://blog.admin-linux.org/tag/debian" target="_blank">debian</a> 5.0 , et il y a deux-trois petites astuces à connaitre aussi,  et aussi que j&#8217;en ai pas trouvé en français (j&#8217;avoue que j&#8217;ai pas été  plus loin que le 2 premières pages de résultat google&#8230;).<br /> Et pourquoi se casser la tête à compiler un xen me direz-vous ? Et bien  tout simplement à cause d&#8217;un ou deux bugs gênant pour moi <img src='http://blog.admin-linux.org/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Howto install Xen 3.3.2 Debian Lenny 5.0" class='wp-smiley' title="Howto install Xen 3.3.2 Debian Lenny 5.0" /> Vous les  découvrirez en lisant ce HOWTO.</p><p>Sur une installation fraiche de  debian lenny :</p><p>Installation du xen normal :</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libc6-xen  libxenstore3.0 linux-headers-<span style="color: #000000;">2.6</span>-xen-<span style="color: #000000;">686</span> linux-headers-2.6.26-<span style="color: #000000;">2</span>-common-xen  linux-headers-2.6.26-<span style="color: #000000;">2</span>-xen-<span style="color: #000000;">686</span> linux-image-<span style="color: #000000;">2.6</span>-xen-<span style="color: #000000;">686</span>  linux-image-2.6.26-<span style="color: #000000;">2</span>-xen-<span style="color: #000000;">686</span> linux-modules-<span style="color: #000000;">2.6</span>-xen-<span style="color: #000000;">686</span>   linux-modules-2.6.26-<span style="color: #000000;">2</span>-xen-<span style="color: #000000;">686</span> xen-hypervisor-<span style="color: #000000;">3.2</span>-<span style="color: #000000;">1</span>-i386 xen-shell  xen-tools  xen-utils-<span style="color: #000000;">3.2</span>-<span style="color: #000000;">1</span> xen-utils-common xenstore-utils</pre></div></div><div id=":tg">Ici, il faut configurer le réseau, donc mettre dans la config  les lignes suivantes (config minimum sans les commentaires ) :</div><div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span>  <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</pre></div></div></div><div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>xend-relocation-server <span style="color: #c20cb9; font-weight: bold;">yes</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>xend-relocation-hosts-allow  <span style="color: #ff0000;">'^localhost$ ^localhost\\.localdomain$'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>network-script <span style="color: #ff0000;">'network-bridge bridge=xenbr0 netdev=eth0'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>vif-script  vif-bridge<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>dom0-min-mem <span style="color: #000000;">196</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>enable-dom0-ballooning <span style="color: #c20cb9; font-weight: bold;">yes</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>dom0-cpus  <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>vncpasswd <span style="color: #ff0000;">''</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div><p>Ici il est très important de  laisser dom0-cpus à 1, sinon le dom0 plantera au bout d&#8217;un certains  temps. Mais cependant, de mettre le dom0 à 1 empêche le reboot des  machines virtuelles. On est obligé de les tuer, ce qui n&#8217;est pas très  propre. Un autre problème, c&#8217;est quand des utilisateurs sont admin de  leur machine virtuelle, et qu&#8217;ils veulent faire un reboot, ça nous  oblige à intervenir.</p><p>On configure l&#8217;interface réseau (à adapter selon le réseau) :</p></div><div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span>  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces</pre></div></div></div><div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">auto eth0
iface eth0 inet  static
address 192.168.0.15
netmask    255.255.255.0
network    192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.63
dns-nameservers 192.168.0.2 192.168.0.3
&nbsp;
auto xenbr0
iface  xenbr0 inet static
address 192.168.0.15
netmask  255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.63
dns-nameservers 192.168.0.2 192.168.0.3
bridge_ports eth0
bridge_maxwait <span style="color: #000000;">0</span>
bridge_hello <span style="color: #000000;">0</span>
bridge_fr <span style="color: #000000;">0</span></pre></div></div><p>Ici on peut faire un reboot pour déjà valider que le dom0  fonctionne bien.</p><p>Puis on install la dernière version de xen en  compilant :</p><p>On installe les paquets essentiels à la compilation :</p></div><div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span>  <span style="color: #c20cb9; font-weight: bold;">install</span> bcc bin86 <span style="color: #c20cb9; font-weight: bold;">gawk</span> bridge-utils iproute libcurl3  libcurl4-openssl-dev <span style="color: #c20cb9; font-weight: bold;">bzip2</span> module-init-tools transfig tgif texinfo  pciutils-dev mercurial build-essential <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> libc6-dev zlib1g-dev  python python-dev python-twisted libncurses5-dev <span style="color: #c20cb9; font-weight: bold;">patch</span> libvncserver-dev  libsdl-dev libjpeg62-dev</pre></div></div><p>On télécharge, on compile et on installe la source :</p></div><div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span>  <span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://bits.xensource.com/oss-xen/release/3.3.2/xen-3.3.2.tar.gz&quot;</span> <span style="color: #007800;">target</span>=<span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>bits.xensource.com<span style="color: #000000; font-weight: bold;">/</span>oss-xen<span style="color: #000000; font-weight: bold;">/</span>release<span style="color: #000000; font-weight: bold;">/</span>3.3.2<span style="color: #000000; font-weight: bold;">/</span>xen-3.3.2.tar.gz<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> xen-3.3.2.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> xen-3.3.2
<span style="color: #c20cb9; font-weight: bold;">make</span> world <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">make</span>  dist
<span style="color: #7a0874; font-weight: bold;">&#40;</span>answer the few questions <span style="color: #000000; font-weight: bold;">then</span> take a coffee, or a rest :<span style="color: #7a0874; font-weight: bold;">&#41;</span>...<span style="color: #7a0874; font-weight: bold;">&#41;</span>
.<span style="color: #000000; font-weight: bold;">/</span>install.sh</pre></div></div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">update-rc.d xend defaults <span style="color: #000000;">20</span> <span style="color: #000000;">21</span>
update-rc.d xendomains defaults <span style="color: #000000;">21</span>  <span style="color: #000000;">20</span></pre></div></div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">depmod</span> 2.6.18.8-xen
update-initramfs <span style="color: #660033;">-c</span> <span style="color: #660033;">-k</span> 2.6.18.8-xen
update-grub</pre></div></div><p>On  reconfigure xen :</p></div><div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <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</pre></div></div><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>network-script <span style="color: #ff0000;">'network-bridge bridge=xenbr0 netdev=eth0'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>vif-script  vif-bridge<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>dom0-cpus <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div><p>Ca y est on peut mettre  dom0-cpu à 0, cool !</p><p>Et là l&#8217;astuce, c&#8217;est de modifier  menu.lst de GRUB pour utiliser les modules de la version officielle  (installée avant la version compilée) avec le nouveau noyau xen :</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">title        Xen 3.3.2 <span style="color: #000000; font-weight: bold;">/</span> Debian GNU<span style="color: #000000; font-weight: bold;">/</span>Linux, kernel 2.6.18.8-xen
root         <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel        <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>xen-3.3.2.gz
module           <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz-2.6.26-<span style="color: #000000;">2</span>-xen-<span style="color: #000000;">686</span> <span style="color: #007800;">root</span>=<span style="color: #007800;">UUID</span>=fe72ca30-05cf-4baf-9e0f-41749cf4011a  ro <span style="color: #007800;">console</span>=tty0
module          <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>initrd.img-2.6.26-<span style="color: #000000;">2</span>-xen-<span style="color: #000000;">686</span>
au lieu de
<span style="color: #666666; font-style: italic;">#module         /boot/vmlinuz-2.6.18.8-xen root=UUID=fe72ca30-05cf-4baf-9e0f-41749cf4011a  ro console=tty0</span>
<span style="color: #666666; font-style: italic;">#module        /boot/initrd.img-2.6.18.8-xen</span></pre></div></div><p>Reboot and enjoy !</p><p>Cheers</p><p>Inspirations  et sources :<br /> - <a href="http://www.xen-support.com/?p=211" target="_blank">http://www.xen-support.com/?p=211</a></p></div> ]]></content:encoded> <wfw:commentRss>http://blog.admin-linux.org/virtualisation/howto-install-xen-3-3-2-debian-lenny-5-0/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Logiciels Libres &#8211; PHP, Bind, Dspam&#8230; &#8211; Sortie de la semaine 27</title><link>http://blog.admin-linux.org/logiciels-libres/logiciels-libres-php-bind-dspam-sortie-de-la-semaine-27</link> <comments>http://blog.admin-linux.org/logiciels-libres/logiciels-libres-php-bind-dspam-sortie-de-la-semaine-27#comments</comments> <pubDate>Wed, 01 Jul 2009 11:13:00 +0000</pubDate> <dc:creator>Pierre-Yves Dubreucq</dc:creator> <category><![CDATA[Logiciels Libres]]></category> <category><![CDATA[centreon]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[php]]></category> <category><![CDATA[Planet-Libre]]></category> <category><![CDATA[spam]]></category> <category><![CDATA[xen]]></category><guid isPermaLink="false">http://blog.admin-linux.org/non-classe/logiciels-libres-php-bind-dspam-sortie-de-la-semaine-27</guid> <description><![CDATA[Cette troisième édition des sorties de logiciels libres hebdomadaire est assez riche. Bien sur tous le monde a entendu parler de la sortie de Firefox 3.5 et VirtualBox 3.0 Voici...]]></description> <content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://localhost/wordpress/wp-content/uploads/2009/07/logiciels_libre_27.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5353468505493466258" class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 188px;" src="http://blog.admin-linux.org/wp-content/uploads/HLIC/4.bp.blogspot.com/_XySgBVSDH1I/SktXPeot7JI/AAAAAAAAASE/8iDq1YkFWpE/s400/logiciels_libre_27.jpg" border="0" alt="logiciels libre 27 Logiciels Libres   PHP, Bind, Dspam...   Sortie de la semaine 27" width="400" height="188" title="Logiciels Libres   PHP, Bind, Dspam...   Sortie de la semaine 27" /></a><br /> Cette troisième édition des sorties de logiciels libres hebdomadaire est assez riche.<br /> Bien sur tous le monde a entendu parler de la sortie de <a href="http://blog.admin-linux.org/logiciels-libres/firefox-nouvelle-version-3-5-vient-de-sortir" target="_blank">Firefox 3.5</a> et <a href="http://blog.admin-linux.org/virtualisation/virtualisation-virtualbox-3-0-version-majeure" target="_blank">VirtualBox 3.0</a></p><p style="text-align: justify;">Voici la liste des sorties de logiciels libres qui m&#8217;ont interpellées :</p><p style="text-align: justify;"><span style="font-weight:bold;">PHP</span> sort une nouvelle version majeure qui est la 5.3. Elle apporte bien sur son lot de nouveauté, mais corrige également un certain nombre de bugs.<br /> Pour plus d&#8217;information sur les nouveautés vous pouvez aller sur <a href="http://www.nexen.net/actualites/php/19155-php_5.3_disponible.php" target="_blank">Nexen.net</a> ou <a href="http://www.phpindex.com/index.php/2008/02/13/4199-quoi-de-neuf-dans-php-53" target="_blank">phpindex.net</a><br /> <a href="http://www.php.net/archive/2009.php#id2009-06-30-1" target="_blank">Communiqué officiel de PHP</a></p><p style="text-align: justify;">Le serveur DNS <span style="font-weight:bold;">Bind</span> (Berkeley Internet Name Domain) vient de sortir la version 9.6.1 qui corrige des bugs, des améliorations de la sécurité. C&#8217;est principalement une version de maintenance.<br /> <a href="https://www.isc.org/software/bind" target="_blank">Site Officiel de Bind</a></p><p style="text-align: justify;">La solution antispam <span style="font-weight:bold;">Dspam</span> vient de sortir la version 3.9.0.<br /> Cette version apporte plus de stabilité par rapport à la version précédente. Le processus de décodage des caractères, l&#8217;analyse des mail HTML, la gestion de la mémoire, le moteur de stockage ont été améliorés.<br /> <a href="http://dspam.sourceforge.net/" target="_blank">Site Officiel de DSPAM</a></p><p style="text-align: justify;"><span style="font-weight:bold;">Convirt</span>, qui est une interface graphique de gestion de serveurs virtuel Xen et KVM vient de sortir une nouvelle version, la 1.1. Je ne connaissais pas ce produit, et ça me semble vraiment très pro !<br /> Voici ces principales nouveautés :<br /> - Virtual Network Management :<br /> Support la création de réseaux isolés et basé sur NAT sur les hôtes gérés. Chaque réseau virtuel peut avoir sa propre plage d&#8217;adresse IP avec attribution DHCP automatique pour chaque VM attachée.<br /> - Automatisation en utilisant CLI (ConVirt Command Line) Les scripteurs vont aimer <img src='http://blog.admin-linux.org/wp-includes/images/smilies/icon_wink.gif' alt="icon wink Logiciels Libres   PHP, Bind, Dspam...   Sortie de la semaine 27" class='wp-smiley' title="Logiciels Libres   PHP, Bind, Dspam...   Sortie de la semaine 27" /><br /> Cette version inclue une première version de CLI qui devrait sortir prochainement.<br /> Pour les passionnés de la ligne de commande et des scripts, je vous laisser imaginer les possibilité que ça va apporter&#8230;<br /> - Possibilité d&#8217;ajout de disque sur une VM Xen en fonctionnement<br /> - De nouvelles distributions ont été certifiés pour fonctionner avec Convirt, notamment RHEL 5.3 et Ubuntu 9.04<br /> <a href="http://www.convirture.com/blog/2009/announcements/convirt-11-is-now-available/" target="_blank">Annonce officielle de cette nouvelle version</a><br /> <a href="http://www.convirture.com/products.html" target="_blank">Site Officiel de Convirt</a></p><p style="text-align: justify;"><span style="font-weight:bold;">Centreon</span>, solution de supervision dont je parle souvent a sortie la 2.1 RC5, peut-être la dernière RC ? La RC4 devant être la dernière&#8230; Mais comme je l&#8217;ai déjà dit, mieux vaut une communauté qui retarde la sortie d&#8217;un produit c&#8217;est nu gage de qualité <img src='http://blog.admin-linux.org/wp-includes/images/smilies/icon_wink.gif' alt="icon wink Logiciels Libres   PHP, Bind, Dspam...   Sortie de la semaine 27" class='wp-smiley' title="Logiciels Libres   PHP, Bind, Dspam...   Sortie de la semaine 27" /><br /> <a href="http://www.centreon.com/News/centreon-21-rc5-released.html" target="_blank">Annonce de la RC5</a><br /> <a href="http://www.centreon.com/" target="_blank">Site Officiel</a></p><p style="text-align: justify;">Voila pour cette semaine, bonne mise à jour ou bon tests <img src='http://blog.admin-linux.org/wp-includes/images/smilies/icon_wink.gif' alt="icon wink Logiciels Libres   PHP, Bind, Dspam...   Sortie de la semaine 27" class='wp-smiley' title="Logiciels Libres   PHP, Bind, Dspam...   Sortie de la semaine 27" /></p> ]]></content:encoded> <wfw:commentRss>http://blog.admin-linux.org/logiciels-libres/logiciels-libres-php-bind-dspam-sortie-de-la-semaine-27/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>HOWTO XEN : création d&#039;un DomU (gentoo)</title><link>http://blog.admin-linux.org/howto/howto-xen-creation-dun-domu-gentoo</link> <comments>http://blog.admin-linux.org/howto/howto-xen-creation-dun-domu-gentoo#comments</comments> <pubDate>Mon, 24 Nov 2008 17:22:00 +0000</pubDate> <dc:creator>rdefaux</dc:creator> <category><![CDATA[Howto]]></category> <category><![CDATA[Virtualisation]]></category> <category><![CDATA[domu]]></category> <category><![CDATA[gentoo]]></category> <category><![CDATA[Planet-Libre]]></category> <category><![CDATA[xen]]></category><guid isPermaLink="false">http://blog.admin-linux.org/non-classe/howto-xen-creation-dun-domu-gentoo/</guid> <description><![CDATA[Cet article résume rapidement la liste des commandes et les points importants pour créer un DomU Gentoo. Vous devez avoir un Dom0 fonctionnel. #Récupérer le dernier stage 3 et les...]]></description> <content:encoded><![CDATA[<p>Cet article résume rapidement la liste des commandes et les points importants pour créer un DomU Gentoo.</p><p>Vous devez avoir un Dom0 fonctionnel.</p><p>#Récupérer le dernier stage 3 et les autres archives requises<br /> <span style="font-style: italic;">cd /usr/src</span><br /> <span style="font-style: italic;">wget ftp://ftp.free.fr/mirrors/ftp.gentoo.org/releases/x86/current/stages/stage3-x86-2008.0.tar.bz2</span><span style="font-style: italic;"><br /> wget ftp://ftp.free.fr/mirrors/ftp.gentoo.org/snapshots/portage-latest.tar.bz2</span><span style="font-style: italic;"><br /> wget http://s3.amazonaws.com/ec2-downloads/linux-2.6.16-ec2.tgz</span></p><p>#Créer les répertoires et les images des disques<br /> <span style="font-style: italic;">cd /xen/domains/</span><span style="font-style: italic;"><br /> mkdir test2.example.com</span><span style="font-style: italic;"><br /> cd test2.example.com/</span><br /> #Le disque virtuel<span style="font-style: italic;"><br /> dd if=/dev/zero of=/xen/domains/test2.example.com/disk.img bs=1M seek=4095 count=1</span><span style="font-style: italic;"><br /> mke2fs -j -O dir_index /xen/domains/test2.example.com/disk.img</span><br /> #La swap<span style="font-style: italic;"><br /> dd if=/dev/zero of=/xen/domains/test2.example.com/swap.img bs=1M seek=1024 count=1</span><span style="font-style: italic;"><br /> mkswap /xen/domains/test2.example.com/swap.img</span></p><p>#Monter le disque en loopback pour pouvoir faire l&#8217;installation de la gentoo en <span style="font-style: italic;">stage 3</span><span style="font-style: italic;"><br /> mkdir /mnt/test2</span><span style="font-style: italic;"><br /> mount -o loop /xen/domains/test2.example.com/disk.img /mnt/test2</span><span style="font-style: italic;"><br /> cd /mnt/test2/</span><span style="font-style: italic;"><br /> tar -jxpf /usr/src/stage3-x86-2008.0.tar.bz2</span><span style="font-style: italic;"><br /> cd usr</span><span style="font-style: italic;"><br /> tar -jxpf /usr/src/portage-latest.tar.bz2</span><span style="font-style: italic;"><br /> mount -o bind /dev /mnt/test2/dev</span><span style="font-style: italic;"><br /> mount -t proc none /mnt/test2/proc</span><span style="font-style: italic;"><br /> cp /etc/resolv.conf /mnt/test2/etc/.</span></p><p>#Se chrooter et installer le serveur virtuel<span style="font-style: italic;"><br /> chroot /mnt/test2 /bin/bash</span><span style="font-style: italic;"><br /> emerge-webrsync</span><span style="font-style: italic;"><br /> emerge portage</span><span style="font-style: italic;"><br /> cat &gt; /etc/fstab </span><br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br /> /dev/sda1               /               ext3            noatime         0 1<br /> /dev/sda2               none            swap            sw              0 0<br /> /dev/cdrom              /mnt/cdrom      audo            noauto,ro       0 0<br /> shm                     /dev/shm        tmpfs           nodev,nosuid,noexec    0 0<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br /> <span style="font-style: italic;"><br /> nano /etc/conf.d/hostname</span><span style="font-style: italic;"><br /> nano /etc/conf.d/keymaps</span><br /> <span style="font-style: italic;"><br /> cat &gt; nano /etc/conf.d/net</span><br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br /> config_eth0=( &laquo;&nbsp;192.168.X.X&nbsp;&raquo; )<br /> routes_eth0=( &laquo;&nbsp;default via 192.168.X.X&nbsp;&raquo; )<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>#Installes ce que tu veux (vim, &#8230;), puis<span style="font-style: italic;"><br /> exit</span></p><p>#On est de retour sur le Dom0<span style="font-style: italic;"><br /> cd /usr/src/</span><span style="font-style: italic;"><br /> tar -zxf linux-2.6.16-ec2.tgz</span><span style="font-style: italic;"><br /> cd linux-2.6.16-xenU/</span><span style="font-style: italic;"><br /> cp vmlinuz /boot/vmlinuz-2.6.16-ec2</span></p><p>#Créer le fichier de configuration du DomU test2.example.com<span style="font-style: italic;"><br /> cat &gt; /etc/xen/test2.example.com.cfg</span><br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br /> kernel      = &#8216;/boot/vmlinuz-2.6.16-ec2&#8242;<br /> memory  = &#8217;2000&#8242;<br /> root    = &#8216;/dev/sda1 ro&#8217;<br /> disk    = [ 'file:/xen/domains/test2.example.com/disk.img,sda1,w', 'file:/xen/domains/test2.example.com/swap.img,sda2,w' ]<br /> name    = &#8216;test2.example.com&#8217;<br /> vif  = [ 'mac=00:16:3e:5c:01:56, ip=192.168.X.X' ]<br /> on_poweroff = &#8216;destroy&#8217;<br /> on_reboot   = &#8216;restart&#8217;<br /> on_crash    = &#8216;restart&#8217;<br /> vcpus = 4<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>#Démarrer l&#8217;instance et s&#8217;y logguer :<span style="font-style: italic;"><br /> xm create test2.example.com.cfg</span><span style="font-style: italic;"><br /> xm console test2.example.com</span></p><p>#Attention, important !!!<br /> #Il faut ajouter le flag<br /> #<span style="font-weight: bold;">CFLAGS dans /etc/make.conf (-mno-tls-direct-seg-refs )</span><br /> #puis recompiler le système entier avec ce flag</p><p>#ATTENTION : pour les serveurs virtuels, <span style="font-weight: bold;">il faut fixer une adresse MAC</span>, #sinon, comme dans le cas des Gentoo, comme<br /> #l&#8217;adresse MAC est regénérée à chaque redémarrage, le nom de l&#8217;interface #change et n&#8217;est plus en harmonie avec son fichier<br /> #de conf (et c&#8217;est comme si l&#8217;instance virtuelle n&#8217;avait plus d&#8217;interface réseau)</p> ]]></content:encoded> <wfw:commentRss>http://blog.admin-linux.org/howto/howto-xen-creation-dun-domu-gentoo/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>HOWTO XEN : redimensionnement du disque d&#039;un DomU</title><link>http://blog.admin-linux.org/howto/howto-xen-redimensionnement-du-disque-dun-domu</link> <comments>http://blog.admin-linux.org/howto/howto-xen-redimensionnement-du-disque-dun-domu#comments</comments> <pubDate>Mon, 24 Nov 2008 17:09:00 +0000</pubDate> <dc:creator>rdefaux</dc:creator> <category><![CDATA[Howto]]></category> <category><![CDATA[Virtualisation]]></category> <category><![CDATA[domu]]></category> <category><![CDATA[gentoo]]></category> <category><![CDATA[Planet-Libre]]></category> <category><![CDATA[xen]]></category><guid isPermaLink="false">http://blog.admin-linux.org/non-classe/howto-xen-redimensionnement-du-disque-dun-domu/</guid> <description><![CDATA[Cet article résume rapidement la liste des commandes et les points importants pour redimensionner un DomU utilisant des fichiers comme disque. Vous devez avoir un DomU fonctionnel avant de pouvoir...]]></description> <content:encoded><![CDATA[<p>Cet article résume rapidement la liste des commandes et les points importants pour redimensionner un DomU utilisant des fichiers comme disque.</p><p>Vous devez avoir un DomU fonctionnel avant de pouvoir le redimensionner (lol)</p><p>#Créer un fichier temporaire pour augmenter la taille (ici 1Gio)<br /> dd if=/dev/zero of=/tmp/temps_expand bs=1024k count=1000</p><p>#Stopper votre machine virtuelle<br /> xm shutdown <span style="font-style: italic;">test.example.com</span></p><p>#Sauvegarder votre image (on ne sait jamais)<br /> cp -a /xen/domains/test.example.com/disk.img /xen/domains/test.example.com/disk.img</p><p>#Ajouter le ficher disque temporaire au fichier disque du serveur virtuel.<br /> cat /tmp/temps_expand &gt;&gt; /xen/domains/test.example.com/disk.img<br /> #Pour l&#8217;agrandir de 10 Gio d&#8217;un coup, on peut par exemple faire<br /> for i in $(seq 1 10); do echo &laquo;&nbsp;$i&nbsp;&raquo;; cat /tmp/temps_expand &gt;&gt; /xen/domains/test.example.com/disk.img; done</p><p>#Prendre en compte le changement de taille.<br /> resize2fs -f /xen/domains/test.example.com/disk.img</p><p>#Redémarrer le serveur virtuel<br /> xm create test.example.com.cfg</p> ]]></content:encoded> <wfw:commentRss>http://blog.admin-linux.org/howto/howto-xen-redimensionnement-du-disque-dun-domu/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>HOWTO XEN : création d&#039;un DomU (debian etch)</title><link>http://blog.admin-linux.org/howto/howto-xen-creation-dun-domu-debian-etch</link> <comments>http://blog.admin-linux.org/howto/howto-xen-creation-dun-domu-debian-etch#comments</comments> <pubDate>Mon, 24 Nov 2008 16:57:00 +0000</pubDate> <dc:creator>rdefaux</dc:creator> <category><![CDATA[Howto]]></category> <category><![CDATA[Virtualisation]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[domu]]></category> <category><![CDATA[Planet-Libre]]></category> <category><![CDATA[xen]]></category><guid isPermaLink="false">http://blog.admin-linux.org/non-classe/howto-xen-creation-dun-domu-debian-etch/</guid> <description><![CDATA[Cet article résume rapidement la liste des commandes et les points importants pour créer un DomU Debian etch. Vous devez avoir un Dom0 fonctionnel proposant xen-tools avant de pouvoir créer...]]></description> <content:encoded><![CDATA[<p>Cet article résume rapidement la liste des commandes et les points importants pour créer un DomU Debian etch.</p><p>Vous devez avoir un Dom0 fonctionnel proposant xen-tools avant de pouvoir créer votre DomU.</p><p>Création du DomU à l&#8217;aide de xen-tools.</p><p>#Configurer xen-tools (pour la création des images) :<br /> <span style="font-style: italic;">vi /etc/xen-tools/xen-tools.conf </span><br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br /> dir = /xen<br /> debootstrap = 1<br /> size   = 4Gb      # Disk image size.<br /> memory = 128Mb    # Memory size<br /> swap   = 128Mb    # Swap size<br /> fs     = ext3     # use the EXT3 filesystem for the disk image.<br /> dist   = sarge    # Default distribution to install.<br /> image  = sparse   # Specify sparse vs. full disk images.<br /> gateway   = 192.168.X.X<br /> netmask   = 255.255.255.0<br /> kernel = /boot/vmlinuz-2.6.18-6-xen-vserver-686<br /> initrd = /boot/initrd.img-2.6.18-6-xen-vserver-686<br /> mirror = http://ftp.us.debian.org/debian/<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>#Créer le répertoire qui acceuillera les images :<br /> <span style="font-style: italic;">mkdir /xen</span></p><p>#Créer une image :<br /> <span style="font-style: italic;">xen-create-image &#8211;ip=192.168.X.X &#8211;hostname=test.example.com</span></p><p>#La lancer :<br /> <span style="font-style: italic;">xm create test.example.com.cfg </span></p><p>#Vérifier qu&#8217;elle est bien lancée :<br /> <span style="font-style: italic;">xm list </span></p><p>#Pour y accéder en console :<br /> <span style="font-style: italic;">xm console test.example.com</span></p> ]]></content:encoded> <wfw:commentRss>http://blog.admin-linux.org/howto/howto-xen-creation-dun-domu-debian-etch/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>HOWTO XEN : installation du Dom0 (debian etch)</title><link>http://blog.admin-linux.org/howto/howto-xen-installation-du-dom0-debian-etch</link> <comments>http://blog.admin-linux.org/howto/howto-xen-installation-du-dom0-debian-etch#comments</comments> <pubDate>Mon, 24 Nov 2008 16:40:00 +0000</pubDate> <dc:creator>rdefaux</dc:creator> <category><![CDATA[Howto]]></category> <category><![CDATA[Virtualisation]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[domu]]></category> <category><![CDATA[Planet-Libre]]></category> <category><![CDATA[xen]]></category><guid isPermaLink="false">http://blog.admin-linux.org/non-classe/howto-xen-installation-du-dom0-debian-etch/</guid> <description><![CDATA[Cet article résume rapidement la liste des commandes et les points importants pour installer le Dom0 de Xen sur une base debian etch. Installer debian etch. Une fois votre debian...]]></description> <content:encoded><![CDATA[<p style="text-align: justify;">Cet article résume rapidement la liste des commandes et les points importants pour installer le Dom0 de Xen sur une base debian etch.</p><p style="text-align: justify;">Installer debian etch. Une fois votre debian fonctionnelle :</p><p style="text-align: justify;">#mise à jour<br /> <span style="font-style: italic;">apt-get update</span><br /> <span style="font-style: italic;">apt-get upgrade</span></p><p style="text-align: justify;">#installation de xen (ou paquets équivalents)<br /> <span style="font-style: italic;">apt-get install linux-image-2.6-xen-vserver-686 xen-hypervisor-3.0.3-1-i386-pae xen-tools xen-linux-system-2.6.18-4-xen-vserver-686 linux-headers-2.6-xen-vserver-686 libc6-xen  bridge-utils</span></p><p style="text-align: justify;">#Si votre processeur supporte la virtualisation installer :<br /> <span style="font-style: italic;">apt-get install xen-ioemu-3.0.3-1</span><br /> #Pour le savoir :<br /> <span style="font-style: italic;">egrep &#8216;^flags.*(vmx|svm)&#8217; /proc/cpuinfo</span><br /> #Si ca écrit quelque chose c&#8217;est bon <img src='http://blog.admin-linux.org/wp-includes/images/smilies/icon_smile.gif' alt="icon smile HOWTO XEN : installation du Dom0 (debian etch)" class='wp-smiley' title="HOWTO XEN : installation du Dom0 (debian etch)" /></p><p style="text-align: justify;">#Configurer le nombre de machines virtuelles max (ici 64)<br /> <span style="font-style: italic;">vi /etc/modules</span><br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br /> loop max_loop=64<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p style="text-align: justify;">#Configurer le démon xen :<br /> <span style="font-style: italic;">vi /etc/xen/xend-config.sxp</span><br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br /> (xend-unix-server yes)<br /> (network-script &#8216;network-bridge netdev=eth0&#8242;)<br /> (vif-script vif-bridge)<br /> (dom0-min-mem 196)<br /> (dom0-cpus 0)<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p style="text-align: justify;">#Configurer l&#8217;interface réseau (sinon après le redémarrage de xend le serveur ne sera plus accessible du réseau, à adapter selon votre config) :<br /> <span style="font-style: italic;">vi /etc/network/interfaces </span><br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br /> auto lo<br /> iface lo inet loopback</p><p style="text-align: justify;">auto xenbr0<br /> iface xenbr0 inet static<br /> address 192.168.X.X<br /> netmask 255.255.255.0<br /> network 192.168.X.X<br /> broadcast 192.168.2.255<br /> gateway 192.168.X.X<br /> dns-nameservers 192.168.X.X 192.168.X.X<br /> bridge_ports eth0<br /> bridge_maxwait 0<br /> bridge_hello 0<br /> bridge_fr 0<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p style="text-align: justify;">#Redmérarrer (normalement c&#8217;est bon <img src='http://blog.admin-linux.org/wp-includes/images/smilies/icon_smile.gif' alt="icon smile HOWTO XEN : installation du Dom0 (debian etch)" class='wp-smiley' title="HOWTO XEN : installation du Dom0 (debian etch)" /> )<br /> <span style="font-style: italic;">reboot </span></p><p style="text-align: justify;">#Vérifier après le redémarrage la conf réseau<br /> <span style="font-style: italic;">ifconfig </span><br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br /> eth0      Lien encap:Ethernet  HWaddr 00:1D:09:0E:97:00<br /> adr inet6: fe80::X:X:X Scope:Lien<br /> UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br /> RX packets:40814 errors:0 dropped:0 overruns:0 frame:0<br /> TX packets:12108 errors:0 dropped:0 overruns:0 carrier:0<br /> collisions:0 lg file transmission:1000<br /> RX bytes:20801921 (19.8 MiB)  TX bytes:1744483 (1.6 MiB)<br /> Interruption:16 Mémoire:f4000000-f4011100</p><p style="text-align: justify;">lo        Lien encap:Boucle locale<br /> inet adr:127.0.0.1  Masque:255.0.0.0<br /> adr inet6: ::1/128 Scope:Hôte<br /> UP LOOPBACK RUNNING  MTU:16436  Metric:1<br /> RX packets:11 errors:0 dropped:0 overruns:0 frame:0<br /> TX packets:11 errors:0 dropped:0 overruns:0 carrier:0<br /> collisions:0 lg file transmission:0<br /> RX bytes:842 (842.0 b)  TX bytes:842 (842.0 b)</p><p style="text-align: justify;">xenbr0    Lien encap:Ethernet  HWaddr 00:1D:09:0E:97:00<br /> inet adr:192.168.X.X  Bcast:192.168.X.255  Masque:255.255.255.0<br /> adr inet6: fe80::21d:X:X:X Scope:Lien<br /> UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br /> RX packets:32653 errors:0 dropped:0 overruns:0 frame:0<br /> TX packets:8308 errors:0 dropped:0 overruns:0 carrier:0<br /> collisions:0 lg file transmission:0<br /> RX bytes:10685638 (10.1 MiB)  TX bytes:1403637 (1.3 MiB)<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p style="text-align: justify;">C&#8217;est tout <img src='http://blog.admin-linux.org/wp-includes/images/smilies/icon_smile.gif' alt="icon smile HOWTO XEN : installation du Dom0 (debian etch)" class='wp-smiley' title="HOWTO XEN : installation du Dom0 (debian etch)" /></p> ]]></content:encoded> <wfw:commentRss>http://blog.admin-linux.org/howto/howto-xen-installation-du-dom0-debian-etch/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 1/30 queries in 0.013 seconds using apc
Object Caching 1815/1869 objects using apc

Served from: blog.admin-linux.org @ 2012-02-07 15:24:49 -->
