Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Mini HowTo - installing windows 98 on qemu

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
19 posts • Page 1 of 1
Author
Message
kadu
Apprentice
Apprentice
User avatar
Posts: 267
Joined: Sun Oct 09, 2005 10:32 am

Mini HowTo - installing windows 98 on qemu

  • Quote

Post by kadu » Wed Nov 09, 2005 9:26 pm

1. Installation guest
At first we should install qemu :D

Code: Select all

emerge qemu
.
When qemu is masked you have to unmask it :) . If you don't know how to do that read about unmasking in gentoo handbook. Now we must create new virtual disk.

Code: Select all

qemu-img create disk.img 5G
disk.img - name of your virtual disk
5G - size of your virtual disk (in gigabytes)
When we created virtual disk, we can start the system :D. We can boot it from hard disk or from CD
a)Booting from CD

Code: Select all

qemu -hda disk.img -cdrom /dev/cdrom -boot d
b)Booting from hard disk

Code: Select all

qemu -hda disk.img -cdrom system.iso -boot d
System.iso is image of your Windows 98
----------------------------------------------------------------------------------------------------------------
You should see windows 98 installer. Then you install windows(it lasts 30 - 60 min). I think it's very simple :twisted:
3.Running win 98

Code: Select all

qemu -user-net -enable-audio -localtime -m 192 -hda dysk.img -cdrom /dev/cdrom -smb share -boot c
-user-net ->creates firewall and give premission to using internet by windows 98
-m 192 -> creates ramdisk for windows98
-localtime -> win98 will be using localtime
-smb share -> you can give permission to share files in samba, which can be used by Windows
-boot c ->start from hard disk
Enjoy :twisted:
Here is my screenshot
Image
:*
Top
Dizzutch
Guru
Guru
User avatar
Posts: 463
Joined: Tue Nov 09, 2004 8:29 pm
Location: Worcester, MA
Contact:
Contact Dizzutch
Website

  • Quote

Post by Dizzutch » Wed Nov 09, 2005 9:33 pm

have you tested it with any other versions of windows? ie 2000 or XP?
Top
kadu
Apprentice
Apprentice
User avatar
Posts: 267
Joined: Sun Oct 09, 2005 10:32 am

  • Quote

Post by kadu » Wed Nov 09, 2005 9:49 pm

I've tested it on win XP. It' was running correctly :)
:*
Top
Dizzutch
Guru
Guru
User avatar
Posts: 463
Joined: Tue Nov 09, 2004 8:29 pm
Location: Worcester, MA
Contact:
Contact Dizzutch
Website

  • Quote

Post by Dizzutch » Thu Nov 10, 2005 1:14 am

hrmm, it won't boot my win2k CDrom

Code: Select all

ata0 master: QEMU HARDDISK ATA-2 Hard-Disk (5120 MBytes)
ata0  slave: Unknown device
ata1 master: QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom
ata1  slave: Unknown device

CDROM boot failure code : 0004
Boot from CD-Rom failed
FATAL: Could not read the boot disk
i ran it with

Code: Select all

qemu -hda disk.img -cdrom /dev/hdc -boot d
ever seen that before? the CD boots fine, could it be that all the files on the CD are in capital letters when I mount it?
Thanks
-Dizz
Top
someguy
Guru
Guru
Posts: 433
Joined: Thu Jul 10, 2003 2:13 am
Location: (-_-) .::OH_WELL::. (-_-)

  • Quote

Post by someguy » Thu Nov 10, 2005 4:12 am

stupid win98 needin boot floppy .... :-/
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Top
kadu
Apprentice
Apprentice
User avatar
Posts: 267
Joined: Sun Oct 09, 2005 10:32 am

  • Quote

Post by kadu » Thu Nov 10, 2005 6:51 am

We have 2 versions of windows 98 SE. First is needing boot from floppy and second is needing boot only from cdrom.
:*
Top
someguy
Guru
Guru
Posts: 433
Joined: Thu Jul 10, 2003 2:13 am
Location: (-_-) .::OH_WELL::. (-_-)

  • Quote

Post by someguy » Thu Nov 10, 2005 6:57 am

i must have the crap one :-/
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Top
leon_73
Guru
Guru
User avatar
Posts: 505
Joined: Thu Mar 13, 2003 2:08 pm
Location: Milano

Re: Mini HowTo - installing windows 98 on qemu

  • Quote

Post by leon_73 » Thu Nov 10, 2005 10:33 am

kadu wrote:3.Running win 98

Code: Select all

qemu -user-net -enable-audio -localtime -m 192 -hda dysk.img -cdrom /dev/cdrom -smb share -boot c
-user-net ->creates firewall and give premission to using internet by windows 98
-m 192 -> creates ramdisk for windows98
-localtime -> win98 will be using localtime
-smb share -> you can give permission to share files in samba, which can be used by Windows
-boot c ->start from hard disk
Hi Kadu,

I'd like to know if it works also the audio part for you? I cannot find any audio device :-(

Leo
Top
artworcs
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 126
Joined: Sun Jun 12, 2005 8:38 pm

  • Quote

Post by artworcs » Thu Nov 10, 2005 12:55 pm

Using the guide from qemu website, i managed to get win2k installed and working great.
Top
leon_73
Guru
Guru
User avatar
Posts: 505
Joined: Thu Mar 13, 2003 2:08 pm
Location: Milano

