copy / v86

x86 PC emulator and x86-to-wasm JIT, running in the browser
https://copy.sh/v86/
BSD 2-Clause "Simplified" License
19.71k stars 1.39k forks source link

no internet in windows xp #1131

Closed 100tomer closed 1 month ago

100tomer commented 2 months ago

Hi! I followed the instruction in the windows-xp.md file and it seems there is not network inside the windows xp. Any help will be much appreciated

SuperMaxusa commented 2 months ago

Does networking work on QEMU with -nic user,model=ne2k_pci?

FunnyCorgi commented 2 months ago

@SuperMaxusa @100tomer I just got my winxp instance setup, I will test this theory.

FunnyCorgi commented 2 months ago

qemu networking does not work with this option.

FunnyCorgi commented 2 months ago

I don't know how to get winxp internet working either.

SuperMaxusa commented 1 month ago

Works for me on SP2-3 in QEMU and v86. Can you check Device Manager (Win + R -> devmgmt.msc)? There should be a device "Realtek RTL8029(AS)" as in the screenshot, if not - try to add with Add Hardware Wizard in the Control Panel or install this driver: https://github.com/copy/v86/issues/392#issuecomment-1402659862

ne2k-wxp

FunnyCorgi commented 1 month ago

So your saying I need to use this driver as mentioned in the post?

FunnyCorgi commented 1 month ago

@SuperMaxusa but the realtek thing shows up in both qemu and v86(wait actually checking right now will report back in about five minutes)

FunnyCorgi commented 1 month ago

Also, i only made an administrator account, and not a user account. Should that matter?

SuperMaxusa commented 1 month ago

So your saying I need to use this driver as mentioned in the post?

It is a "out-of-the-box" driver in Windows XP, I leave a driver for 2000, if your system didn't find/install it.

Also, i only made an administrator account, and not a user account. Should that matter?

Likely no, I have tested with local and Administrator accounts too.

FunnyCorgi commented 1 month ago

It detects it(I checked this morning in v86) but it is unable to ping google because DNS failed. DOes this mean I should install the driver?

SuperMaxusa commented 1 month ago

but it is unable to ping google because DNS failed.

Is it on v86 or QEMU? If on v86, are you using the default proxy or fetch-based networking?

FunnyCorgi commented 1 month ago

Do I need debug.html for that? because I am using the wss:// relay proxy

FunnyCorgi commented 1 month ago

Confirmed, it shows up. Here is my v86 screenshot of the device manager: download

FunnyCorgi commented 1 month ago

Other devices are there because I canceled the install requests for those and haven't rebooted yet.

FunnyCorgi commented 1 month ago

I will try running it in qemu now and see if I get the same result. I also will try the driver as well.

SuperMaxusa commented 1 month ago

but it is unable to ping google because DNS failed.

Is ping 8.8.8.8 works for you?

Do I need debug.html for that?

No, not needed.

Also check ipconfig /all, if the networking settings are correct, this should give IP address of your VM and DNS server 10.5.0.1 (on v86 with default proxy).

FunnyCorgi commented 1 month ago

ok will try that.

FunnyCorgi commented 1 month ago

Got this: download

FunnyCorgi commented 1 month ago

wait here is the ipconfig command output hold on

FunnyCorgi commented 1 month ago

download

FunnyCorgi commented 1 month ago

Should I try renewing them with ipconfig /renew all or ipconfig /renew *? And if so should I ipconfig /release * first?

SuperMaxusa commented 1 month ago

Yes, try ipconfig /release * and ipconfig /renew *, seems that your system doesn't get an IP address from DHCP server. Have you had any errors in the browser console?

FunnyCorgi commented 1 month ago

I can't really check for errors because I am using a managed system right now, but I will check on a vm.

100tomer commented 1 month ago

For me I got ping working but internet explorer isn't working. I'll check the driver name

100tomer commented 1 month ago

I see the Realltek drive in device managment and also ping is fully working. my dsn servers, dhcp server and gateway is 10.5.0.1. It seems that something is just broken with internet explorer

100tomer commented 1 month ago

I just noticed you have mozila browser, did it come with the xp? because I'm stuck with Explorer that does not work, and can't figure out how to download anything without it working

SuperMaxusa commented 1 month ago

It seems that something is just broken with internet explorer

Do sites like google.com, frogfind.com, example.com and theoldnet.com work in your Internet Explorer?

I just noticed you have mozila browser, did it come with the xp?

No, I downloaded my Firefox 29 (for Windows XP SP2+) from https://ftp.mozilla.org/pub/firefox/releases/ on my host machine, then created ISO with the installer and mount this image to QEMU.

100tomer commented 1 month ago

It seems that something is just broken with internet explorer

Do sites like google.com, frogfind.com, example.com and theoldnet.com work in your Internet Explorer?

I just noticed you have mozila browser, did it come with the xp?

No, I downloaded my Firefox 29 (for Windows XP SP2+) from https://ftp.mozilla.org/pub/firefox/releases/ on my host machine, then created ISO with the installer and mount this image to QEMU.

So all the websites you mentions are not working via internet explorer but I can ping them.

And about mozila sounds cool but I don't know how to do this. Is it the solution ? or is the internet explorer suppost to work?

SuperMaxusa commented 1 month ago

So all the websites you mentions are not working via internet explorer but I can ping them.

On QEMU too?

And about mozila sounds cool but I don't know how to do this. Is it the solution ?

Not sure if ftp.mozilla.org can be opened with IE but worth checking. Also here are easiest ways for transfer files from host to guest OS in QEMU: https://wiki.archlinux.org/title/QEMU#QEMU's_built-in_SMB_server, https://www.qemu.org/docs/master/system/qemu-block-drivers.html#virtual-fat-disk-images

I might test some websites in IE 6 too

100tomer commented 1 month ago

I don't know how to use qemu yet, so I just checking it out. I managed to run the same windows xp image using qemu cli tool locally on my computer. Internet explorer is not working there too, I tried to mount the firefox.exe as a cd drive using the UI but windows says it's not formatted or something

FunnyCorgi commented 1 month ago

use ImgBurn for the image(if using wine, use windows xp in winecfg) or here is my image: https://drive.google.com/file/d/1Wn7ziWeMoH9cqJo7GFcRX8o0kbd11we3/view?usp=sharing Use this command: qemu-system-x86_64 -smp 2 -m 2G -drive file=winxp.img,format=raw -cdrom firefoxsetup\ foldercdrom.iso

FunnyCorgi commented 1 month ago

also @SuperMaxusa there were no errors in the console with ipconfig, forgot to try ping, but doing now, and I still didn't connect and get an IP or dns

100tomer commented 1 month ago

use ImgBurn for the image(if using wine, use windows xp in winecfg) or here is my image: https://drive.google.com/file/d/1Wn7ziWeMoH9cqJo7GFcRX8o0kbd11we3/view?usp=sharing Use this command: qemu-system-x86_64 -smp 2 -m 2G -drive file=winxp.img,format=raw -cdrom firefoxsetup\ foldercdrom.iso

Cool thanks now I can see the installation in windows xp, I'll update you if it's working. How do I save it to .img file after I install the firefox?

FunnyCorgi commented 1 month ago

if you are using qemu, the .img file should be in the location of the argument here: -drive file=winxp.img

FunnyCorgi commented 1 month ago

If using v86, you have to save the state of the machine.

FunnyCorgi commented 1 month ago

@SuperMaxusa it still gives destination host unreachable

100tomer commented 1 month ago

If using v86, you have to save the state of the machine.

Yeah I meant how to save it after I ran it and installed the firefox. Is it make sense the firefox isn't working on windows xp that runs locally using the qemu as well? I used qemu-system-x86_64 -smp 2 -m 2G -drive file=winxp.img,format=raw -cdrom firefoxsetup\ foldercdrom.iso command to run it

FunnyCorgi commented 1 month ago

then the image it is saved in is that winxp.img. QEMU always saves changes to whatever drive images it uses.

100tomer commented 1 month ago

then the image it is saved in is that winxp.img. QEMU always saves changes to whatever drive images it uses.

Oh I didn't know this

FunnyCorgi commented 1 month ago

The firefox takes a long time to launch, just let it load.

100tomer commented 1 month ago

The firefox takes a long time to launch, just let it load.

it says "server not found" does it still loading the website? also is there a imgBurn alternative for mac to create iso from a file?

FunnyCorgi commented 1 month ago

it says "server not found" does it still loading the website?

That is the DNS not resolving the website IP, it is part of the internet not working that we are working on fixing in this issue

also is there a imgBurn alternative for mac to create iso from a file?

i don't think so? try wine with windows xp as the windows version in applications section after running imgburn installer(change it after running the installer), and then launch it, also make sure to use the files/folders to disc image option in the imgburn menu

FunnyCorgi commented 1 month ago

of course, make sure to install the winehq package in macos

FunnyCorgi commented 1 month ago

i believe https://www.embird.net/sw/embird/tutorial/wine/wine.htm should help for macos

FunnyCorgi commented 1 month ago

to change winecfg run the command wine winecfg

SuperMaxusa commented 1 month ago

it still gives destination host unreachable

Is nslookup example.com also gives errors?

also is there a imgBurn alternative for mac to create iso from a file?

See https://www.petenetlive.com/KB/Article/0001554

FunnyCorgi commented 1 month ago

it still gives destination host unreachable

Is nslookup example.com also gives errors?

I'll try that

FunnyCorgi commented 1 month ago

nslookup didn't work. download

FunnyCorgi commented 1 month ago

@SuperMaxusa what should me and @100tomer try next to fix this?

SuperMaxusa commented 1 month ago

Let's summarize what we have at the moment:

About not working DNS or/and DHCP:

xp-dns

About not working sites in IE:

xp-web