diff options
author | neodarz <neodarz@neodarz.net> | 2017-06-20 19:03:17 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-06-20 19:03:17 +0200 |
commit | 6dbdf013628321f9996efe4a90eaa03b8a8875a4 (patch) | |
tree | 0d48ee911685c9170ee7750b5cc21e117918a5d5 /source/notes/2017-01-17-kvm.md | |
parent | e11b17c3265cca97b244fa368391cdfe8dd182f0 (diff) | |
download | my_new_personal_website-6dbdf013628321f9996efe4a90eaa03b8a8875a4.tar.xz my_new_personal_website-6dbdf013628321f9996efe4a90eaa03b8a8875a4.zip |
Fork of wiki.neodarz.net
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) |