Re: Mini HowTo - installing windows 98 on qemu

  • Quote

Post by leon_73 » Thu Nov 10, 2005 5:23 pm

leon_73 wrote:
kadu wrote:3.Running win 98

Code: Select all

qemu -user-net -enable-audio -localtime -m 192 -hda dysk.img -cdrom /dev/cdrom -smb share -boot c
-user-net ->creates firewall and give premission to using internet by windows 98
-m 192 -> creates ramdisk for windows98
-localtime -> win98 will be using localtime
-smb share -> you can give permission to share files in samba, which can be used by Windows
-boot c ->start from hard disk
Hi Kadu,

I'd like to know if it works also the audio part for you? I cannot find any audio device :-(

Leo
what a dum... I forgot to search for no-pnp hw ;-P

now it works :-)
Top
blackwhite
Apprentice
Apprentice
Posts: 250
Joined: Thu Jun 24, 2004 7:34 pm

  • Quote

Post by blackwhite » Thu Nov 10, 2005 7:33 pm

Great work, Thanks.
Top
jamiethehutt
n00b
n00b
User avatar
Posts: 66
Joined: Mon Oct 04, 2004 11:23 am
Location: Scotland!
Contact:
Contact jamiethehutt
Website

  • Quote

Post by jamiethehutt » Fri Nov 11, 2005 5:24 pm

QEMU rocks. Nice howto, kadu. :D

It's worth knowing/remembering QEMU can also boot from ISO files, so it makes it pretty good for playing with new OS.
"Someday, he thought, it'll be mandatory that we all sell the McDonald's hamburger as well as buy it; we'll sell it back and forth to each other forever from our living rooms. That way we won't even have to go outside." - A Scanner Darkly By PK Dick
Top
kadu
Apprentice
Apprentice
User avatar
Posts: 267
Joined: Sun Oct 09, 2005 10:32 am

  • Quote

Post by kadu » Fri Nov 11, 2005 8:27 pm

thanks :)
:*
Top
steelrose
Apprentice
Apprentice
User avatar
Posts: 245
Joined: Mon May 06, 2002 5:28 pm
Location: Cyprus

  • Quote

Post by steelrose » Sun Nov 13, 2005 8:19 am

Hi.I try this on win xp but cannot get it to work.When i run the following command i get this error :

Code: Select all

qemu -hda disk.img -cdrom WindowsXP.iso -boot d
error:

Code: Select all

qemu: could not open hard disk image 'disk.img'
making disk image gives me :

Code: Select all

qemu-img create disk.img 5G
Formating 'disk.img', fmt=raw, size=5242880 kB
Anyone to give a how to or solution for Xp?
Hey.I am new to Linux and i will ask some stupid questions sometimes so please don't get angry with me and help
Top
psotnik
Apprentice
Apprentice
User avatar
Posts: 248
Joined: Sat Nov 12, 2005 2:26 pm
Location: /world/poland/Cracow

  • Quote

Post by psotnik » Tue Jan 03, 2006 4:03 pm

Hi, how I can solve this problem?
qemu -localtime -user-net -hda hd.img -boot d -user-net
qemu: invalid option -- '-user-net'
I have emerged
USE="softmmu " ACCEPT_KEYWORDS="~x86" emerge qemu
Next
dd of=hd.img bs=1024 seek=3000000 count=0
Now I wont boot XP

Code: Select all

qemu -localtime -user-net -cdrom /dev/cdrom -hda hd.img -boot d
Without parameter --user-net it's work but I can't run network under XP. Any suggestions?
psotnik
:]
Top
Gotterdammerung
l33t
l33t
User avatar
Posts: 627
Joined: Wed Feb 11, 2004 1:42 pm
Location: Rio de Janeiro, Brazil
Contact:
Contact Gotterdammerung
Website

  • Quote

Post by Gotterdammerung » Wed Jan 11, 2006 5:15 pm

Have anyone tried to synchronize a handheld with Windows on QEMU using USB interface?
A mind that is stretched by a new experience can never go back to its old dimensions. - Oliver Wendell Holmes
Top
FastTurtle
Guru
Guru
Posts: 547
Joined: Tue Sep 03, 2002 4:01 pm
Location: Flakey Shake & Bake Caliornia, USA

  • Quote

Post by FastTurtle » Wed Aug 02, 2006 2:22 am

Has Anyone figured out how to install either 95 or 98 using boot floppy method?

I happen to have both and want to setup test installs for a couple of windows games w/o wine support.
AsRock Rack Rome8-2t
AMD Epyc 7282 CPU
192GB of ECC memory
Top
thumper
Guru
Guru
User avatar
Posts: 555
Joined: Fri Dec 06, 2002 2:58 am
Location: Venice FL

  • Quote

Post by thumper » Sun Aug 06, 2006 8:53 pm

I followed the instructions but used a Bootable CD with DOS on it and formatted C: manually copied the setup files to a directory on C: and installed from there.

You may be able to do the same by booting from /dev/fd0 with you 95/98 boot floppy.

George
Top
Phenax
l33t
l33t
User avatar
Posts: 972
Joined: Fri Mar 10, 2006 8:12 pm

  • Quote

Post by Phenax » Mon Aug 07, 2006 12:45 am

http://img454.imageshack.us/img454/8232 ... detyw2.jpg
hehehee
Top
Post Reply

19 posts • Page 1 of 1

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic