LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-07-2020, 08:00 AM   #1
kats99
LQ Newbie
 
Registered: Oct 2019
Location: Manipal
Distribution: Slackware 15.0, OpenBSD, Ubuntu
Posts: 26
Blog Entries: 2

Rep: Reputation: Disabled
Windows 98 setup internet in QEMU


Title says it all. I need to setup an internet connection in Windows 98 which is running inside QEMU

qemu command
Code:
qemu-system-i386 -m 512 -boot d -smp 1 -net nic -net user,hostfwd=tcp::1234-:22 -vga cirrus -hda window.img -netdev user,id=user.0 -device rtl8139,netdev=user.0 -soundhw all
How do I do it?
 
Old 06-07-2020, 08:58 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Win98 First Edition or Win98 SE?
 
Old 06-07-2020, 09:19 AM   #3
kats99
LQ Newbie
 
Registered: Oct 2019
Location: Manipal
Distribution: Slackware 15.0, OpenBSD, Ubuntu
Posts: 26

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Win98 SE
 
Old 06-07-2020, 05:31 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
Windows 98 setup internet in QEMU

Personally, I'd keep any version of Windows from before 2015 as far away from the internet as possible...

What exactly are you trying to achieve? Whatever it is, I'm sure there must be a better way!
 
Old 06-07-2020, 09:17 PM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Since 22-years-old Windows skills are unlikely to be too developed, or too fresh, in this Linux community, perhaps we should turn the question around. When you use this command line, what is it that doesn't work?

One problem might be the network device. I have no idea what devices are supported by Win98, though RTL8139 is reasonably old, it seems.

I found this: https://resources.infosecinstitute.c...st-networking/. However, I doubt that you can use virtio on Windows 98. Still worth a try, I guess.
 
Old 06-07-2020, 09:51 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I have some software I need keep XP for - a couple of years ago I tried to move it to both KVM and Hyper-V. Various bits and pieces couldn't be made to work - e.g. the headphone mike. I kept the physical machine in the end - hardly ever gets turned on.
It has no access to the network, and I had no plans for it as a guest either, so I can't help with the initial query.
 
Old 06-08-2020, 03:58 AM   #7
kats99
LQ Newbie
 
Registered: Oct 2019
Location: Manipal
Distribution: Slackware 15.0, OpenBSD, Ubuntu
Posts: 26

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Looks like I will not be able to use the internet. It's just for fun. I was bored so felt like sending an email in Win98
 
Old 06-08-2020, 02:48 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
Qemu has been able to run Windows 98 since day one.

It's how you set up nic in qemu that's the problem.

https://ubuntuforums.org/showthread.php?t=774745
 
1 members found this post helpful.
Old 10-31-2020, 11:29 AM   #9
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
I finally got it set up....
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2020-10-31_07-21-35.jpg
Views:	396
Size:	97.6 KB
ID:	34439  
 
Old 06-04-2021, 08:11 PM   #10
AveryAndrews
LQ Newbie
 
Registered: Jun 2021
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
Personally, I'd keep any version of Windows from before 2015 as far away from the internet as possible...

What exactly are you trying to achieve? Whatever it is, I'm sure there must be a better way!
The most likely reason that anyone would want to do this is that Virtualbox doesn't work properly with Win98 anymore, and qemu appears to have no 'just works' solution to getting info in and out of a win98 vm (e.g. -mnt <hostfilepath> <guestfilepath>), so that the ignorant hopeful user flails around amongst mostly no-longer functional recipes which involve networking (samba, etc) in some way or other.
 
Old 06-05-2021, 02:55 AM   #11
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
Quote:
Originally Posted by AveryAndrews View Post
The most likely reason that anyone would want to do this is that Virtualbox doesn't work properly with Win98 anymore, and qemu appears to have no 'just works' solution to getting info in and out of a win98 vm (e.g. -mnt <hostfilepath> <guestfilepath>), so that the ignorant hopeful user flails around amongst mostly no-longer functional recipes which involve networking (samba, etc) in some way or other.
1. Win98 works just fine in VirtualBox. It's not officially supported, but it does work quite well... Um, that is to say, that Win98 works as well under VBox as Win98 is capable of "working" (i.e. not very).

2. Windows 98 only supports old SAMBA protocols. You need to configure your SAMBA server to allow the use of those protocols. They've been disabled by default for the past few years, because they're not very secure.

3. What info could you possibly have in a Win98 VM that you absolutely must get out?

Last edited by rkelsen; 06-05-2021 at 03:08 AM.
 
Old 06-06-2021, 03:52 PM   #12
AveryAndrews
LQ Newbie
 
Registered: Jun 2021
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
1. Win98 works just fine in VirtualBox. It's not officially supported, but it does work quite well... Um, that is to say, that Win98 works as well under VBox as Win98 is capable of "working" (i.e. not very).

2. Windows 98 only supports old SAMBA protocols. You need to configure your SAMBA server to allow the use of those protocols. They've been disabled by default for the past few years, because they're not very secure.

3. What info could you possibly have in a Win98 VM that you absolutely must get out?
1. In my experience, it doesn't (and there are innumerable internet discussions indicating that my experience is not unique).

2. Like you say, connecting Win98 to networking is surely an unsafe practice

3. Old business records and family tree information collected by relatives in the 90s are two reasonably compelling motivations.

The easy solution for getting info into qemu-Win98 is to burn it to virtual .iso's and mount them (reasonably obvious), to get it out, shut down the machine, convert the .qcow2 file to .vdi (very fast), and browse that with 7zip and extract whatever you need (maybe less obvious). Floppy disk images might be another possibility, but that also seems to be a maze of abandonware that doesn't quite work anymore, so why bother?

Last edited by AveryAndrews; 06-06-2021 at 03:56 PM.
 
1 members found this post helpful.
Old 06-06-2021, 05:19 PM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
Quote:
Originally Posted by AveryAndrews View Post
1. In my experience, it doesn't
It certainly does. After reading your post the other day, I got curious and tried it yesterday. I'm here to tell you: It absolutely does work. Proof attached.

There were some "hoops" to jump through, but I was able to get it working fairly quickly in 1024x768 with True Colour enabled. Geez it was garbage.

What trouble have you had installing it? Virtual box's default settings for Win98 will get it working, but you'll have to tweak them if you want things like better resolution.

Once it's installed, you can put an FTP server on it and grab whatever you like. This is a whole lot easier than trying to set up networking or USB.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20210607_091505.jpg
Views:	116
Size:	199.2 KB
ID:	36540  

Last edited by rkelsen; 06-06-2021 at 06:59 PM.
 
1 members found this post helpful.
Old 06-06-2021, 05:54 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,715

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
I was also curious and also installed it as a VirtualBox VM. I have not tried changing video resolutions yet but yes it works ok. Anyone's experience would depend on how you use it.
I have installed DOS 6.22 as well as Red Hat 9 in VB just for fun and they worked as expected.

Playing games or browsing the internet using Internet Explorer would probably be futile. 98 has a ftp client installed by default so easy to copy files as well as using a virtual floppy or CD disk to import files to the VM. Although really slow you could print to an Epson 9 pin like printer using a serial port and pipe it to a file on your host.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
Error while installing qemu (qemu-kvm-0.13.0) in rhel 5.3 birla.sunil Linux - Virtualization and Cloud 2 10-19-2010 03:56 AM
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM
After qemu-img, qemu is not capable to detect the C drive (empty) frenchn00b Linux - General 3 10-18-2009 05:39 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:58 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