« Modèle:NewVM » : différence entre les versions
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}}} | ||
| 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 : | ||
{{RootCmd | hostname={{{machine_phys}}} | |||
{{{machine_phys}}} | | lvcreate -L {{{sys_size}}} -n {{{vmname}}}_sys vg0 | ||
| lvcreate -L {{{swap_size}}} -n {{{vmname}}}_swap vg0 | |||
}} | |||
Démarrage de la vm : | Démarrage de la vm : | ||
{{RootCmd | hostname={{{machine_phys}}} | |||
{{{machine_phys}}} | | virsh create {{{vmname}}}.xml | ||
}} | |||
Connexion VNC : | Connexion VNC : | ||
{{RootCmd | hostname=remote | |||
| ssh -p443 user@mx1.infini.fr -L5901:{{{ip_phys}}}:{{{vnc}}} | |||
| vncviewer localhost:1 | |||
}} | |||
* {{{install_summary}}} | * {{{install_summary}}} |