From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Au57x-0008Ql-5a for qemu-devel@nongnu.org; Fri, 20 Feb 2004 02:31:13 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1Au57P-0008CY-LX for qemu-devel@nongnu.org; Fri, 20 Feb 2004 02:31:10 -0500 Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Au57P-0008Bb-4O for qemu-devel@nongnu.org; Fri, 20 Feb 2004 02:30:39 -0500 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Au57L-00023O-00 for ; Fri, 20 Feb 2004 08:30:35 +0100 Received: from 63.167.100.162 ([63.167.100.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri Feb 20 07:30:35 2004 Received: from mhoward by 63.167.100.162 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri Feb 20 07:30:35 2004 From: Matt Howard Date: Fri, 20 Feb 2004 02:09:37 -0500 Message-ID: References: <40354F5B.3030709@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Sender: news Subject: [Qemu-devel] Re: Access to the host filesystem Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Fabrice Bellard wrote: > Hi, > > I wonder what would be the best way to access to the host filesystem, > especially with the Linux, MSDOS/FreeDos and Windows guest OSes. > > Here are my thoughts: > > 1) Do nothing and just use the network with NFS or Samba host servers. > It is the easiest solution but it requires a complicated host and guest > configuration. > > 2) Add a hardware device in QEMU giving access to the host filesystem > with specific commands such as "open", "read" and "close" working by > using DMA in physical guest memory. Then by reusing the user mode Linux > "hostfs" filesystem, it would be easy to add access to the host > filesystem. By reusing the dosemu "MFS" driver, it would also be > possible to do the same as dosemu to access to an host DOS tree. > > 3) Add a tiny NFS server in QEMU so that no host configuration is > needed. Then only NFS drivers are needed in the guest OS. > > Any comments ? > > Fabrice. I'd stick with Option 1. 2 and 3 are most heinously hackish, and won't provide the user/operator with as many options. 2 only covers Linux and DOS out of the box, and we all know how easy it is to get OSS developers to work on windows drivers. ;) 3 sounds workable, except that the MS OSes only support NFS through add-ons. 95% of qemu users will want network connections to the guest anyway, so I'd say it's safe to assume that they'll have it set up. Maybe someone could write up a document for post-networking setup that describes how to set up NFS/Samba in a locked-down, local-only configuration. This way, the job for you is basically done. :) -- Matt Howard Superior Insurance - Technical Services