Re: [Freedos-user] Is networking unsupported on QEMU? Pilot error suspected.

2024-01-02 Thread andrew fabbro via Freedos-user
On Tue, Jan 2, 2024 at 8:14 AM Lukáš Kotek via Freedos-user <
freedos-user@lists.sourceforge.net> wrote:

>
> -device pcnet,netdev=id1 -netdev user,id=id1
>
> It just works for me with no other tweaks necessary. The difference is
> actually only in syntax. Using -net is deprecated for some time, but
> IIRC it should still work. I wonder if it can be relevant here.
>

Thanks Lukas!  This didn't change the boot experience but also works.  I'll
dig into these options.

-- 
andrew fabbro
and...@fabbro.org
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Is networking unsupported on QEMU? Pilot error suspected.

2024-01-02 Thread Lukáš Kotek via Freedos-user

Dne 27. 12. 23 v 19:04 andrew fabbro via Freedos-user napsal(a):

Greetings!

I'm a bit perplexed trying to get networking working for FreeDOS 1.3 on
QEMU.  My physical host is an M1 Mac (Apple Silicon).

FreeDOS installs and boots fine, but I get this message:

 QEMU network detected.
 Physical hardware networking is not supported at this time.

Here is my QEMU invocation:

qemu-system-i386 -boot order=cd -m 32M -k en-us -name FreeDOS1 -cdrom
FD13BNS.iso -drive FreeDOS1.img,format=raw,media=disk -net nic,model=pcnet
-net user

I've also tried model=ne2k_pci, model=e1000, etc.  Also tried similar setup
in UTM, which is a graphical front end for QEMU.

But looking at FreeDOS's startup scripts, I'm thinking maybe QEMU
networking is not supported...?

At line 84 of FDAUTO.BAT, "%dosdir%\bin\fdnet.bat start" is called.
Looking at fdnet.bat, at line 92, "vinfo /m" is executed.  When I execute
this myself at the command line, errorlevel is set to 102.  In fdnet.bat,
this branches to a label called NoAutoQEMU on line 109.  There, since %1 is
"start" there's a goto NoStartQEMU.  That gives the "QEMU network detected"
message.  Then there's a goto NoHardware, which gives the "Physical
networking is not supported at this time" and end.

So is networking under QEMU completely unsupported?

Strangely, I found this forum post in which someone has it working just
fine, so I'm thinking that maybe I'm doing something wrong?

https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/freedos-in-qemu-no-internet-connection-4175638386/



Hi Andrew,

I use QEMU 8.2 on Fedora 39, my network-related setup looks as follows:

-device pcnet,netdev=id1 -netdev user,id=id1

It just works for me with no other tweaks necessary. The difference is 
actually only in syntax. Using -net is deprecated for some time, but 
IIRC it should still work. I wonder if it can be relevant here.


Best regards,
Lukas



___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user




___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Is networking unsupported on QEMU? Pilot error suspected.

2023-12-29 Thread andrew fabbro via Freedos-user
On Fri, Dec 29, 2023 at 1:54 PM Jerome Shidel via Freedos-user <
freedos-user@lists.sourceforge.net> wrote:

> When the default “start” option is provided, FDNET will only attempt to
> start networking support under VirtualBox and VMware. On real hardware and
> other virtual platforms, it will just provide that error message and exit.
>
> The reason for this is simple. It is known to work under those virtual
> machines with the available open source drivers (by various authors) which
> included with the FDNET package.
>

OK, that makes sense.  I thought it was misinterpreting something (as I'm
not running a physical system) or I needed a different QEMU invocation.

I did get networking up and running under QEMU.  After running PCNTPK after
boot, it worked fine:

C:\NET\FDNET\pcntpk int=0x60
C:\NET\FDNET\dhcp

At that point, everything worked fine TCP/IP-wise.  I think I'll add
something like "call C:\LOCAL.BAT" to :End in FDAUTO.BAT and then put my
local startup customizations there to avoid changing the dist FDAUTO.BAT
too much.

Thanks much!
--
andrew fabbro
and...@fabbro.org
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Is networking unsupported on QEMU? Pilot error suspected.

2023-12-29 Thread Rugxulo via Freedos-user
Hi,

On Wed, Dec 27, 2023 at 1:05 PM andrew fabbro via Freedos-user
 wrote:
>
> I'm a bit perplexed trying to get networking working for FreeDOS 1.3 on QEMU. 
>  My physical host is an M1 Mac (Apple Silicon).

Which version of QEMU? 8.2?

> FreeDOS installs and boots fine, but I get this message:
>
> QEMU network detected.
> Physical hardware networking is not supported at this time.
>
> Here is my QEMU invocation:
>
> qemu-system-i386 -boot order=cd -m 32M -k en-us -name FreeDOS1 -cdrom 
> FD13BNS.iso -drive FreeDOS1.img,format=raw,media=disk -net nic,model=pcnet 
> -net user
>
> I've also tried model=ne2k_pci, model=e1000, etc.  Also tried similar setup 
> in UTM, which is a graphical front end for QEMU.
>
> But looking at FreeDOS's startup scripts, I'm thinking maybe QEMU networking 
> is not supported...?

