A "Universal" Virtual Machine
Posted: Tue Oct 02, 2012 6:06 pm
I never really did get a satisfactory answer for this inquiry; so in my own quest found out for myself how to do this, the following is what I found.
First of all, I'd like to say QEMU is really awesome and cool!
I started with the following tutorial: Create a virtual computer yourself- Qemu tutorial for a beginner(Using Windows XP)
But updated it from QEMU v0.9.0 to v1.2.0 -- see here for a good place to obtain binaries (especially updated ones). Next I modified the batch file(s) somewhat:
Code: Select all
@echo off
rem set SDL_VIDEODRIVER=windib
rem set QEMU_AUDIO_DRV=sdl
rem set SDL_AUDIODRIVER=waveout
rem set QEMU_AUDIO_LOG_TO_MONITOR=1
:Create the Windows virtual hard-drive.
qemu-img create -f qcow2 ..\winxp.img 20G
:Start
qemu-system-i386w.exe -name WinXP ^
-L Bios ^
-m 512 ^
-display sdl ^
-soundhw all ^
-net nic,model=ne2k_pci -net user ^
-rtc base=localtime,clock=host ^
-drive file=../winxp.img,index=1,media=disk ^
-cdrom g: ^
-boot d
:Exit
exit
Recommended file-name: "winxp-install.bat"
Note(s):
- Using Windows XP SP3 Volume to test out the methods. Later will graduate to Windows 7 first 32-bit then x64.
- winxp.img is located in a parent folder (this is so I could test various QEMU versions).
- g: is a mounted XPSP3 iso (WXPVOL_EN) -- using Virtual CloneDrive. The .iso is also located in the parent folder.
- This is a work in progress for me. I'll post updates to this thread as I progress...