Jump to content











Photo

Test Your ISO images in QEMU by Batch File


  • Please log in to reply
8 replies to this topic

#1 Shirin Zaban

Shirin Zaban

    Frequent Member

  • Tutorial Writer
  • 423 posts
  • Location:Tehran
  • Interests:1_Making Unattended and Customized XP<br /><br />2_Making different types of Bootable and Multiboot CD/DVD<br /><br />3_Like to learn more about grub and grub4DOS
  •  
    Iran

Posted 10 July 2008 - 11:19 PM

=============================================================================
Test Your ISO images in QEMU by Batch File
=============================================================================

Hi

It was about one weak that i was searching the great web to understand how to test
ISO files in QEMU.Because it realy loads ISO files very fast.

I saw a lot of pages,but I coulnot find a complete and easy way (May be because of
my language problems).

Then again i went toward very nice program "WinBuider" ,and tried to study qEmu.Script
inside livexp project.

And after an hour I did understand how to use QMUE to check my iso files by using an
small batch file.

If you are like me read lines below to do it your self.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


1)_.Copy qemu directoy from "winbuilder directory\projects\Tools\ " to C:\
(you will have C:\qemu).

2)_.Get cmdow.exe from attachment and copy it to your ...\system32 directory.

3)_.Place your ISO (In this example livexp.iso) to C:\

4)_.Get qemu.bat from attachment and Run it.your iso will be loaded by qemu very fast.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

That is all you need to have and do.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Notes:
---------
1.If you use other addresses for loading iso, or you want to change iso name, you should
change respective places in batch file.

2.If you want to know more about qemu and it's commands,you can search web pages,But i
hope other members will give us enough information about command syntax in this page

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

hope will help some

have nice times

shirin zaban

Attached Files


  • eDvArDo likes this

#2 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 11 July 2008 - 08:05 AM

As a corollary, using Qemu from Command line can be challenging.

Using a GUI for it proves to be very handy.

Here, Qemu Manager:
http://www.davereyn.co.uk/

Current version is 5.0:
http://www.davereyn.co.uk/download.htm

Though I personally prefer the "old" look and feel of v.4.00.

jaclaz

#3 Shirin Zaban

Shirin Zaban

    Frequent Member

  • Tutorial Writer
  • 423 posts
  • Location:Tehran
  • Interests:1_Making Unattended and Customized XP<br /><br />2_Making different types of Bootable and Multiboot CD/DVD<br /><br />3_Like to learn more about grub and grub4DOS
  •  
    Iran

Posted 11 July 2008 - 08:09 AM

As a corollary, using Qemu from Command line can be challenging.

Using a GUI for it proves to be very handy.

Here, Qemu Manager:
http://www.davereyn.co.uk/

Current version is 5.0:
http://www.davereyn.co.uk/download.htm

Though I personally prefer the "old" look and feel of v.4.00.

jaclaz


========================================
Hi jaclaz

Thanks for your help

have nice times

shirin zaban
  • eDvArDo likes this

#4 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 29 July 2008 - 04:11 AM

(jaclaz @ Jul 11 2008, 08:05 AM)
As a corollary, using Qemu from Command line can be challenging.

Using a GUI for it proves to be very handy.

Here, Qemu Manager:
http://www.davereyn.co.uk/

Current version is 5.0:
http://www.davereyn.co.uk/download.htm

Though I personally prefer the "old" look and feel of v.4.00.

jaclaz

After you get Qemu Mngr installed, a nice touch is to add a rt-click option for launching the ISO's directly from the context menu (no need to open QemuMngr first and browse for the ISO). Looks like this:
Attached File  qemurcm.JPG   25.31KB   90 downloads

Just go to Tools -> Folder Options -> File Types, scroll down to ISO and hit Advanced tab. 'New' brings up the New Action dialog where you can enter the new Action: 'QemuRun' (or similar) to appear in your context menu when rt-clicking any ISO. Under 'Application used to perform action:' copy and paste the following text (if you save this code in Notepad etc. the text can't be word wrapped when you copy):
&#34;C&#58;\Program Files\QemuManager\qemu\qemu.exe&#34; -L &#34;C&#58;\Program Files\QemuManager\qemu&#34; -m 512 -hda &#34;C&#58;\Program Files\QemuManager\images\xp512.dsk&#34; -cdrom &#34;%1&#34; -boot d -usb -usbdevice tablet -net nic,vlan=0 -net user,vlan=0  -localtime

Hit OK and your done. Note that you will have to account for any difference in your local setup i.e. QemuManager install path but everything else should be universal. You don't need to setup any virtual machine in Qemu Mngr**, this command will automatically load an XP disk with 512MB RAM (plenty for any build you have). I've included the cool AutoMouse feature which allows the cursor to enter and leave the Qemu window without having to 'Ctrl+Alt' each time. Many other features are available to add to the command but this should give you all you need (for now). I've only tested with QemuMngr 4.0 (I also prefer 4.0) but should work fine with 5.0 as well. Have fun :cheers:

**Yes you do, sorry :cheers: ; in this case you have to have a virtual machine 'disk' named 'xp512' in your images directory. Just copy this file into "C:\Program Files\QemuManager\images" (assuming your install path is the same as mine) and all will work fine :cheers:

#5 Shirin Zaban

Shirin Zaban

    Frequent Member

  • Tutorial Writer
  • 423 posts
  • Location:Tehran
  • Interests:1_Making Unattended and Customized XP<br /><br />2_Making different types of Bootable and Multiboot CD/DVD<br /><br />3_Like to learn more about grub and grub4DOS
  •  
    Iran

Posted 30 July 2008 - 11:18 AM

Hi

1.Thanks for amalux ,i checked that, works in Qemu Manager 4,and not in Qemu Manager 5
because of some changes in files places.any way that is nice way and makes working by
ISO files very easy.

2.You do not need to install Qemu Manager, just copy xp512.dsk from attachment to qemu folder
that i have talked about that in post#1 ,then add "run in qemu" to your right click as
dear "amalux" said.Just put code below instead of "amalux's" code:
-------------------
"c:\qemu\qEmu.exe" -hda "c:\qemu\xp512.dsk" -boot d -m 256 -cdrom "%1" -L "c:\qEMU" -usb -localtime -kernel-kqemu -net user,"c:\qEMU"
------------------

Important Note:
---------------
Some times when you paste command above on "Application used to perform action" ,
if you check ,you will see that some of commands are not written, if it was so ,
complate it.


3.Now you will will have the item "run in qemu" in your right click on iso files.

===================================
have nice times

shirin zaban

Attached Files


  • eDvArDo likes this

#6 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 30 July 2008 - 03:29 PM

Hi

1.Thanks for amalux ,i checked that, works in Qemu Manager 4,and not in Qemu Manager 5
because of some changes in files places.any way that is nice way and makes working by
ISO files very easy.

2.You do not need to install Qemu Manager, just copy xp512.dsk from attachment to qemu folder
that i have talked about that in post#1 ,then add "run in qemu" to your right click as
dear "amalux" said.Just put code below instead of "amalux's" code:
-------------------
"c:\qemu\qEmu.exe" -hda "c:\qemu\xp512.dsk" -boot d -m 256 -cdrom "%1" -L "c:\qEMU" -usb -localtime -kernel-kqemu -net user,"c:\qEMU"
------------------

Important Note:
---------------
Some times when you paste command above on "Application used to perform action" ,
if you check ,you will see that some of commands are not written, if it was so ,
complate it.


3.Now you will will have the item "run in qemu" in your right click on iso files.

===================================
have nice times

shirin zaban

Nice! Your code is cleaner! Here's the equivalent for those that still want Qemu Manager :cheers:
&#34;c&#58;\qmgr\qemu\qemu.exe&#34; -L &#34;c&#58;\qmgr\qemu&#34; -m 512 -hda &#34;c&#58;\qmgr\images\xp512.dsk&#34; -cdrom &#34;%1&#34; -boot d -usb -usbdevice tablet -net nic,vlan=0 -net user,vlan=0  -localtime

The code can't survive being copied from a word wrapped document (notepad), just remove word wrap temporarily to copy :cheers:

Thanks Shirin! :cheers:
  • eDvArDo likes this

#7 mariomerejildo

mariomerejildo
  • Members
  • 1 posts
  •  
    Dominican Republic

Posted 13 October 2012 - 06:11 AM

I think i found a very much easier way to do it, taking The original Post and merging with some comments from here, and using some info from other places, and now i have my perfect batch to run *.iso files directly from command line.

I tried to use the files from this post, but were a bit wrong for the issues i wanted to solve; so, i edited used some other elements, got some more files from other quemu, and placed all toguether, now i have a batch file in my sendto direct access shell (actually is a shortcut) to the original which is located in the root directory "c:\quemu ". So when i want to test an iso; let´s say we just make a search in your files looking for an iso of any bootable dis you had, when you find it you just want to test if it works, just right click it, click in send to, click in the batch file of quemu, and you are done, your iso is booting into quemu virtual pc, fastest as you can´t believe it. I just edited the batch file and place the "%1" instead of the name of the iso, you can drag and drop as well and will work (in windows it does excelent). Thank if you want some help just reply or pm me. God bless every one.

One of my pages is:
http://www.megatube.info
www.xvideos.vacau.com
www.xaviergames.webatu.com
www.megatubevideo.info
www.tvrtube.com
www.bleachonline.coolpage.biz
and some other.

#8 mesrine_29

mesrine_29

    Member

  • Members
  • 30 posts
  •  
    France

Posted 24 October 2012 - 01:02 PM

Hi,

Thanks Shirin! :) good job.

#9 eDvArDo

eDvArDo
  • Members
  • 5 posts
  •  
    Iran

Posted 22 June 2014 - 12:57 PM

Hi! (Salam OSTAD)

 

 

Thank U!  :D

 

thanks.gif



#10 Williejidly

Williejidly
  • Members
  • 0 posts
  • Location:Toronto
  • Interests:Footbal

Posted 23 March 2023 - 11:28 PM

Noo the .bat file is pretty much a Shortcut. Keep the lfs.exe or you wont be able to play your game lol. The .bat is simply a script which runs commands. Somewhat like LFS Scripts




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users