LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2005, 10:00 AM   #1
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
qemu howto


I am looking for a howto on qemu, I read the docs on the site thuroughly and thaught I understood it fine, until I tried to use it. I was able to create a raw image of 1gb, now I want to load it and have it boot the windows2k install cd, I have tried several commands that I derived from reading docs, but I cannot get past the usage information in most of them.

I am not askign for someone to write a tutorial here and now, but if anyone can point me to a howto or some better docs that would be great, or if I have a typeo or something in an otherwise correct command please inform me.

these are the commands I tried:
created image:
Code:
qemu-img create -f raw testimage 1000
Formating 'testimage', fmt=raw, size=1000 kB
Tried to execute, none of these worked

Code:
qemu-i386 ./testimage
Error loading ./testimage
Code:
qemu-i386 -cdrom /dev/cdroms/cdrom1 -boot c ./testimage
Code:
qemu-i386 -d -cdrom /dev/cdroms/cdrom1 -boot c ./testimage
Code:
qemu-i386 -hda ./testimage
Code:
qemu-i386 -boot c ./testimage
Code:
qemu-i386 -cdrom /dev/cdrom ./testimage
 
Old 02-20-2005, 05:27 AM   #2
Marsanghas
Member
 
Registered: Sep 2003
Location: Spijkenisse, Netherlands
Posts: 119

Rep: Reputation: 15
Don't use qemu-i386... you must use the qemu command.

As you emerged qemu, at the end there is the comment about it. You need to put 'softmmu' in your useflags end re-emerge qemu.

Then you do :

Code:
qemu -cdrom /dev/cdrom -boot d -hda testimage
or something similar. This boots your cd with testimage as your harddrive hda.
 
Old 02-23-2005, 03:20 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i've been playing with qemu for several days now, so i'm gonna post some stuff.
you can boot almost anything with that emulator.
-boot then a c or d. a for floppy, c for hard drive, and d for cdrom.
then whatever you set for the cdrom will boot.
qemu -boot d -cdrom /dev/cdrom or some iso image will be fine.
just an hour ago i booted a cdrom with some dos utilities on it because i wanted to make my windows 2000 image smaller. I ran into a problem with win2000 installing in that it was make gig's of security logs and taking up all the space. I don't know why, but i was able to delete them all after getting done with the install. i used norton's ghost 6 to copy the hard drive image i had been using to a new one i just made.
qemu -boot d -cdrom /dev/scd0 -hda 2000.img -hdb 2001.img
that got me to boot from the cdrom, and and i had the two drives there for ghost. you can also load up a regular hard drive too. -hdc /dev/hdi added to the command line let me add a hard drive on as the third hard drive too. if i put it at -hda i could boot from it.
I've found qemu to be wonderfully versatile, but i haven't been able to get the samba working. that's why i experimented with hooking up another hard drive when i couldn't get samba to work. i could ping the 10.0.2.2 adress or whatever it was, but the share i tried to use wouldn't show up.
I installed gordian knot in 2000 under qemu and let it make a few divx movies, and it only took about 1.75 times as long as it would have under plain 2000.
i can't think of anything else right now and i've got dogs barking and stuff. I'll have to try later.


One thing i really enjoy doing is using control-z on the terminal i started the qemu session in. It's fun suspending the whole windows session, then restarting with fg. It's the most control I've ever had over windows.

Last edited by whansard; 02-24-2005 at 08:52 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
QEmu mtecknology Linux - Software 5 09-14-2007 05:30 AM
qemu paul_mat Linux - General 3 12-09-2005 12:48 PM
qemu gaah Linux - Newbie 6 10-19-2005 05:22 AM
qemu RySk8er30 Linux - Software 1 06-01-2005 07:23 PM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration