Thanks Chia.
I am not comfused about UML, it is a true and complete Linux system that runs 
over a Linux hosts. Instead interfacing with hardware devices, it uses virtual 
devices provided by the Linux Host.
The example of "ls" doesn't work as you explain. Containers runs in this way.

Regards.
PAP


________________________________
De: TK Chia <u1049321...@caramail.com>
Enviado: martes, 2 de marzo de 2021 02:40
Para: freedos-devel@lists.sourceforge.net <freedos-devel@lists.sourceforge.net>
Asunto: Re: [Freedos-devel] FreeDOS as a unikernel?

Good day Pablo,

> Unikernels: they are minimal Library operating systems embeded with the 
> application code. They provide networking, filesystem and virtual devices 
> support.
> I think that if Linux could be converted in a executable (User Mode Linux) or 
> in a library (LKL), FreeDOS may also be converted that way.

I am pretty sure that is _not_ how UML works.  It seems to me that you
are conflating and confusing several concepts together.

User Mode Linux actually works more like dosemu than it may seem.  UML
runs as a normal application under a host Linux system, of course.  But
when you run, say, /bin/ls within a UML session, UML will indeed
intercept the syscalls made by the /bin/ls and transform them into the
correct requests to the underlying host Linux.  So effectively /bin/ls's
syscalls actually go to UML, not directly to the host system.  There is
no need to compile /bin/ls to work with UML.

What you are getting at is more like what Winelib does
(https://wiki.winehq.org/Winelib_User%27s_Guide).  Winelib's goal is to
allow one to take the source code of a Windows program, and turn it into
a program that runs natively on Linux.

But you can only do this for Windows _applications_, not Windows itself.
  Winelib will most probably not allow you to turn Microsoft Windows's
source code --- even assuming you have it --- into a Linux application.
  It can only help you turn programs that run _under_ Windows into Linux
applications.

The dosemu approach of allowing MS-DOS code to run on Linux, and the
Winelib approach, will be quite different.

Thank you!

--
https://github.com/tkchia :: https://gitlab.com/tkchia


_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to