Created
June 16, 2016 04:06
-
-
Save OneOfOne/43898e86c0ddd012a4befc1480b40938 to your computer and use it in GitHub Desktop.
A bash script to start a windows 7 vm with with the web cam attached to use skype, because microsoft are horrible and forgot they have a Linux client.
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/sh | |
| export QEMU_AUDIO_DRV=pa | |
| DISKIMG=/mnt/data-7/qemu/win7/win7.img | |
| WIN7IMG= | |
| VIRTIMG=/media/storage/iso/virtio-win-0.1.118.iso | |
| sudo chmod 666 /dev/bus/usb/$(lsusb | grep LifeCam | awk '{split($4,a,":"); print $2"/"a[1] }') | |
| qemu-system-x86_64 --enable-kvm -drive file=${DISKIMG},format=raw,if=virtio,aio=native,cache=none -m 2048 \ | |
| -net nic,model=virtio -net user -rtc base=localtime,clock=host \ | |
| -soundhw hda -cpu host -smp 4 -vga vmware -device nec-usb-xhci,id=xhci \ | |
| -usbdevice tablet -device usb-host,bus=xhci.0,vendorid=0x045e,productid=0x0779 $* | |
| #-cdrom ${WIN7IMG} -drive file=${VIRTIMG},index=3,media=cdrom \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment