aboutsummaryrefslogtreecommitdiff
path: root/source/notes/2017-01-17-kvm.md
blob: b1c09279ced9ec7c0d08428257a6e54d45c4a700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: "kvm"
date: 2017-01-17T09:14:00
date_display: Jan 17, 2017
---

Création de l'image disque où serait installer Windows :

```sh
$ qemu-img create -f qcow2 disk.qcow2 40G
```

Utiliser le script suivant :

```sh
#!/bin/sh
export QEMU_AUDIO_DRV=alsa 
DISKIMG=~/win7.img
WIN7IMG=~/Downloads/X15-65804.iso
VIRTIMG=~/Downloads/virtio-win-0.1-74.iso
qemu-system-x86_64 --enable-kvm -drive file=${DISKIMG},if=virtio -m 2048 \
-net nic,model=virtio -net user -cdrom ${WIN7IMG} \
-drive file=${VIRTIMG},index=3,media=cdrom \
-rtc base=localtime,clock=host -smp cores=2,threads=4 \
-usbdevice tablet -soundhw ac97 -cpu host -vga vmware
```

Lors de l'installation pensez à installer les drivers suivant :

- vioscsi : Driver pour détecter les disques

- NetKVM : Driver pour internet

Drivers : [https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/)

Sources :

- [https://www.reddit.com/r/archlinux/comments/1fg3y9/guide_to_running_windows_7_in_qemu/](https://www.reddit.com/r/archlinux/comments/1fg3y9/guide_to_running_windows_7_in_qemu/)

- [http://www.funtoo.org/Windows_7_Virtualization_with_KVM](http://www.funtoo.org/Windows_7_Virtualization_with_KVM)