Created
June 16, 2017 23:27
-
-
Save bse666/aa0b6b9b1e1fcaca20d1fc0846e7ea21 to your computer and use it in GitHub Desktop.
qemu- windows scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mac=ab:cd:ef:gh:ij:kl | |
i=0 | |
#until lspci -nnk | grep -q vfio-pci; do | |
#sleep 1 | |
#i=$((i+1)) | |
#echo -en "Warte auf vfio $i\r" | |
#done | |
sleep 3 | |
echo | |
ps -C onboard >/dev/null || onboard & | |
export QEMU_AUDIO_DRV=alsa | |
export QEMU_AUDIO_TIMER_PERIOD=0 | |
echo "\"Starte Windows 7\"" | |
qemu-system-x86_64 -enable-kvm -m 4096 -vga none -usb \ | |
-soundhw ac97 -cpu host,kvm=off -smp 4,sockets=1,cores=4,threads=1 \ | |
-device vfio-pci,host=01:00.0,multifunction=on \ | |
-hda /home/qemu/windows.img \ | |
-localtime -name "Windows 7" | |
#-bios /usr/share/seabios/bios.bin \ | |
#-device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#qemu-system-x86_64 -boot c -device virtio-scsi-pci,id=scsi -drive file=/home/qemu/windows.img,id=disk,format=raw,if=none,cache=none -soundhw hda -m 4G -cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time -enable-kvm | |
qemu-system-x86_64 -boot d -device virtio-scsi-pci,id=scsi -drive file=/home/qemu/windows.img,id=disk,format=raw,if=none -device scsi-hd,drive=disk -drive file=/home/bse/Downloads/win7_all.iso,id=isocd,if=none -device scsi-cd,drive=isocd -drive file=/home/bse/Downloads/virtio-win-0.1.126.iso,id=virtiocd,if=none -device ide-cd,bus=ide.1,drive=virtiocd -soundhw hda -m 4G -cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time -enable-kvm \ | |
-vga none \ | |
-device vfio-pci,host=00:02.0,bus=0,addr=02.0,multifunction=on,x-vga=on \ | |
-localtime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment