* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 17:22 ` Filip Navara
@ 2004-07-13 17:45 ` John R. Hogerhuis
2004-07-13 17:58 ` Adrian Smarzewski
2004-07-14 6:02 ` Jim C. Brown
2004-07-13 17:50 ` Adrian Smarzewski
` (2 subsequent siblings)
3 siblings, 2 replies; 46+ messages in thread
From: John R. Hogerhuis @ 2004-07-13 17:45 UTC (permalink / raw)
To: qemu-devel
On Tue, 2004-07-13 at 10:22, Filip Navara wrote:
> Adrian Smarzewski wrote:
> [snip]
>
> > It's a windows nt driver for ext2 partitions. maybe we could
> > change it so instead of writting files on real drive it will
> > pass commands to qemu? file system is not so important, but
> > this driver is lgpl'ed.
>
> At first guys, you confuse file system drivers and storage drivers. The
> file system drivers have de facto no knowledge on which disk are the
> data located, (on Windows) they recieve an object and send Read/Write
> requests to it (well, basicly, in reality there's also the cache manager
> between them). At second, the idea can't work, even if you would have a
> storage driver that uses some backdoor I/O port to access host disk, the
> host OS can't access the same partition at the same time due to things
> like caching (on both sides (guest/host)).
>
Yes, it is a non-workable idea to try to share a filesystem between two
running OSes.
On a slightly different tack, if your guest OS image was no longer
bootable for some reason it would be nice to be able to mount the file
system within that image for the purpose of data recovery.
Is there a way to do that?
-- John.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 17:45 ` John R. Hogerhuis
@ 2004-07-13 17:58 ` Adrian Smarzewski
2004-07-13 18:11 ` John R. Hogerhuis
2004-07-14 2:34 ` Jim C. Brown
2004-07-14 6:02 ` Jim C. Brown
1 sibling, 2 replies; 46+ messages in thread
From: Adrian Smarzewski @ 2004-07-13 17:58 UTC (permalink / raw)
To: qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John R. Hogerhuis wrote:
| Yes, it is a non-workable idea to try to share a filesystem between two
| running OSes.
I don't agree because samba for example is the application that does it.
- - change samba serwer to little server builded-in into qemu
- - change smb windows client to filesystem driver communicating with our
server
- - change tcp protocol to hidden ioports communication between windows
driver and qemu little-server (like vmware-tools communication protocol)
and it will be the thing that I'm talking about.
- --
Pozdrowienia
Adrian Smarzewski
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFA9CK7gnuWEmthbpURAgSNAJ4g31sbNV4BLAQWNtABTvD1+tPOdwCdFsYQ
oEu0hgylEraYe7U5M7GO9dk=
=GDW5
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 17:58 ` Adrian Smarzewski
@ 2004-07-13 18:11 ` John R. Hogerhuis
2004-07-13 18:31 ` Adrian Smarzewski
2004-07-14 2:34 ` Jim C. Brown
1 sibling, 1 reply; 46+ messages in thread
From: John R. Hogerhuis @ 2004-07-13 18:11 UTC (permalink / raw)
To: qemu-devel
On Tue, 2004-07-13 at 10:58, Adrian Smarzewski wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> John R. Hogerhuis wrote:
> | Yes, it is a non-workable idea to try to share a filesystem between two
> | running OSes.
>
> I don't agree because samba for example is the application that does it.
>
> - - change samba serwer to little server builded-in into qemu
> - - change smb windows client to filesystem driver communicating with our
> server
Ah. Could I phrase it as: you wish to share the drive through Windows
networking but you want to share it through QEMU communicating through
I/O ports to the loopback device only.
I guess then there is no need to set up real networking between guest
and host just to share files.
That is in the realm of the possible. Wouldn't it be easier though just
to set up the virtual network?
-- John.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 18:11 ` John R. Hogerhuis
@ 2004-07-13 18:31 ` Adrian Smarzewski
2004-07-14 2:42 ` Jim C. Brown
0 siblings, 1 reply; 46+ messages in thread
From: Adrian Smarzewski @ 2004-07-13 18:31 UTC (permalink / raw)
To: qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John R. Hogerhuis wrote:
| Ah. Could I phrase it as: you wish to share the drive through Windows
| networking but you want to share it through QEMU communicating through
| I/O ports to the loopback device only.
rather using special driver than windows networking. just like zip
drive for example or drive created by "subst" command.
| I guess then there is no need to set up real networking between guest
| and host just to share files.
yes.
| That is in the realm of the possible. Wouldn't it be easier though just
| to set up the virtual network?
1) virtual network is still not working for me :/
2) do we really need all samba installation and configuration, windows
networking, users, passwords, just to share some files?
3) maybe we can find a way to boot guest os from this emulated drive
without .img files? resizing it is not very comfortable and reiserfs is
better than fat/ntfs.
- --
Pozdrowienia
Adrian Smarzewski
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFA9CqdgnuWEmthbpURAs4vAJ9+1Yw+ZsMDgQw8WBGF6M+P9COXjgCeMJBI
RlTRyKjjfRbOC/lXswRfE1Q=
=Pdro
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 18:31 ` Adrian Smarzewski
@ 2004-07-14 2:42 ` Jim C. Brown
2004-07-14 9:50 ` Adrian Smarzewski
0 siblings, 1 reply; 46+ messages in thread
From: Jim C. Brown @ 2004-07-14 2:42 UTC (permalink / raw)
To: qemu-devel
On Tue, Jul 13, 2004 at 08:31:57PM +0200, Adrian Smarzewski wrote:
> 1) virtual network is still not working for me :/
> 2) do we really need all samba installation and configuration, windows
> networking, users, passwords, just to share some files?
> 3) maybe we can find a way to boot guest os from this emulated drive
> without .img files? resizing it is not very comfortable and reiserfs is
> better than fat/ntfs.
>
> - --
> Pozdrowienia
> Adrian Smarzewski
1) and 2) are satified with a built-in qemu ftp server.
3) does need a hack (even a builtin SMB/CIFS server wouldn't work as we'd need
to emulate a physical disk). This is extremely tricky tho.
As for resizing disk images, that could be solved if we had our own version of
mkfile (the DOSMinix disk image maker, which can resize disk images as well as
create them, without any data loss (ok if you shrink an image you lose the data
at the end of it, but otherwise there is no data loss)). I think mkfile is
open-source so it should be easy to port to qemu. I should also point out that
mkfile seems to work on raw disk images.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFA9CqdgnuWEmthbpURAs4vAJ9+1Yw+ZsMDgQw8WBGF6M+P9COXjgCeMJBI
> RlTRyKjjfRbOC/lXswRfE1Q=
> =Pdro
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 2:42 ` Jim C. Brown
@ 2004-07-14 9:50 ` Adrian Smarzewski
2004-07-14 10:04 ` Antony T Curtis
2004-07-14 11:11 ` Fabrice Bellard
0 siblings, 2 replies; 46+ messages in thread
From: Adrian Smarzewski @ 2004-07-14 9:50 UTC (permalink / raw)
To: qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim C. Brown wrote:
| 1) and 2) are satified with a built-in qemu ftp server.
are there any windows ftp-clients mounting ftp resources as
a windows drive (read/write)?
- --
Pozdrowienia
Adrian Smarzewski
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFA9QHognuWEmthbpURAprnAKClq6XxAmbThuiijtbJaUwi4AO+kgCeNQX3
XzrXvY5UpJPfJPNM0a6Ysb4=
=F/yA
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 9:50 ` Adrian Smarzewski
@ 2004-07-14 10:04 ` Antony T Curtis
2004-07-14 11:11 ` Fabrice Bellard
1 sibling, 0 replies; 46+ messages in thread
From: Antony T Curtis @ 2004-07-14 10:04 UTC (permalink / raw)
To: qemu-devel
On Wed, 2004-07-14 at 10:50, Adrian Smarzewski wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jim C. Brown wrote:
> | 1) and 2) are satified with a built-in qemu ftp server.
> are there any windows ftp-clients mounting ftp resources as
> a windows drive (read/write)?
How about using Microsoft's free Services for Unix download... It has
the GNU tools, a NFS client, NFS server and more.
http://www.microsoft.com/windows/sfu/downloads/default.asp
You may need to create a HotMail/MSPassport account in order to download
it - it is quite large, about 250MB and includes sources for GNU parts.
Funny that Microsoft is distributing GNU binaries and source... and on
the other hand, they say that GNU is evil....
--
Antony T Curtis <antony.t.curtis@ntlworld.com>
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 9:50 ` Adrian Smarzewski
2004-07-14 10:04 ` Antony T Curtis
@ 2004-07-14 11:11 ` Fabrice Bellard
2004-07-14 11:58 ` Adrian Smarzewski
` (2 more replies)
1 sibling, 3 replies; 46+ messages in thread
From: Fabrice Bellard @ 2004-07-14 11:11 UTC (permalink / raw)
To: qemu-devel
Adrian Smarzewski wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jim C. Brown wrote:
> | 1) and 2) are satified with a built-in qemu ftp server.
> are there any windows ftp-clients mounting ftp resources as
> a windows drive (read/write)?
Here are the solutions I see (in order of increasing complexity):
1) built-in FTP server in the SLIRP layer.
2) On the fly read-only FAT drive built from a host directory content.
It is complementary to (1) to enable booting without a disk image ((2)
is used with (3) in dosemu for example).
3) dosemu MSDOS redirector. Would only work with MSDOS based OSes (maybe
up to Windows Me).
4) Integrated SMB server in the SLIRP layer. SMB is complicated because
it has many variants. If an early version works with all Windows version
it can be interesting.
5) Windows specific filesystem driver talking directly with QEMU.
Fabrice.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 11:11 ` Fabrice Bellard
@ 2004-07-14 11:58 ` Adrian Smarzewski
2004-07-14 14:01 ` Adrian Smarzewski
2004-07-14 12:28 ` Brad Watson
2004-07-14 16:44 ` John R. Hogerhuis
2 siblings, 1 reply; 46+ messages in thread
From: Adrian Smarzewski @ 2004-07-14 11:58 UTC (permalink / raw)
To: qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Fabrice Bellard wrote:
| Adrian Smarzewski wrote:
|> are there any windows ftp-clients mounting ftp resources as
|> a windows drive (read/write)?
I've found this one:
http://www.knoware.com/index.php?pg=./products/inpro/index
but It's not free :/
| 1) built-in FTP server in the SLIRP layer.
FTP is simpler that SMB and every OS has FTP client I think.
I will vote for this if I find free replacement for above ftp client
with drive mapping feature ;)
| 2) On the fly read-only FAT drive built from a host directory content.
| It is complementary to (1) to enable booting without a disk image
This two will be perfect for me. . And FAT structure is also not very
complicated to build. But can you boot windows 2000 for example
using read-only drive?
- --
Pozdrowienia
Adrian Smarzewski
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFA9R/qgnuWEmthbpURAvPgAKCjuGKtuGTE69qvw7kPJC3/r4rraQCgrarf
XapEBi1p44ChQgodqMsBU14=
=tYBq
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 11:11 ` Fabrice Bellard
2004-07-14 11:58 ` Adrian Smarzewski
@ 2004-07-14 12:28 ` Brad Watson
2004-07-14 12:46 ` Adrian Smarzewski
2004-07-14 16:44 ` John R. Hogerhuis
2 siblings, 1 reply; 46+ messages in thread
From: Brad Watson @ 2004-07-14 12:28 UTC (permalink / raw)
To: qemu-devel
Hi Fabrice,
I like option 1 since it is less "DOS centric," and
more generic solution.
Kind Regards,
Brad Watson
--- Fabrice Bellard <fabrice@bellard.org> wrote:
> Adrian Smarzewski wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Jim C. Brown wrote:
> > | 1) and 2) are satified with a built-in qemu ftp
> server.
> > are there any windows ftp-clients mounting ftp
> resources as
> > a windows drive (read/write)?
>
> Here are the solutions I see (in order of increasing
> complexity):
>
> 1) built-in FTP server in the SLIRP layer.
>
> 2) On the fly read-only FAT drive built from a host
> directory content.
> It is complementary to (1) to enable booting without
> a disk image ((2)
> is used with (3) in dosemu for example).
>
> 3) dosemu MSDOS redirector. Would only work with
> MSDOS based OSes (maybe
> up to Windows Me).
>
> 4) Integrated SMB server in the SLIRP layer. SMB is
> complicated because
> it has many variants. If an early version works with
> all Windows version
> it can be interesting.
>
> 5) Windows specific filesystem driver talking
> directly with QEMU.
>
> Fabrice.
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 11:11 ` Fabrice Bellard
2004-07-14 11:58 ` Adrian Smarzewski
2004-07-14 12:28 ` Brad Watson
@ 2004-07-14 16:44 ` John R. Hogerhuis
2004-07-15 0:38 ` Leigh Dyer
2 siblings, 1 reply; 46+ messages in thread
From: John R. Hogerhuis @ 2004-07-14 16:44 UTC (permalink / raw)
To: qemu-devel
On Wed, 2004-07-14 at 04:11, Fabrice Bellard wrote:
> 1) built-in FTP server in the SLIRP layer.
HTTP was intended at least in part to replace FTP. It might make more
sense as a file transfer protocol. Maybe integrate a simple web server
into SLIRP layer instead of FTP?
Of course you would need some basic security like default the service to
being OFF, and once enabled defaulted to allowing connections from
localhost only.
Makes you wonder what else would be interesting besides some of the file
system one could expose through a default web page by QEMU. Things like:
whether in BIOS code, cpu utilization, a recent snapshot of the screen,
some basic things about processor mode, amount of RAM in use, perhaps
some control buttons like RESET, SUSPEND, PAUSE, partitions and %full,
etc.
-- John.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 16:44 ` John R. Hogerhuis
@ 2004-07-15 0:38 ` Leigh Dyer
2004-07-15 5:25 ` John R. Hogerhuis
0 siblings, 1 reply; 46+ messages in thread
From: Leigh Dyer @ 2004-07-15 0:38 UTC (permalink / raw)
To: qemu-devel
On Wed, 2004-07-14 at 09:44 -0700, John R. Hogerhuis wrote:
> On Wed, 2004-07-14 at 04:11, Fabrice Bellard wrote:
>
> > 1) built-in FTP server in the SLIRP layer.
>
> HTTP was intended at least in part to replace FTP. It might make more
> sense as a file transfer protocol. Maybe integrate a simple web server
> into SLIRP layer instead of FTP?
I also like the idea of a web server instead of an FTP server. A basic
web server would be quite a bit easier to write than an FTP server, and
it could later be extended with a basic WebDAV implementation to support
more filesystem-like read-write access.
The downside is that WebDAV is possibly more complex to implement than
FTP, and a HTTP server without WebDAV is only really a partial solution,
since there's no really easy way to do guest->host transfers.
Thanks
Leigh
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-15 0:38 ` Leigh Dyer
@ 2004-07-15 5:25 ` John R. Hogerhuis
2004-07-15 5:38 ` Leigh Dyer
0 siblings, 1 reply; 46+ messages in thread
From: John R. Hogerhuis @ 2004-07-15 5:25 UTC (permalink / raw)
To: qemu-devel
On Wed, 2004-07-14 at 17:38, Leigh Dyer wrote:
> I also like the idea of a web server instead of an FTP server. A basic
> web server would be quite a bit easier to write than an FTP server, and
> it could later be extended with a basic WebDAV implementation to support
> more filesystem-like read-write access.
>
> The downside is that WebDAV is possibly more complex to implement than
> FTP, and a HTTP server without WebDAV is only really a partial solution,
> since there's no really easy way to do guest->host transfers.
>
I don't know what WebDAV is but if you implement http GET and PUT you
have a full solution to transferring files, just no security. OP just
wanted a way to do easy clipboard between the two, no security there
either.
But usual FTP doesn't give you real security anyway, so no big
difference really.
Security can be added in the form of cgi scripts, authentication, even
encryption (HTTPS or SSL) later on. Just need to pick the right web
server to embed, and figure out the business end of it that integrates
with SMB (would have to utilize samba...).
And actually I don't think we would need to write yet another web
server. There are several on Freshmeat, including lightweight ones, for
the picking.
Seems kind of exciting prospect actually. Imagine you have some legacy
part of a business process running under windows. With an easy file
sharing scheme like this, Windows+app becomes a black box with enough
inputs/outputs and levers (some HTTP POST commands) to run essentially
headless.
Later,
-- John.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-15 5:25 ` John R. Hogerhuis
@ 2004-07-15 5:38 ` Leigh Dyer
0 siblings, 0 replies; 46+ messages in thread
From: Leigh Dyer @ 2004-07-15 5:38 UTC (permalink / raw)
To: qemu-devel
On Wed, 2004-07-14 at 22:25 -0700, John R. Hogerhuis wrote:
> On Wed, 2004-07-14 at 17:38, Leigh Dyer wrote:
>
> > I also like the idea of a web server instead of an FTP server. A basic
> > web server would be quite a bit easier to write than an FTP server, and
> > it could later be extended with a basic WebDAV implementation to support
> > more filesystem-like read-write access.
> >
> > The downside is that WebDAV is possibly more complex to implement than
> > FTP, and a HTTP server without WebDAV is only really a partial solution,
> > since there's no really easy way to do guest->host transfers.
> >
>
> I don't know what WebDAV is but if you implement http GET and PUT you
> have a full solution to transferring files, just no security. OP just
> wanted a way to do easy clipboard between the two, no security there
> either.
WebDAV's an extension of HTTP that allows for FTP-style directory level
access. IE does WebDAV quite nicely (it calls the idea "Web Folders"),
so you can open an IE window to browse your WebDAV folders that looks
and acts pretty much like a standard Explorer window. I think it could
be a good alternative to trying to implement something far more complex
like SMB.
WebDAV is implemented by adding extra HTTP methods on top of the usual
T/POST, so it would easily be possible to throw a basic web server in to
QEMU now and flesh it out with WebDAV support later.
Thanks
Leigh
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 17:58 ` Adrian Smarzewski
2004-07-13 18:11 ` John R. Hogerhuis
@ 2004-07-14 2:34 ` Jim C. Brown
1 sibling, 0 replies; 46+ messages in thread
From: Jim C. Brown @ 2004-07-14 2:34 UTC (permalink / raw)
To: qemu-devel
On Tue, Jul 13, 2004 at 07:58:19PM +0200, Adrian Smarzewski wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> John R. Hogerhuis wrote:
> | Yes, it is a non-workable idea to try to share a filesystem between two
> | running OSes.
>
> I don't agree because samba for example is the application that does it.
>
> - - change samba serwer to little server builded-in into qemu
> - - change smb windows client to filesystem driver communicating with our
> server
> - - change tcp protocol to hidden ioports communication between windows
> driver and qemu little-server (like vmware-tools communication protocol)
>
> and it will be the thing that I'm talking about.
>
> - --
> Pozdrowienia
> Adrian Smarzewski
You don't need the second step,
> - - change smb windows client to filesystem driver communicating with our
> server
but the rest is workable. VMware actually does this, iirc. It would be easier
to support NFS as the special protocol and use an open-source NFS client for
Windows tho.
Then again, do we really need full filesystem access? It would be simpler for
qemu to emulate an ftp server on the guest side (use "-ftp" option to turn
the server on, and "-ftpdir <dir>" to tell qemu where it should serve from).
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFA9CK7gnuWEmthbpURAgSNAJ4g31sbNV4BLAQWNtABTvD1+tPOdwCdFsYQ
> oEu0hgylEraYe7U5M7GO9dk=
> =GDW5
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 17:45 ` John R. Hogerhuis
2004-07-13 17:58 ` Adrian Smarzewski
@ 2004-07-14 6:02 ` Jim C. Brown
2004-07-14 6:15 ` Johannes Martin
1 sibling, 1 reply; 46+ messages in thread
From: Jim C. Brown @ 2004-07-14 6:02 UTC (permalink / raw)
To: jhoger, qemu-devel
On Tue, Jul 13, 2004 at 10:45:40AM -0700, John R. Hogerhuis wrote:
> On a slightly different tack, if your guest OS image was no longer
> bootable for some reason it would be nice to be able to mount the file
> system within that image for the purpose of data recovery.
>
> Is there a way to do that?
>
> -- John.
>
>
FreeBSD has the ability to read the partition table from a raw disk image and
mount the partition on it natively (or so I'm told at least). Not sure about
the other BSDs.
Under Linux you can use lomount.
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 6:02 ` Jim C. Brown
@ 2004-07-14 6:15 ` Johannes Martin
0 siblings, 0 replies; 46+ messages in thread
From: Johannes Martin @ 2004-07-14 6:15 UTC (permalink / raw)
To: qemu-devel
Hi,
I haven't followed this track completely, but one option that might not be
too difficult to implement would be to use emufs.sys or lredir.exe from
xdosemu. I'm not sure whether they are limited to plain old dos or whether
they'll work in windows 9x/me as well.
Just a thought
Johannes
P.S.: personally, I think sharing via smb or some other protocol is the
better option as it doesn't require any special guest code.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 17:22 ` Filip Navara
2004-07-13 17:45 ` John R. Hogerhuis
@ 2004-07-13 17:50 ` Adrian Smarzewski
2004-07-13 22:31 ` Sebastien Bechet
2004-07-14 2:26 ` Jim C. Brown
3 siblings, 0 replies; 46+ messages in thread
From: Adrian Smarzewski @ 2004-07-13 17:50 UTC (permalink / raw)
To: qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Filip Navara wrote:
| At first guys, you confuse file system drivers and storage drivers. The
| file system drivers have de facto no knowledge on which disk are the
| data located, (on Windows) they recieve an object and send Read/Write
I don't know how exactly filesystems works in windows but I'm talking
about someting like "subst" command. But instead of redirecting file
access routines to real windows file system driver (with new,
substituted patch) it will redirect it to qemu and linux filesystem.
The real write access will be made by linux kernel (via glibc).
- --
Pozdrowienia
Adrian Smarzewski
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFA9CDJgnuWEmthbpURAhH4AKCWNuD9dJqOFf249Z5hmR5LD3gvlACfdNuM
xPet2Ye/xeHOaYBiO7zsvUg=
=6UKm
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 17:22 ` Filip Navara
2004-07-13 17:45 ` John R. Hogerhuis
2004-07-13 17:50 ` Adrian Smarzewski
@ 2004-07-13 22:31 ` Sebastien Bechet
2004-07-14 2:26 ` Jim C. Brown
3 siblings, 0 replies; 46+ messages in thread
From: Sebastien Bechet @ 2004-07-13 22:31 UTC (permalink / raw)
To: qemu-devel
Le mar 13/07/2004 à 19:22, Filip Navara wrote :
> At first guys, you confuse file system drivers and storage drivers. The
> file system drivers have de facto no knowledge on which disk are the
> data located, (on Windows) they recieve an object and send Read/Write
> requests to it (well, basicly, in reality there's also the cache manager
> between them).
So on windows :
(A = Application) <-> (B = receive an object and send r/w) <-> (C =
cachemgr) <-> (B = ntfs.sys or vfat or ...)
What is B ? DLL Name, SYS Name ? Registry ? API Size ?
Why not to rewrite B in guest to access IOCTL Host OS using Backdoor
qemu IO port ? Maybe Wine LGPL work is usable to do that ?
With this method we can have windows files directly on linux filesystem
and we can share it directly ! In my opinion this idea _can_ work and is
a killer feature but only for Windows GURU (meditation ;p) ...
> At second, the idea can't work, even if you would have a
> storage driver that uses some backdoor I/O port to access host disk, the
> host OS can't access the same partition at the same time due to things
> like caching (on both sides (guest/host)).
Not host disk access, filesystem linux kernel IOCTL access.
Bye.
--
Sebastien Bechet <s.bechet@av7.net>
av7.net
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-13 17:22 ` Filip Navara
` (2 preceding siblings ...)
2004-07-13 22:31 ` Sebastien Bechet
@ 2004-07-14 2:26 ` Jim C. Brown
2004-07-14 3:15 ` Filip Navara
` (2 more replies)
3 siblings, 3 replies; 46+ messages in thread
From: Jim C. Brown @ 2004-07-14 2:26 UTC (permalink / raw)
To: qemu-devel
On Tue, Jul 13, 2004 at 07:22:45PM +0200, Filip Navara wrote:
> Adrian Smarzewski wrote:
> [snip]
>
> >It's a windows nt driver for ext2 partitions. maybe we could
> >change it so instead of writting files on real drive it will
> >pass commands to qemu? file system is not so important, but
> >this driver is lgpl'ed.
>
> At first guys, you confuse file system drivers and storage drivers. The
> file system drivers have de facto no knowledge on which disk are the
> data located, (on Windows) they recieve an object and send Read/Write
> requests to it (well, basicly, in reality there's also the cache manager
> between them). At second, the idea can't work, even if you would have a
> storage driver that uses some backdoor I/O port to access host disk, the
> host OS can't access the same partition at the same time due to things
> like caching (on both sides (guest/host)).
>
> - Filip
>
>
Technically speaking, one could write a file system driver that talks to qemu
instead of going through a storage driver. (I didn't say it would be easy, just
barely possible.) Qemu could then translate attempts (to write a file on Windows
using this driver would cause qemu to write the file on linux's fs natively for
example). It is more work than its worth, but it is possible.
A modified user-net which emulated SMB protocol to the guest but did the i/o
natively on the host would do the same thing and be easier to implement.
Setting up tuntap or VDE is easiest of all. :)
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 2:26 ` Jim C. Brown
@ 2004-07-14 3:15 ` Filip Navara
2004-07-14 9:54 ` Adrian Smarzewski
2004-07-14 9:55 ` Adrian Smarzewski
2 siblings, 0 replies; 46+ messages in thread
From: Filip Navara @ 2004-07-14 3:15 UTC (permalink / raw)
To: qemu-devel
Jim C. Brown wrote:
>Technically speaking, one could write a file system driver that talks to qemu
>instead of going through a storage driver. (I didn't say it would be easy, just
>barely possible.) Qemu could then translate attempts (to write a file on Windows
>using this driver would cause qemu to write the file on linux's fs natively for
>example). It is more work than its worth, but it is possible.
>
>
Strictly technically you would need to fake a storage device (~ 1000
lines code) since Windows can't mount filesystem without a device and
then you can write a file system driver that will recoginze the fake
device and act as you described. I agree, yes, doing this is possible,
but it would be pretty complex to implement for no real gain. It's less
flexible than any solution based on networking (since you would have to
write a guest driver for every OS that you want to use the feature in)
and the speed increase would be marginal if any.
>A modified user-net which emulated SMB protocol to the guest but did the i/o
>natively on the host would do the same thing and be easier to implement.
>
>
Again, I agree, that's the way to go.
Regards,
Filip
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 2:26 ` Jim C. Brown
2004-07-14 3:15 ` Filip Navara
@ 2004-07-14 9:54 ` Adrian Smarzewski
2004-07-14 9:55 ` Adrian Smarzewski
2 siblings, 0 replies; 46+ messages in thread
From: Adrian Smarzewski @ 2004-07-14 9:54 UTC (permalink / raw)
To: qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim C. Brown wrote:
| Setting up tuntap
didn't work and I'm not a newbie :(
maybe gentoo patched kernel is the problem.
I will try again soon.
- --
Pozdrowienia
Adrian Smarzewski
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFA9QLwgnuWEmthbpURAp1AAJ4jkoQPgXyH//+9qpbGoOksIrMMBQCdGTOG
7R+8F3D+3SNwejaaZgJ02DY=
=utLw
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 2:26 ` Jim C. Brown
2004-07-14 3:15 ` Filip Navara
2004-07-14 9:54 ` Adrian Smarzewski
@ 2004-07-14 9:55 ` Adrian Smarzewski
2004-07-14 10:14 ` J. Mayer
2 siblings, 1 reply; 46+ messages in thread
From: Adrian Smarzewski @ 2004-07-14 9:55 UTC (permalink / raw)
To: qemu-devel
Jim C. Brown wrote:
| Setting up tuntap
didn't work and I'm not a linux newbie :(
maybe gentoo patched kernel is the problem.
I will try again soon.
--
Pozdrowienia
Adrian Smarzewski
^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [Qemu-devel] Win98: how to exchange data with Linux
2004-07-14 9:55 ` Adrian Smarzewski
@ 2004-07-14 10:14 ` J. Mayer
0 siblings, 0 replies; 46+ messages in thread
From: J. Mayer @ 2004-07-14 10:14 UTC (permalink / raw)
To: qemu-devel
On Wed, 2004-07-14 at 11:55, Adrian Smarzewski wrote:
> Jim C. Brown wrote:
> | Setting up tuntap
> didn't work and I'm not a linux newbie :(
> maybe gentoo patched kernel is the problem.
I guess not:
tun/tap is functional on Gentoo with kernel 2.6 and qemu is able to use
it (x86 and x86_64).
Don't know with 2.4 kernels, but it should also work fine.
--
J. Mayer <l_indien@magic.fr>
Never organized
^ permalink raw reply [flat|nested] 46+ messages in thread