diff options
Diffstat (limited to 'source/notes/2017-01-17-kvm.md')
-rw-r--r-- | source/notes/2017-01-17-kvm.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/source/notes/2017-01-17-kvm.md b/source/notes/2017-01-17-kvm.md new file mode 100644 index 00000000..b1c09279 --- /dev/null +++ b/source/notes/2017-01-17-kvm.md @@ -0,0 +1,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) |