2013-01-21 18:38:45 +01:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<!--
|
|
|
|
|
The FreeBSD Documentation Project
|
|
|
|
|
The FreeBSD French Documentation Project
|
|
|
|
|
|
|
|
|
|
$FreeBSD$
|
2007-11-04 20:01:46 +01:00
|
|
|
|
Original revision: 1.13
|
2007-04-14 14:03:15 +02:00
|
|
|
|
-->
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="virtualization">
|
|
|
|
|
<info><title>Virtualisation</title>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<authorgroup>
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<author><personname><firstname>Murray</firstname><surname>Stokely</surname></personname><contrib>Contribution de </contrib></author>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</authorgroup>
|
2013-11-07 16:39:28 +01:00
|
|
|
|
|
|
|
|
|
</info>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
|
2007-04-14 14:03:15 +02:00
|
|
|
|
&trans.a.fonvieille;
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect1 xml:id="virtualization-synopsis">
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<title>Synopsis</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Un logiciel de virtualisation permet l'ex<65>cution
|
|
|
|
|
simultan<61>e de plusieurs syst<73>mes d'exploitation
|
|
|
|
|
sur la m<>me machine. De tels logiciels pour PCs
|
|
|
|
|
impliquent l'utilisation d'un syst<73>me d'exploitation
|
|
|
|
|
h<>te qui ex<65>cute le logiciel de virtualisation et
|
|
|
|
|
qui supporte un certain nombre de syst<73>mes d'exploitation
|
|
|
|
|
invit<69>s.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Apr<EFBFBD>s avoir lu ce chapitre, vous
|
|
|
|
|
conna<6E>trez:</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
|
<listitem>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>La diff<66>rence entre un syst<73>me
|
|
|
|
|
d'exploitation h<>te et un syst<73>me d'exploitation
|
|
|
|
|
invit<69>.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</listitem>
|
|
|
|
|
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<listitem>
|
|
|
|
|
<para>Comment installer &os; sur un ordinateur &apple;
|
|
|
|
|
&macintosh; à base &intel;.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<listitem>
|
|
|
|
|
<para>Comment installer &os; sur &linux; avec
|
|
|
|
|
<application>&xen;</application>.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<para>Comment installer &os; sur µsoft.windows; avec
|
|
|
|
|
<application>Virtual PC</application>.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Comment optimiser un syst<73>me &os; pour obtenir
|
2007-04-14 14:03:15 +02:00
|
|
|
|
les meilleures performances en virtualisation.</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
|
|
<para>Avant de lire ce chapitre, vous devrez</para>
|
|
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
|
<listitem>
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<para>Comprendre les fondements d'&unix; et de &os; (<xref linkend="basics"/>).</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<para>Savoir comment installer &os; (<xref linkend="install"/>).</para></listitem>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Savoir comment configurer votre connexion au
|
2012-08-10 00:39:25 +02:00
|
|
|
|
r<>seau (<xref linkend="advanced-networking"/>).</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Savoir comment installer des logiciels tierce-partie
|
2012-06-24 08:58:25 +02:00
|
|
|
|
(<xref linkend="ports"/>).</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</listitem>
|
|
|
|
|
</itemizedlist>
|
|
|
|
|
</sect1>
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect1 xml:id="virtualization-guest">
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>&os; comme syst<73>me d'exploitation
|
|
|
|
|
invit<69></title>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect2 xml:id="virtualization-guest-parallels">
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<title>Parallels sur &macos;</title>
|
|
|
|
|
|
|
|
|
|
<para><application>Parallels Desktop</application> pour &mac;
|
|
|
|
|
est un logiciel commercial pour les ordinateurs &apple; &mac;
|
|
|
|
|
à base &intel; tournant sous &macos; 10.4.6 our
|
2012-08-10 00:39:25 +02:00
|
|
|
|
versions sup<75>rieures. &os; est totalement
|
|
|
|
|
support<72> en tant que syst<73>me d'exploitation
|
|
|
|
|
invit<69>. Une fois que
|
|
|
|
|
<application>Parallels</application> a <20>t<EFBFBD>
|
|
|
|
|
install<6C> sur &macos; X, l'utilisateur doit configurer
|
|
|
|
|
une machine virtuelle et installer le syst<73>me
|
|
|
|
|
d'exploitation invit<69> qu'il d<>sire.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect3 xml:id="virtualization-guest-parallels-install">
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<title>Installer &os; sur Parallels/&macos; X</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>La premi<6D>re <20>tape pour installer &os;
|
2007-04-14 14:03:15 +02:00
|
|
|
|
sur &macos; X/<application>Parallels</application> est de
|
2012-08-10 00:39:25 +02:00
|
|
|
|
cr<63>er une machine virtuelle pour l'installation de
|
|
|
|
|
&os;. S<>lectionnez
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<guimenuitem>FreeBSD</guimenuitem> comme
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<guimenu>Syst<EFBFBD>me d'exploitation
|
|
|
|
|
invit<69></guimenu> quand on vous le demandera:</para>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd1"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<para>Et
|
2012-08-10 00:39:25 +02:00
|
|
|
|
choisissez une taille de disque dur et de m<>moire
|
2007-04-14 14:03:15 +02:00
|
|
|
|
vive en fonction de l'utilisation que vous projetez pour
|
|
|
|
|
votre &os; virtuel. 4Go de disque et 512Mo de RAM
|
|
|
|
|
conviennent pour la plupart des utilisations de &os; sous
|
2007-04-30 20:15:45 +02:00
|
|
|
|
<application>Parallels</application>:</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd2"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd3"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd4"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd5"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>S<EFBFBD>lectionnez le type de r<>seau et une
|
|
|
|
|
carte r<>seau:</para>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd6"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd7"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<para>Sauvegardez et achevez la configuration:</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd8"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd9"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Une fois votre machine virtuelle cr<63><72>e,
|
2007-04-14 14:03:15 +02:00
|
|
|
|
vous devrez y installer &os;. Le meilleur moyen est
|
|
|
|
|
d'utiliser un CDROM &os; officiel ou une image ISO
|
2012-08-10 00:39:25 +02:00
|
|
|
|
r<>cup<75>r<EFBFBD>e sur un site FTP officiel.
|
|
|
|
|
Quand vous avez l'image ISO ad<61>quate sur votre
|
|
|
|
|
syst<73>me de fichiers &mac; ou un CDROM dans le
|
|
|
|
|
lecteur de CD du &mac;, cliquez sur l'ic<69>ne disque
|
|
|
|
|
situ<74>e dans le coin droit en bas de votre
|
|
|
|
|
fen<65>tre <application>Parallels</application>. Une
|
|
|
|
|
fen<65>tre s'ouvrira pour vous permettre d'associer le
|
2007-04-14 14:03:15 +02:00
|
|
|
|
lecteur de CDROM de votre machine virtuelle avec un
|
2012-08-10 00:39:25 +02:00
|
|
|
|
fichier ISO ou le v<>ritable lecteur de CDROM de
|
2007-04-14 14:03:15 +02:00
|
|
|
|
votre ordinateur.</para>
|
|
|
|
|
|
2007-04-30 20:15:45 +02:00
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd11"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>D<EFBFBD>s que vous avez effectu<74> cette
|
|
|
|
|
association, red<65>marrez votre machine virtuelle &os;
|
|
|
|
|
en cliquant sur l'ic<69>ne de red<65>marrage.
|
|
|
|
|
<application>Parallels</application> red<65>marrera
|
|
|
|
|
avec un BIOS particulier qui v<>rifiera si vous
|
2007-04-14 14:03:15 +02:00
|
|
|
|
disposez d'un CDROM tout comme le ferait un BIOS
|
2007-04-30 20:15:45 +02:00
|
|
|
|
classique.</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd10"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<para>Dans notre cas il trouvera le disque
|
2007-04-14 14:03:15 +02:00
|
|
|
|
d'installation de &os; et lancera une installation normale
|
|
|
|
|
avec <application>sysinstall</application> comme
|
2012-08-10 00:39:25 +02:00
|
|
|
|
d<>crit dans le <xref linkend="install"/>. Vous
|
2007-04-14 14:03:15 +02:00
|
|
|
|
pouvez installer X11 mais ne tentez pas de le configurer
|
2007-04-30 20:15:45 +02:00
|
|
|
|
pour le moment.</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd12"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Quand l'installation est termin<69>e,
|
|
|
|
|
red<65>marrez votre machine virtuelle &os;.</para>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/parallels-freebsd13"/>
|
2007-04-30 20:15:45 +02:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</sect3>
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect3 xml:id="virtualization-guest-parallels-configure">
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<title>Configurer &os; sur &macos; X/Parallels</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Apr<EFBFBD>s avoir install<6C> avec succ<63>s
|
2007-04-14 14:03:15 +02:00
|
|
|
|
&os; sur &macos; X avec
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<application>Parallels</application>,
|
|
|
|
|
il reste plusieurs points à
|
2012-08-10 00:39:25 +02:00
|
|
|
|
configurer pour optimiser le syst<73>me
|
2007-11-04 20:01:46 +01:00
|
|
|
|
virtuel.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
|
|
|
|
<procedure>
|
|
|
|
|
<step>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>Param<EFBFBD>trer les variables du
|
2007-04-14 14:03:15 +02:00
|
|
|
|
chargeur</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>L'<27>tape la plus importante est la
|
|
|
|
|
diminution du param<61>tre
|
|
|
|
|
<option>kern.hz</option> afin de r<>duire
|
2007-04-14 14:03:15 +02:00
|
|
|
|
l'utilisation du CPU de &os; sous l'environnement
|
|
|
|
|
<application>Parallels</application>. Pour cela, il
|
|
|
|
|
faut ajouter la ligne suivante au fichier
|
|
|
|
|
<filename>/boot/loader.conf</filename>:</para>
|
|
|
|
|
|
|
|
|
|
<programlisting>kern.hz=100</programlisting>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Sans ce param<61>trage, un syst<73>me
|
|
|
|
|
d'exploitation invit<69> &os; inactif sous
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<application>Parallels</application> utilisera environ
|
|
|
|
|
15% du CPU sur un &imac; à mono-processeur.
|
2012-08-10 00:39:25 +02:00
|
|
|
|
Apr<70>s ce changement l'utilisation du processeur
|
2007-04-14 14:03:15 +02:00
|
|
|
|
sera plus proche d'un petit 5%.</para>
|
|
|
|
|
</step>
|
|
|
|
|
|
|
|
|
|
<step>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>Cr<EFBFBD>er un nouveau fichier de configuration
|
2007-04-14 14:03:15 +02:00
|
|
|
|
du noyau</title>
|
|
|
|
|
|
|
|
|
|
<para>Vous pouvez retirer tous les pilotes de
|
2012-08-10 00:39:25 +02:00
|
|
|
|
p<>riph<70>riques SCSI, FireWire et USB.
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<application>Parallels</application> fournit une carte
|
2012-08-10 00:39:25 +02:00
|
|
|
|
r<>seau virtuelle utilisant le pilote
|
2007-04-14 14:03:15 +02:00
|
|
|
|
&man.ed.4;, aussi tous les autres pilotes
|
2012-08-10 00:39:25 +02:00
|
|
|
|
r<>seau except<70>s &man.ed.4; et
|
|
|
|
|
&man.miibus.4; peuvent <20>tre retir<69>s du
|
2007-04-14 14:03:15 +02:00
|
|
|
|
noyau.</para>
|
|
|
|
|
</step>
|
|
|
|
|
|
|
|
|
|
<step>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>Configuration du r<>seau</title>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>La configuration r<>seau la plus simple
|
2007-04-14 14:03:15 +02:00
|
|
|
|
utilise DHCP pour connecter votre machine virtuelle
|
2012-08-10 00:39:25 +02:00
|
|
|
|
sur le m<>me r<>seau local que votre
|
|
|
|
|
machine &mac; h<>te. Cette configuration se fait
|
2007-04-14 14:03:15 +02:00
|
|
|
|
en ajoutant la ligne
|
|
|
|
|
<literal>ifconfig_ed0="DHCP"</literal> au fichier
|
|
|
|
|
<filename>/etc/rc.conf</filename>. Des configurations
|
2012-08-10 00:39:25 +02:00
|
|
|
|
r<>seau plus avanc<6E>es sont
|
2013-11-07 16:39:28 +01:00
|
|
|
|
d<>crites dans le <xref linkend="advanced-networking"/>.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</step>
|
|
|
|
|
</procedure>
|
|
|
|
|
</sect3>
|
|
|
|
|
</sect2>
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect2 xml:id="virtualization-guest-xen">
|
|
|
|
|
<info><title>&os; avec &xen; sur Linux</title>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<authorgroup>
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<author><personname><firstname>Fukang</firstname><surname>Chen (Loader)</surname></personname><contrib>Contribution de </contrib></author>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</authorgroup>
|
2013-11-07 16:39:28 +01:00
|
|
|
|
|
|
|
|
|
</info>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
|
|
|
|
<para>L'hyperviseur <application>&xen;</application> est un
|
|
|
|
|
logiciel libre de para-virtualisation qui est
|
2012-08-10 00:39:25 +02:00
|
|
|
|
support<72> par l'entreprise commerciale XenSource. Les
|
|
|
|
|
syst<73>mes d'exploitation invit<69>s sont
|
|
|
|
|
appel<65>s domaines domU, et le syst<73>me
|
|
|
|
|
d'exploitation h<>te est appel<65> dom0. La
|
|
|
|
|
premi<6D>re <20>tape pour faire tourner un &os;
|
2007-04-14 14:03:15 +02:00
|
|
|
|
virtuel sous &linux; est d'installer
|
|
|
|
|
<application>&xen;</application> pour le domaine dom0
|
2012-08-10 00:39:25 +02:00
|
|
|
|
&linux;. Le syst<73>me d'exploitation h<>te sera
|
2007-04-14 14:03:15 +02:00
|
|
|
|
une distribution &linux; Slackware.</para>
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect3 xml:id="xen-slackware-dom0">
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<title>Configuration de &xen; 3 sur un dom0 &linux;</title>
|
|
|
|
|
|
|
|
|
|
<procedure>
|
|
|
|
|
<step>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>T<EFBFBD>l<EFBFBD>charger &xen; 3.0 aupr<70>s
|
2007-04-14 14:03:15 +02:00
|
|
|
|
de XenSource</title>
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<para>R<EFBFBD>cup<EFBFBD>rez l'archive <link xlink:href="http://bits.xensource.com/oss-xen/release/3.0.4-1/src.tgz/xen-3.0.4_1-src.tgz">xen-3.0.4_1-src.tgz</link>
|
|
|
|
|
aupr<70>s de <uri xlink:href="http://www.xensource.com/">http://www.xensource.com/</uri>.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</step>
|
|
|
|
|
|
|
|
|
|
<step>
|
|
|
|
|
<title>Extraire l'archive</title>
|
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>cd xen-3.0.4_1-src</userinput>
|
|
|
|
|
&prompt.root; <userinput>KERNELS="linux-2.6-xen0 linux-2.6-xenU" make world</userinput>
|
|
|
|
|
&prompt.root; <userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
|
|
<note>
|
|
|
|
|
<para>Pour recompiler le noyau pour le domaine
|
|
|
|
|
dom0:</para>
|
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>cd xen-3.0.4_1-src/linux-2.6.16.33-xen0</userinput>
|
|
|
|
|
&prompt.root; <userinput>make menuconfig</userinput>
|
|
|
|
|
&prompt.root; <userinput>make</userinput>
|
|
|
|
|
&prompt.root; <userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
|
|
<para>D'anciennes versions de
|
|
|
|
|
<application>&xen;</application> peuvent
|
2012-08-10 00:39:25 +02:00
|
|
|
|
n<>cessiter l'utilisation de la commande
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<command>make ARCH=xen menuconfig</command></para>
|
|
|
|
|
</note>
|
|
|
|
|
</step>
|
|
|
|
|
|
|
|
|
|
<step>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>Ajouter une entr<74>e au menu de Grub
|
2007-04-14 14:03:15 +02:00
|
|
|
|
(menu.lst)</title>
|
|
|
|
|
|
|
|
|
|
<para>Editez <filename>/boot/grub/menu.lst</filename> et
|
|
|
|
|
ajoutez les lignes suivantes:</para>
|
|
|
|
|
|
|
|
|
|
<programlisting>title Xen-3.0.4
|
|
|
|
|
root (hd0,0)
|
|
|
|
|
kernel /boot/xen-3.0.4-1.gz dom0_mem=262144
|
|
|
|
|
module /boot/vmlinuz-2.6.16.33-xen0 root=/dev/hda1 ro</programlisting>
|
|
|
|
|
</step>
|
|
|
|
|
|
|
|
|
|
<step>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>Red<EFBFBD>marrer votre ordinateur sous
|
2007-04-14 14:03:15 +02:00
|
|
|
|
&xen;</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Tout d'abord, <20>ditez
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<filename>/etc/xen/xend-config.sxp</filename>, et
|
|
|
|
|
ajoutez la ligne suivante:</para>
|
|
|
|
|
|
|
|
|
|
<programlisting>(network-script 'network-bridge netdev=eth0')</programlisting>
|
|
|
|
|
|
|
|
|
|
<para>Nous pouvons maintenant lancer
|
|
|
|
|
<application>&xen;</application>:</para>
|
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>/etc/init.d/xend start</userinput>
|
|
|
|
|
&prompt.root; <userinput>/etc/init.d/xendomains start</userinput></screen>
|
|
|
|
|
|
|
|
|
|
<para>Notre domaine dom0 fonctionne:</para>
|
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>xm list</userinput>
|
|
|
|
|
Name ID Mem VCPUs State Time(s)
|
|
|
|
|
Domain-0 0 256 1 r----- 54452.9</screen>
|
|
|
|
|
</step>
|
|
|
|
|
</procedure>
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
|
<title>Domaine domU &os; 7-CURRENT</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>T<EFBFBD>l<EFBFBD>chargez le noyau pour domU &os; pour
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<application>&xen; 3.0</application> et l'image disque
|
2013-11-07 16:39:28 +01:00
|
|
|
|
aupr<70>s de <link xlink:href="http://www.fsmware.com/">http://www.fsmware.com/</link></para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
|
<listitem>
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<para><link xlink:href="http://www.fsmware.com/xenofreebsd/7.0/download/kernel-current">kernel-current</link></para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<para><link xlink:href="http://www.fsmware.com/xenofreebsd/7.0/download/mdroot-7.0.bz2">mdroot-7.0.bz2</link></para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
|
|
<listitem>
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<para><link xlink:href="http://www.fsmware.com/xenofreebsd/7.0/download/config/xmexample1.bsd">xmexample1.bsd</link></para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</listitem>
|
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
|
|
<para>Placez le fichier de configuration
|
|
|
|
|
<filename>xmexample1.bsd</filename> dans le
|
2013-11-07 16:39:28 +01:00
|
|
|
|
r<>pertoire <filename>/etc/xen/</filename> et modifiez les
|
2012-08-10 00:39:25 +02:00
|
|
|
|
entr<74>es relatives à l'emplacement du noyau
|
2007-04-14 14:03:15 +02:00
|
|
|
|
et de l'image disque. Cela devrait donner quelque chose
|
|
|
|
|
comme:</para>
|
|
|
|
|
|
|
|
|
|
<programlisting>kernel = "/opt/kernel-current"
|
|
|
|
|
memory = 256
|
|
|
|
|
name = "freebsd"
|
|
|
|
|
vif = [ '' ]
|
|
|
|
|
disk = [ 'file:/opt/mdroot-7.0,hda1,w' ]
|
|
|
|
|
#on_crash = 'preserve'
|
|
|
|
|
extra = "boot_verbose"
|
|
|
|
|
extra += ",boot_single"
|
|
|
|
|
extra += ",kern.hz=100"
|
|
|
|
|
extra += ",vfs.root.mountfrom=ufs:/dev/xbd769a"</programlisting>
|
|
|
|
|
|
|
|
|
|
<para>Le fichier <filename>mdroot-7.0.bz2</filename> doit
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<20>tre d<>compress<73>.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
|
|
|
|
<para>Ensuite, la section __xen_guest du fichier
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<filename>kernel-current</filename> doit <20>tre
|
|
|
|
|
modifi<66>e pour y ajouter le param<61>tre
|
2007-04-14 14:03:15 +02:00
|
|
|
|
VIRT_BASE dont a besoin <application>&xen;
|
|
|
|
|
3.0.3</application>:</para>
|
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>objcopy kernel-current -R __xen_guest</userinput>
|
|
|
|
|
&prompt.root; <userinput>perl -e 'print "LOADER=generic,GUEST_OS=freebsd,GUEST_VER=7.0,XEN_VER=xen-3.0,BSD_SYMTAB,VIRT_BASE=0xC0000000\x00"' > tmp</userinput>
|
|
|
|
|
&prompt.root; <userinput>objcopy kernel-current --add-section __xen_guest=tmp</userinput></screen>
|
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>objdump -j __xen_guest -s kernel-current</userinput>
|
|
|
|
|
|
|
|
|
|
kernel-current: file format elf32-i386
|
|
|
|
|
|
|
|
|
|
Contents of section __xen_guest:
|
|
|
|
|
0000 4c4f4144 45523d67 656e6572 69632c47 LOADER=generic,G
|
|
|
|
|
0010 55455354 5f4f533d 66726565 6273642c UEST_OS=freebsd,
|
|
|
|
|
0020 47554553 545f5645 523d372e 302c5845 GUEST_VER=7.0,XE
|
|
|
|
|
0030 4e5f5645 523d7865 6e2d332e 302c4253 N_VER=xen-3.0,BS
|
|
|
|
|
0040 445f5359 4d544142 2c564952 545f4241 D_SYMTAB,VIRT_BA
|
|
|
|
|
0050 53453d30 78433030 30303030 3000 SE=0xC0000000. </screen>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Nous sommes maintenant pr<70>t à
|
|
|
|
|
cr<63>er et lancer notre domU:</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>xm create /etc/xen/xmexample1.bsd -c</userinput>
|
|
|
|
|
Using config file "/etc/xen/xmexample1.bsd".
|
|
|
|
|
Started domain freebsd
|
|
|
|
|
WARNING: loader(8) metadata is missing!
|
|
|
|
|
Copyright (c) 1992-2006 The FreeBSD Project.
|
|
|
|
|
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
|
|
|
|
|
The Regents of the University of California. All rights reserved.
|
|
|
|
|
FreeBSD 7.0-CURRENT #113: Wed Jan 4 06:25:43 UTC 2006
|
|
|
|
|
kmacy@freebsd7.gateway.2wire.net:/usr/home/kmacy/p4/freebsd7_xen3/src/sys/i386-xen/compile/XENCONF
|
|
|
|
|
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
|
|
|
|
|
Xen reported: 1796.927 MHz processor.
|
|
|
|
|
Timecounter "ixen" frequency 1796927000 Hz quality 0
|
|
|
|
|
CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1796.93-MHz 686-class CPU)
|
|
|
|
|
Origin = "GenuineIntel" Id = 0xf29 Stepping = 9
|
|
|
|
|
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,
|
|
|
|
|
DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
|
|
|
|
|
Features2=0x4400<CNTX-ID,<b14>>
|
|
|
|
|
real memory = 265244672 (252 MB)
|
|
|
|
|
avail memory = 255963136 (244 MB)
|
|
|
|
|
xc0: <Xen Console> on motherboard
|
|
|
|
|
cpu0 on motherboard
|
|
|
|
|
Timecounters tick every 10.000 msec
|
|
|
|
|
[XEN] Initialising virtual ethernet driver.
|
|
|
|
|
xn0: Ethernet address: 00:16:3e:6b:de:3a
|
|
|
|
|
[XEN]
|
|
|
|
|
Trying to mount root from ufs:/dev/xbd769a
|
|
|
|
|
WARNING: / was not properly dismounted
|
|
|
|
|
Loading configuration files.
|
|
|
|
|
No suitable dump device was found.
|
|
|
|
|
Entropy harvesting: interrupts ethernet point_to_point kickstart.
|
|
|
|
|
Starting file system checks:
|
|
|
|
|
/dev/xbd769a: 18859 files, 140370 used, 113473 free (10769 frags, 12838 blocks, 4.2% fragmentation)
|
|
|
|
|
Setting hostname: demo.freebsd.org.
|
|
|
|
|
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
|
|
|
|
|
inet6 ::1 prefixlen 128
|
|
|
|
|
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
|
|
|
|
|
inet 127.0.0.1 netmask 0xff000000
|
|
|
|
|
Additional routing options:.
|
|
|
|
|
Mounting NFS file systems:.
|
|
|
|
|
Starting syslogd.
|
|
|
|
|
/etc/rc: WARNING: Dump device does not exist. Savecore not run.
|
|
|
|
|
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib
|
|
|
|
|
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
|
|
|
|
|
Starting usbd.
|
|
|
|
|
usb: Kernel module not available: No such file or directory
|
|
|
|
|
Starting local daemons:.
|
|
|
|
|
Updating motd.
|
|
|
|
|
Starting sshd.
|
|
|
|
|
Initial i386 initialization:.
|
|
|
|
|
Additional ABI support: linux.
|
|
|
|
|
Starting cron.
|
|
|
|
|
Local package initialization:.
|
|
|
|
|
Additional TCP options:.
|
|
|
|
|
Starting background file system checks in 60 seconds.
|
|
|
|
|
|
|
|
|
|
Sun Apr 1 02:11:43 UTC 2007
|
|
|
|
|
|
|
|
|
|
FreeBSD/i386 (demo.freebsd.org) (xc0)
|
|
|
|
|
|
|
|
|
|
login: </screen>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Le domaine domU devrait ex<65>cuter le noyau
|
2007-04-14 14:03:15 +02:00
|
|
|
|
&os; 7.0-CURRENT:</para>
|
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>uname -a</userinput>
|
|
|
|
|
FreeBSD demo.freebsd.org 7.0-CURRENT FreeBSD 7.0-CURRENT #113: Wed Jan 4 06:25:43 UTC 2006
|
|
|
|
|
kmacy@freebsd7.gateway.2wire.net:/usr/home/kmacy/p4/freebsd7_xen3/src/sys/i386-xen/compile/XENCONF i386</screen>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Le r<>seau peut maintenant <20>tre
|
|
|
|
|
configur<75> sur le domaine domU. Le domaine domU
|
|
|
|
|
&os; utilisera une interface sp<73>cifique
|
2013-11-07 16:39:28 +01:00
|
|
|
|
appel<65>e <filename>xn0</filename>:</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>ifconfig xn0 10.10.10.200 netmask 255.0.0.0</userinput>
|
|
|
|
|
&prompt.root; <userinput>ifconfig</userinput>
|
|
|
|
|
xn0: flags=843<UP,BROADCAST,RUNNING,SIMPLEX> mtu 1500
|
|
|
|
|
inet 10.10.10.200 netmask 0xff000000 broadcast 10.255.255.255
|
|
|
|
|
ether 00:16:3e:6b:de:3a
|
|
|
|
|
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
|
|
|
|
|
inet6 ::1 prefixlen 128
|
|
|
|
|
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
|
|
|
|
|
inet 127.0.0.1 netmask 0xff000000 </screen>
|
|
|
|
|
|
|
|
|
|
<para>Sur le domaine dom0 Slackware, des interfaces
|
2012-08-10 00:39:25 +02:00
|
|
|
|
r<>seaux relatives à
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<application>&xen;</application> devraient
|
2012-08-10 00:39:25 +02:00
|
|
|
|
appara<72>tre:</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>ifconfig</userinput>
|
|
|
|
|
eth0 Link encap:Ethernet HWaddr 00:07:E9:A0:02:C2
|
|
|
|
|
inet addr:10.10.10.130 Bcast:0.0.0.0 Mask:255.0.0.0
|
|
|
|
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
|
|
|
|
RX packets:815 errors:0 dropped:0 overruns:0 frame:0
|
|
|
|
|
TX packets:1400 errors:0 dropped:0 overruns:0 carrier:0
|
|
|
|
|
collisions:0 txqueuelen:0
|
|
|
|
|
RX bytes:204857 (200.0 KiB) TX bytes:129915 (126.8 KiB)
|
|
|
|
|
|
|
|
|
|
lo Link encap:Local Loopback
|
|
|
|
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
|
|
|
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
|
|
|
|
RX packets:99 errors:0 dropped:0 overruns:0 frame:0
|
|
|
|
|
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
|
|
|
|
|
collisions:0 txqueuelen:0
|
|
|
|
|
RX bytes:9744 (9.5 KiB) TX bytes:9744 (9.5 KiB)
|
|
|
|
|
|
|
|
|
|
peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
|
|
|
|
|
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
|
|
|
|
|
RX packets:1853349 errors:0 dropped:0 overruns:0 frame:0
|
|
|
|
|
TX packets:952923 errors:0 dropped:0 overruns:0 carrier:0
|
|
|
|
|
collisions:0 txqueuelen:1000
|
|
|
|
|
RX bytes:2432115831 (2.2 GiB) TX bytes:86528526 (82.5 MiB)
|
|
|
|
|
Base address:0xc000 Memory:ef020000-ef040000
|
|
|
|
|
|
|
|
|
|
vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
|
|
|
|
|
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
|
|
|
|
|
RX packets:1400 errors:0 dropped:0 overruns:0 frame:0
|
|
|
|
|
TX packets:815 errors:0 dropped:0 overruns:0 carrier:0
|
|
|
|
|
collisions:0 txqueuelen:0
|
|
|
|
|
RX bytes:129915 (126.8 KiB) TX bytes:204857 (200.0 KiB)
|
|
|
|
|
|
|
|
|
|
vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
|
|
|
|
|
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
|
|
|
|
|
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
|
|
|
|
|
TX packets:2 errors:0 dropped:157 overruns:0 carrier:0
|
|
|
|
|
collisions:0 txqueuelen:1
|
|
|
|
|
RX bytes:140 (140.0 b) TX bytes:158 (158.0 b)
|
|
|
|
|
|
|
|
|
|
xenbr1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
|
|
|
|
|
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
|
|
|
|
|
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
|
|
|
|
|
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
|
|
|
|
|
collisions:0 txqueuelen:0
|
|
|
|
|
RX bytes:112 (112.0 b) TX bytes:0 (0.0 b)</screen>
|
|
|
|
|
|
|
|
|
|
<screen>&prompt.root; <userinput>brctl show</userinput>
|
|
|
|
|
bridge name bridge id STP enabled interfaces
|
|
|
|
|
xenbr1 8000.feffffffffff no vif0.1
|
|
|
|
|
peth0
|
|
|
|
|
vif1.0</screen>
|
|
|
|
|
</sect3>
|
|
|
|
|
</sect2>
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect2 xml:id="virtualization-guest-virtualpc">
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<title>Virtual PC sur &windows;</title>
|
|
|
|
|
|
|
|
|
|
<para><application>Virtual PC</application> pour &windows; est
|
|
|
|
|
un logiciel µsoft; librement
|
2012-08-10 00:39:25 +02:00
|
|
|
|
t<>l<EFBFBD>chargeable. Consultez la page concernant la
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<link xlink:href="http://www.microsoft.com/windows/downloads/virtualpc/sysreq.mspx">configuration
|
|
|
|
|
minimale requise</link>. Une fois <application>Virtual
|
2012-08-10 00:39:25 +02:00
|
|
|
|
PC</application> install<6C> sous µsoft.windows;,
|
2007-11-04 20:01:46 +01:00
|
|
|
|
l'utilisateur doit configurer une machine virtuelle puis
|
2012-08-10 00:39:25 +02:00
|
|
|
|
installer le syst<73>me d'exploitation invit<69>
|
|
|
|
|
d<>sir<69>.</para>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect3 xml:id="virtualization-guest-virtualpc-install">
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<title>Installer &os; sous Virtual
|
|
|
|
|
PC/µsoft.windows;</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>La premi<6D>re <20>tape de l'installation de
|
2007-11-04 20:01:46 +01:00
|
|
|
|
&os; sous µsoft.windows;/<application>Virtual
|
2012-08-10 00:39:25 +02:00
|
|
|
|
PC</application> est la cr<63>ation d'une nouvelle
|
2007-11-04 20:01:46 +01:00
|
|
|
|
machine virtuelle pour permettre l'installation de &os;.
|
2012-08-10 00:39:25 +02:00
|
|
|
|
S<>lectionnez <guimenuitem>Create a virtual
|
2007-11-04 20:01:46 +01:00
|
|
|
|
machine</guimenuitem>:</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd1"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd2"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Puis s<>lectionnez
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<guimenuitem>Other</guimenuitem> pour
|
|
|
|
|
<guimenuitem>Operating system</guimenuitem>:</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd3"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Choisissez ensuite une quantit<69> raisonnable
|
|
|
|
|
d'espace disque et de m<>moire en fonction de vos
|
2007-11-04 20:01:46 +01:00
|
|
|
|
projets pour cette installation de &os;. 4Go d'espace de
|
2012-08-10 00:39:25 +02:00
|
|
|
|
disque et 512Mo de m<>moire vive conviennent pour la
|
2007-11-04 20:01:46 +01:00
|
|
|
|
plupart des utilisateurs de &os; sous <application>Virtual
|
|
|
|
|
PC</application>:</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd4"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd5"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<para>Sauvegardez et poursuivez la configuration:</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd6"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>S<EFBFBD>lectionnez votre machine virtuelle &os;,
|
2007-11-04 20:01:46 +01:00
|
|
|
|
cliquez sur <guimenu>Settings</guimenu>, puis
|
2012-08-10 00:39:25 +02:00
|
|
|
|
pr<70>cisez le type de r<>seau et l'interface
|
|
|
|
|
r<>seau:</para>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd7"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd8"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<para>Une fois votre machine virtuelle &os;
|
2012-08-10 00:39:25 +02:00
|
|
|
|
cr<63><72>e, vous devrez y installer &os;. La
|
|
|
|
|
meilleure mani<6E>re <20>tant d'utiliser un CDROM
|
2007-11-04 20:01:46 +01:00
|
|
|
|
&os; officiel ou une image ISO
|
2012-08-10 00:39:25 +02:00
|
|
|
|
t<>l<EFBFBD>charg<72>e depuis un site FTP
|
|
|
|
|
officiel. Quand vous avez l'image ISO appropri<72>e
|
|
|
|
|
sur votre syst<73>me de fichiers &windows; ou sur un
|
2007-11-04 20:01:46 +01:00
|
|
|
|
CDROM dans votre lecteur de CD, double-cliquez sur votre
|
2012-08-10 00:39:25 +02:00
|
|
|
|
machine virtuelle &os; pour d<>marrer. Puis cliquez
|
|
|
|
|
sur <guimenu>CD</guimenu> et s<>lectionnez
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<guimenu>Capture ISO Image...</guimenu> dans la
|
2012-08-10 00:39:25 +02:00
|
|
|
|
fen<65>tre <application>Virtual PC</application>. Une
|
|
|
|
|
fen<65>tre appara<72>tra et vous permettra
|
2007-11-04 20:01:46 +01:00
|
|
|
|
d'associer le lecteur de CDROM de votre machine virtuelle
|
|
|
|
|
avec une image ISO ou votre lecteur de CDROM
|
2012-08-10 00:39:25 +02:00
|
|
|
|
r<>el.</para>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd9"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd10"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<para>L'association avec votre CDROM source
|
2012-08-10 00:39:25 +02:00
|
|
|
|
effectu<74>e, red<65>marrez votre machine
|
2007-11-04 20:01:46 +01:00
|
|
|
|
virtuelle &os; en cliquant sur <guimenu>Action</guimenu>
|
|
|
|
|
puis sur <guimenu>Reset</guimenu>. <application>Virtual
|
2012-08-10 00:39:25 +02:00
|
|
|
|
PC</application> red<65>marrera, son BIOS
|
|
|
|
|
v<>rifiera tout d'abord que vous disposez d'un CDROM
|
2007-11-04 20:01:46 +01:00
|
|
|
|
comme le ferait n'importe quel BIOS normal.</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd11"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
|
|
|
|
<para>Dans ce cas, le support d'installation &os; sera
|
2012-08-10 00:39:25 +02:00
|
|
|
|
trouv<75> et une installation classique bas<61>e
|
|
|
|
|
sur <application>sysinstall</application> d<>butera
|
|
|
|
|
comme d<>crit dans le <xref linkend="install"/>.
|
2007-11-04 20:01:46 +01:00
|
|
|
|
Vous pouvez installez X11 mais ne tentez pas pour le
|
|
|
|
|
moment de le configurer.</para>
|
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd12"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Quand vous avez achev<65> l'installation, pensez
|
|
|
|
|
à <20>jecter le CDROM ou l'image ISO. Enfin,
|
|
|
|
|
red<65>marrez dans votre machine virtuelle &os;
|
|
|
|
|
fra<72>chement install<6C>e.</para>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
|
|
|
|
|
<mediaobject>
|
|
|
|
|
<imageobject>
|
2013-04-02 11:50:10 +02:00
|
|
|
|
<imagedata fileref="virtualization/virtualpc-freebsd13"/>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</imageobject>
|
|
|
|
|
</mediaobject>
|
|
|
|
|
</sect3>
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect3 xml:id="virtualization-guest-virtualpc-configure">
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<title>Configuration de &os; sous
|
|
|
|
|
µsoft.windows;/Virtual PC</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Apr<EFBFBD>s avoir install<6C> avec succ<63>s
|
2007-11-04 20:01:46 +01:00
|
|
|
|
&os; sur µsoft.windows; avec <application>Virtual
|
|
|
|
|
PC</application>, il reste plusieurs points à
|
2012-08-10 00:39:25 +02:00
|
|
|
|
configurer pour optimiser le syst<73>me
|
2007-11-04 20:01:46 +01:00
|
|
|
|
virtuel.</para>
|
|
|
|
|
|
|
|
|
|
<procedure>
|
|
|
|
|
<step>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>Param<EFBFBD>trer les variables du
|
2007-11-04 20:01:46 +01:00
|
|
|
|
chargeur</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>L'<27>tape la plus importante est la
|
|
|
|
|
diminution du param<61>tre
|
|
|
|
|
<option>kern.hz</option> afin de r<>duire
|
2007-11-04 20:01:46 +01:00
|
|
|
|
l'utilisation du CPU de &os; sous l'environnement
|
|
|
|
|
<application>Virtual PC</application>. Pour cela, il
|
|
|
|
|
faut ajouter la ligne suivante au fichier
|
|
|
|
|
<filename>/boot/loader.conf</filename>:</para>
|
|
|
|
|
|
|
|
|
|
<programlisting>kern.hz=100</programlisting>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Sans ce param<61>trage, un syst<73>me
|
|
|
|
|
d'exploitation invit<69> &os; inactif sous
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<application>Virtual PC</application>
|
|
|
|
|
utilisera environ 40% du CPU pour un
|
2012-08-10 00:39:25 +02:00
|
|
|
|
micro-ordinateur monoprocesseur. Apr<70>s ce
|
2007-11-04 20:01:46 +01:00
|
|
|
|
changement l'utilisation du processeur sera plus
|
|
|
|
|
proche d'un petit 3%.</para>
|
|
|
|
|
</step>
|
|
|
|
|
|
|
|
|
|
<step>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>Cr<EFBFBD>er un nouveau fichier de configuration
|
2007-11-04 20:01:46 +01:00
|
|
|
|
du noyau</title>
|
|
|
|
|
|
|
|
|
|
<para>Vous pouvez retirer tous les pilotes de
|
2012-08-10 00:39:25 +02:00
|
|
|
|
p<>riph<70>riques SCSI, FireWire, et USB.
|
2007-11-04 20:01:46 +01:00
|
|
|
|
<application>Virtual PC</application> fournit une
|
2012-08-10 00:39:25 +02:00
|
|
|
|
interface r<>seau virtuelle utilisant
|
2007-11-04 20:01:46 +01:00
|
|
|
|
le pilote &man.de.4;, aussi tous les autres pilotes
|
2012-08-10 00:39:25 +02:00
|
|
|
|
r<>seau en dehors de &man.de.4; et
|
|
|
|
|
&man.miibus.4; peuvent <20>tre supprim<69>s du
|
2007-11-04 20:01:46 +01:00
|
|
|
|
noyau.</para>
|
|
|
|
|
</step>
|
|
|
|
|
|
|
|
|
|
<step>
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>Configuration du r<>seau</title>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>La configuration r<>seau la plus simple
|
2007-11-04 20:01:46 +01:00
|
|
|
|
utilise DHCP pour connecter votre machine virtuelle
|
2012-08-10 00:39:25 +02:00
|
|
|
|
sur le m<>me r<>seau local que votre
|
|
|
|
|
machine &mac; h<>te. Cette configuration se fait
|
2007-11-04 20:01:46 +01:00
|
|
|
|
en ajoutant la ligne
|
|
|
|
|
<literal>ifconfig_de0="DHCP"</literal> au fichier
|
|
|
|
|
<filename>/etc/rc.conf</filename>. Des configurations
|
2012-08-10 00:39:25 +02:00
|
|
|
|
r<>seau plus avanc<6E>es sont
|
2013-11-07 16:39:28 +01:00
|
|
|
|
pr<70>sent<6E>es dans le <xref linkend="advanced-networking"/>.</para>
|
2007-11-04 20:01:46 +01:00
|
|
|
|
</step>
|
|
|
|
|
</procedure>
|
|
|
|
|
</sect3>
|
|
|
|
|
</sect2>
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect2 xml:id="virtualization-guest-vmware">
|
2007-04-14 14:03:15 +02:00
|
|
|
|
<title>VMware sur &windows;/&mac;/&linux;</title>
|
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Cette section n'est pas encore <20>crite.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</sect2>
|
|
|
|
|
</sect1>
|
|
|
|
|
|
2013-11-07 16:39:28 +01:00
|
|
|
|
<sect1 xml:id="virtualization-host">
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<title>&os; comme syst<73>me d'exploitation h<>te</title>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
|
2012-08-10 00:39:25 +02:00
|
|
|
|
<para>Actuellement, &os; en tant que syst<73>me d'exploitation
|
|
|
|
|
h<>te n'est officiellement support<72> par aucun
|
2007-04-14 14:03:15 +02:00
|
|
|
|
logiciel de virtualisation, de nombreuses personnes utilisent
|
|
|
|
|
d'anciennes versions de <application>VMware</application> pour
|
2012-08-10 00:39:25 +02:00
|
|
|
|
cela. Des efforts sont actuellement d<>ploy<6F>s pour
|
2007-04-14 14:03:15 +02:00
|
|
|
|
faire fonctionner <application>&xen;</application> en tant
|
2012-08-10 00:39:25 +02:00
|
|
|
|
qu'environnement h<>te sur &os;.</para>
|
2007-04-14 14:03:15 +02:00
|
|
|
|
</sect1>
|
|
|
|
|
</chapter>
|