« Modèle:NewVM » : différence entre les versions
import>Fleon Aucun résumé des modifications |
m (33 révisions importées) |
||
(19 versions intermédiaires par un autre utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<includeonly> | <includeonly> | ||
{{InfoBox stack | {{InfoBox stack | ||
|{{InfoBox | |{{InfoBox head| [http://munin.infini.fr/vm_{{{machine_phys}}}/{{{vmname}}}.infini.mdl/index.html] {{{vmname}}} @ {{{machine_phys}}} }} | ||
|{{InfoBox line| MEMORY : {{{memory}}} }} | |{{InfoBox line| MEMORY : {{{memory}}} }} | ||
|{{InfoBox line| CPU : {{{cpu}}} }} | |{{InfoBox line| CPU : {{{cpu}}} }} | ||
|{{InfoBox line| LVM : /dev/vg0/{{{vmname}}}_sys }} | |{{InfoBox line| LVM : /dev/vg0/{{{vmname}}}_sys / {{{sys_size|}}} }} | ||
|{{InfoBox line| LVM : /dev/vg0/{{{vmname}}}_swap }} | |{{InfoBox line| LVM : /dev/vg0/{{{vmname}}}_swap / {{{swap_size|}}} }} | ||
|{{InfoBox line| LVM : {{#if:{{{data_size|}}} | /dev/vg0/{{{vmname}}}_data / {{{data_size|}}} | nan}} }} | |||
|{{InfoBox line| MAC : {{{mac}}} }} | |{{InfoBox line| MAC : {{{mac}}} }} | ||
|{{InfoBox line| NET : {{{iface}}} }} | |{{InfoBox line| NET : {{{iface}}} / {{{ip_vm|}}} }} | ||
|{{InfoBox line| VNC : {{{vnc}}} }} | |{{InfoBox line| VNC : {{{vnc}}} }} | ||
}} | }} | ||
Ligne 23 : | Ligne 24 : | ||
| lvcreate -L {{{sys_size}}} -n {{{vmname}}}_sys vg0 | | lvcreate -L {{{sys_size}}} -n {{{vmname}}}_sys vg0 | ||
| lvcreate -L {{{swap_size}}} -n {{{vmname}}}_swap vg0 | | lvcreate -L {{{swap_size}}} -n {{{vmname}}}_swap vg0 | ||
| {{#if:{{{data_size|}}} | lvcreate -L {{{data_size}}} -n {{{vmname}}}_data vg0 }} | |||
}} | }} | ||
Ligne 38 : | Ligne 40 : | ||
}} | }} | ||
{{#if:{{{data_size|}}}| |<br/><br/>}} | |||
On termine en ajoutant la machine au fichier '''/etc/rc.local''' pour garantir qu'elle sera relancée au démarrage de {{{machine_phys}}} : | On termine en ajoutant la machine au fichier '''/etc/rc.local''' pour garantir qu'elle sera relancée au démarrage de {{{machine_phys}}} : | ||
{{ | {{FileBox|filename={{{machine_phys}}} ~ vi /etc/rc.local | 1= | ||
sleep 2 | sleep 2 | ||
virsh create /etc/kvm/machines_virtuelles/{{{vmname}}}.xml | virsh create /etc/kvm/machines_virtuelles/{{{vmname}}}.xml | ||
Ligne 50 : | Ligne 49 : | ||
* {{{install_summary}}} | * {{{install_summary}}} | ||