QEMU should work (but I haven't tried lately):

* 
https://gitlab.com/FreeDOS/net/fdnet/-/blob/master/BIN/FDNET.BAT?ref_type=heads

> So is networking under QEMU completely unsupported?
>
> Strangely, I found this forum post in which someone has it working just fine, 
> so I'm thinking that maybe I'm doing something wrong?

It should work. Try MetaDOS!

* 
https://drive.google.com/file/d/1-sleTc26Qi8drmn5OPIsp8_SegSz0hTd/view?usp=sharing
* 
https://drive.google.com/file/d/1-lFX0Z--zXbMS03TqT01bWMOLZmsnmXN/view?usp=sharing


___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Is networking unsupported on QEMU? Pilot error suspected.

2023-12-29 Thread Jerome Shidel via Freedos-user
Hi,

> On Dec 27, 2023, at 1:04 PM, andrew fabbro via Freedos-user 
>  wrote:
> 
> Greetings!
> 
> I'm a bit perplexed trying to get networking working for FreeDOS 1.3 on QEMU. 
>  My physical host is an M1 Mac (Apple Silicon).
> 
> FreeDOS installs and boots fine, but I get this message:
> 
> QEMU network detected.
> Physical hardware networking is not supported at this time.
> 
> Here is my QEMU invocation:
> 
> qemu-system-i386 -boot order=cd -m 32M -k en-us -name FreeDOS1 -cdrom 
> FD13BNS.iso -drive FreeDOS1.img,format=raw,media=disk -net nic,model=pcnet 
> -net user
> 
> I've also tried model=ne2k_pci, model=e1000, etc.  Also tried similar setup 
> in UTM, which is a graphical front end for QEMU.
> 
> But looking at FreeDOS's startup scripts, I'm thinking maybe QEMU networking 
> is not supported...?
> 
> At line 84 of FDAUTO.BAT, "%dosdir%\bin\fdnet.bat start" is called.  Looking 
> at fdnet.bat, at line 92, "vinfo /m" is executed.  When I execute this myself 
> at the command line, errorlevel is set to 102.  In fdnet.bat, this branches 
> to a label called NoAutoQEMU on line 109.  There, since %1 is "start" there's 
> a goto NoStartQEMU.  That gives the "QEMU network detected" message.  Then 
> there's a goto NoHardware, which gives the "Physical networking is not 
> supported at this time" and end.

Although I am not looking at the batch at present, that sounds about right. 

When the default “start” option is provided, FDNET will only attempt to start 
networking support under VirtualBox and VMware. On real hardware and other 
virtual platforms, it will just provide that error message and exit. 

The reason for this is simple. It is known to work under those virtual machines 
with the available open source drivers (by various authors) which included with 
the FDNET package. 

It’s been a few years. However, I think I also provided a “try” option which 
will try anyway.

It also supports custom initialization batch files that could be simply dropped 
into it’s directory for other hardware and proprietary drivers. That can 
alleviate the requirement of modifying the FDAUTO.BAT every time a OS install 
is performed. 

> So is networking under QEMU completely unsupported?

Mostly, it comes down to time and resource constraints. QEMU is more 
customizable than other Virtual Platforms and would most likely require more 
testing and inclusion of instructions on how to make it work.

> Strangely, I found this forum post in which someone has it working just fine, 
> so I'm thinking that maybe I'm doing something wrong?
> 
> https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/freedos-in-qemu-no-internet-connection-4175638386/
>  
> 

FDNET works well enough for it’s intended purpose. At least for the foreseeable 
future, I cannot devote the time needed for supporting other platforms. 

It would be great for someone knowledgeable in DOS networking to adopt FDNET 
and give it the love and attention required to make it the best it could be. 
Maybe even including support for real hardware and all of those CRYNWR drivers. 

:-)

Jerome


> -- 
> andrew fabbro
> and...@fabbro.org 
> 
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user

___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


[Freedos-user] Is networking unsupported on QEMU? Pilot error suspected.

2023-12-27 Thread andrew fabbro via Freedos-user
Greetings!

I'm a bit perplexed trying to get networking working for FreeDOS 1.3 on
QEMU.  My physical host is an M1 Mac (Apple Silicon).

FreeDOS installs and boots fine, but I get this message:

QEMU network detected.
Physical hardware networking is not supported at this time.

Here is my QEMU invocation:

qemu-system-i386 -boot order=cd -m 32M -k en-us -name FreeDOS1 -cdrom
FD13BNS.iso -drive FreeDOS1.img,format=raw,media=disk -net nic,model=pcnet
-net user

I've also tried model=ne2k_pci, model=e1000, etc.  Also tried similar setup
in UTM, which is a graphical front end for QEMU.

But looking at FreeDOS's startup scripts, I'm thinking maybe QEMU
networking is not supported...?

At line 84 of FDAUTO.BAT, "%dosdir%\bin\fdnet.bat start" is called.
Looking at fdnet.bat, at line 92, "vinfo /m" is executed.  When I execute
this myself at the command line, errorlevel is set to 102.  In fdnet.bat,
this branches to a label called NoAutoQEMU on line 109.  There, since %1 is
"start" there's a goto NoStartQEMU.  That gives the "QEMU network detected"
message.  Then there's a goto NoHardware, which gives the "Physical
networking is not supported at this time" and end.

So is networking under QEMU completely unsupported?

Strangely, I found this forum post in which someone has it working just
fine, so I'm thinking that maybe I'm doing something wrong?

https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/freedos-in-qemu-no-internet-connection-4175638386/

-- 
andrew fabbro
and...@fabbro.org
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user