This page give quick steps on how to use the images with QEMU on an Arch Linux, including Voice, Folder share, and NAT ( i.e. no bridge )
Making qemu diskDownload your favorite Windows version,. While the single zip download is good, the problem is that the server doesn't support the HTTP range requests, so it's always a full download if connection breaks in the middle.
The `wget -i` friendly Batch file Download or Grab them all with cURL are much better options.
$ wget -i https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/VirtualBox/IE11/Linux/IE11.Win8.1.For.Linux.VirtualBox.txt
$ cat IE11.Win8.1.For.Linux.VirtualBox.zip.00* > W81.zip
$ unzip W81.zip
$ tar xvf IE11\ -\ Win8.1.ova
$ qemu-img convert -f vmdk -O qcow2 IE11\ -\ Win8.1-disk1.vmdk w81-orig.img
The image will expire in three months, and it's a good idea to keep the orig image. All files except w81-orig.img can be deleted.
Running Windows under QemuArmed with a copy of the disk image created above, and qemu, you are ready to roll.
$ cp w81-orig.img w81.img
$ qemu-system-x86_64 -enable-kvm -hda w81.img
This should bring up something usable. The reasons one needs to run Windows within Linux may vary. Some applications may require multiple network cards, multiple sound cards, direct USB access etc.
I'm using this setup, primarily to work on the NVDA screen reader ( I am working with the India team), so working network and sound is main requirement. Also, it's a good idea to get shared folders working, so that common stuff can be kept on host directory. This allows me to avoid cygwin, and manages files from host. Unfortunately things like MSVC/SDK will still need to be installed, as they do not have the portable variant. Also, I shy away from bridges, and NAT is good enough for my purpose.
$ qemu-system-x86_64 \
-smp cpus=2 \
-m 2048 \
-hda w81.img \
-device e1000,netdev=user.0 \
-netdev user,id=user.0 \
-net nic \
This should boot up the Windows. I also tend to add -cdrom for the MSVC ISO to for first time install.
This command requires qemu, samba and pulseaudio to be installed.
First time bootWindows should boot up, and log in the default user.
The Audio drivers can be installed by firing the device manager, and selecting 'Update driver' from context menu on Multi Media device.
The host shared drive can be accessed by
C:> net view \\10.0.2.4
C:> dir \\10.0.2.4\qemu
C:> net use h: \\10.0.2.4\qemu /persistent:yes
TroubleshootingIf sound doesn't work properly try emulating other cards. `qemu -soundhw list` will list available hardwares.
And lastly, the device / netdev / net-nic / net-user usage is confusing , a better command line will be highly appreciated.
http://modern.ie is doing a great service with the images, and even though they only dish out the Virtualbox images, it's easy to use the images in KVM.