« Modèle:NewVM » : différence entre les versions

De wiki.infini
import>Fleon
Aucun résumé des modifications
import>Fleon
Aucun résumé des modifications
Ligne 2 : Ligne 2 :
La machine physique '''{{{machine_phys}}}''' héberge la VM, création du fichier de config :
La machine physique '''{{{machine_phys}}}''' héberge la VM, création du fichier de config :


{{RootCmd
{{RootCmd | hostname={{{machine_phys}}}
| hostname={{{machine_phys}}}
| cd /etc/kvm/machines_virtuelles
  | cp template.xml {{{vmname}}}.xml
  | cp template.xml {{{vmname}}}.xml
  | nano {{{vmname}}}.xml
  | nano {{{vmname}}}.xml
Ligne 19 : Ligne 19 :
Création des volumes LVM :
Création des volumes LVM :


<pre>
{{RootCmd | hostname={{{machine_phys}}}
{{{machine_phys}}} machines_virtuelles # lvcreate -L {{{sys_size}}} -n {{{vmname}}}_sys vg0
| lvcreate -L {{{sys_size}}} -n {{{vmname}}}_sys vg0
{{{machine_phys}}} machines_virtuelles # lvcreate -L {{{swap_size}}} -n {{{vmname}}}_swap vg0
| lvcreate -L {{{swap_size}}} -n {{{vmname}}}_swap vg0
</pre>
}}


Démarrage de la vm :
Démarrage de la vm :


<pre>
{{RootCmd | hostname={{{machine_phys}}}
{{{machine_phys}}} machines_virtuelles # virsh create {{{vmname}}}.xml
| virsh create {{{vmname}}}.xml
</pre>
}}


Connexion VNC :
Connexion VNC :


<pre>
{{RootCmd | hostname=remote
remote ~ # ssh -p443 user@mx1.infini.fr -L5901:{{{ip_phys}}}:{{{vnc}}}
| ssh -p443 user@mx1.infini.fr -L5901:{{{ip_phys}}}:{{{vnc}}}
remote ~ # vncviewer localhost:1
| vncviewer localhost:1
</pre>
}}


* {{{install_summary}}}
* {{{install_summary}}}

Version du 15 février 2015 à 03:12