Time Of Last Change:2011.02.12 13:50:05 / Time On Server:2012.02.04 21:26:53
Using QEMU with Win98
Using Debian Unstable I first installed qemu 0.6.1 using dselect,
it worked fine for installing Win98, but I could not get network up.
After many hours I gave up and found binary qemu-0.7.0-i386.tar.gz at QEMU homepage, and it works.
A lot of help is available in QEMU forums:
Starting QEMU
I use the following script:
#!/bin/sh
imgboot=/home/tsj/QEMU-win98boot.img
img=/home/tsj/QEMU-win98.img
# Create image
# qemu-img create -f raw $img 1G
# Get info about image
# qemu-img info $img
# DOS fdisk + format
# qemu -user-net -boot a -fda $imgboot -hda $img
# Win98 setup
# qemu -user-net -cdrom /dev/cdrom -boot a -fda $imgboot -hda $img
# Win98
cd="-cdrom /dev/hdc"
usernet=-user-net
# tunnet=-n ~/bin/QEMU-ifup.sh
# smb="-smb ~/bin/QEMU-smb"
# smb="-smb /tmp"
# smb="-smb tmp"
parm="qemu $smb $usernet $tunnet $cd -boot c -hda $img"
echo $parm
$parm
# $smb $usernet $tunnet -pci $cd -boot c -hda $img
# qemu -nographic -hda /home/tsj/bin/emu/linux.img -kernel /home/tsj/bin/emu/bzImage-2.4.21 -append "console=ttyS0 root=/dev/hda sb=0x220,5,1,5 ide2=noprobe ide3=noprobe ide4=noprobe ide5=noprobe"
# qemu -pci -cdrom /dev/cdrom -boot c -hda $img
# qemu -n /etc/qemu-ifup -cdrom /dev/cdrom -boot c -hda $img
How to activate tun network support
You may also need to install uml-utilities to get tunctl, but I do not currently use it.
- chgrp users /dev/net/tun
- chmod g+w /dev/net/tun
- chmod 666 /dev/net/tun
- mkdir -p /dev/net
- mknod /dev/net/tun c 10 200
- modprobe tun
- echo 'tun' >> /etc/modules
Installing Win98 - 5 May 2005
- - Create new image QEMU-win98.img of size 1GB
- - Boot using boot image QEMU-win98boot.img (copy of original boot diskette)
- - Fdisk, create primary C partition
- - Format C drive, label WIN98
- - Install using boot image and CD in E drive (/dev/cdrom)
- - Select compact install
- - Name: Swamp Thing
- - Location: Denmark
- - Skip creating start diskette
- - Computer name: QEMU98
- - Workgroup: TSJ
- - Desc: SWAMP THING
- - Timezone Copenhagen
- - No password at logon
- - Desktop/Arrange Icons/Auto Arrange
- - Display setttings 1024x768/32bit
- - Network - set Primary Network Logon to Windows Logon
- - Network - File and Print Sharing - Both on
- - Network - TCP/IP Gateway 192.168.1.1
- - Use winipcfg to check IP address, got 169.254.65.91 / 255.255.0.0
- ???
- - Removing all additinal components
- - REBOOT
- - Windows Update - MSIE6sp1
- - Windows Update - DirectX 9.0b
- - Windows Update - Critical Updates (11)
- - REBOOT
- - Add Scheduled Task - Disk Cleanup at system startup
- - REBOOT
- - We now have ip addr 192.168.224.128
- - 355MB
Tips
- net view \\server
- winipcfg
- ipconfig /all

Web-server Apache/2.2.16 (Debian)
Document code? Why do you think they call it 'code'?