Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| sysadmin:linux:virtualisation:kvm:installation_invite:creation-vm-windows-7-pro [2025/12/07 11:46] – Modification sections yoann | sysadmin:linux:virtualisation:kvm:installation_invite:creation-vm-windows-7-pro [2026/09/20 10:09] (Version actuelle) – yoann | ||
|---|---|---|---|
| Ligne 8: | Ligne 8: | ||
| - | ===== Création du fichier disque | + | ===== Procédure |
| - | + | ||
| - | On crée un fichier disque de 20 Go | + | |
| Ligne 22: | Ligne 19: | ||
| - | <code bash> | + | Les spécifications/paramètres de la VM sont automatiquement déterminés par la commande '' |
| - | newgrp kvm | + | |
| - | cd ~ | + | |
| - | + | ||
| - | mkdir -p ~/KVM/ | + | |
| - | chmod ug+rwx,o-rwx ~/ | + | |
| - | + | ||
| - | qemu-img create | + | |
| - | chmod ug+rw,o-rwx ~/ | + | |
| - | </ | + | |
| - | ===== Création de la VM ===== | ||
| - | Les spécifications/ | + | Pour obtenir |
| <code bash> | <code bash> | ||
| - | virt-install --virt-type=kvm --name | + | virt-install --connect=qemu:/// |
| + | --name | ||
| --metadata title=" | --metadata title=" | ||
| + | --osinfo win7 \ | ||
| + | --virt-type=kvm \ | ||
| --memory 2048 --vcpus=2 \ | --memory 2048 --vcpus=2 \ | ||
| - | --boot | + | --boot |
| - | --disk path=/ | + | --boot |
| - | --graphics spice \ | + | --disk |
| - | --sound ich9 \ | + | |
| --cdrom / | --cdrom / | ||
| - | --network network=vm-internal, | ||
| - | </ | ||
| - | |||
| - | |||
| - | ===== Optimisations via virtIO ===== | ||
| - | |||
| - | : | ||
| - | |||
| - | Pour obtenir de meilleures performances il faudra utiliser les pér | ||
| - | <code bash> | ||
| - | virt-install --virt-type=kvm --name win7-pro --os-variant win7 \ | ||
| - | --metadata title=" | ||
| - | --memory 2048 --vcpus=2 \ | ||
| - | --boot cdrom,hd \ | ||
| - | --disk path=/ | ||
| --graphics spice \ | --graphics spice \ | ||
| - | --sound ac97 \ | + | --network |
| - | --cdrom / | + | |
| - | --network | + | |
| </ | </ | ||
| Ligne 77: | Ligne 48: | ||
| Après l' | Après l' | ||
| + | Créer le partitionnement GPT : | ||
| + | Appuyer sur < | ||
| + | invoquer '' | ||
| + | |||
| + | < | ||
| + | list disk | ||
| + | select disk n (Where n is the number of the disk you want to install Windows 7) | ||
| + | clean | ||
| + | convert mbr | ||
| + | create partition primary size=X (Where X is the amount of partition size in MBs) | ||
| + | format fs=ntfs quick | ||
| + | exit (Exit diskpart) | ||
| + | exit (Exit CMD) | ||
| + | </ | ||
| ===== Références ===== | ===== Références ===== | ||