A "Universal" Virtual Machine

Say Your ssTek Problems, We Might Have Answers
User avatar
The Freezer
Posts: 346
Joined: Sun Aug 29, 2010 2:19 pm
Location: Northeast Ohio
Been thanked: 2 times
Contact:

A "Universal" Virtual Machine

Postby The Freezer » Tue Oct 02, 2012 6:06 pm

The Freezer wrote:Does anyone have (or know of) a QEMU (or Bochs) working with any Windows 7 build? These two are nice because I can run 64-bit guest OSArches on 32-bit hosts.

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...
I would love to change the world, but they won't give me the source code.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
The Freezer
Posts: 346
Joined: Sun Aug 29, 2010 2:19 pm
Location: Northeast Ohio
Been thanked: 2 times
Contact:

Re: A "Universal" Virtual Machine

Postby The Freezer » Fri Oct 05, 2012 7:02 am

[img=float-right]http://sstek.vergitek.com/team/TheFreezerBox/pix/Qemu-windows-1.2.0.001.jpg[/img]



NIC apparently works; it started downloading the Windows Updates ;)

[align=right]----->[/align]
I would love to change the world, but they won't give me the source code.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Problem/Solution”

Who is online

Users browsing this forum: No registered users and 1 guest