Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3DC12C433F5 for ; Fri, 29 Apr 2022 13:30:43 +0000 (UTC) Received: from localhost ([::1]:36582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkQhm-0006uc-0l for qemu-devel@archiver.kernel.org; Fri, 29 Apr 2022 09:30:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkMZJ-0006g7-1V for qemu-devel@nongnu.org; Fri, 29 Apr 2022 05:05:41 -0400 Received: from lxc-smtp2.ens-lyon.fr ([140.77.167.81]:35260) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkMZG-0001w8-Nc for qemu-devel@nongnu.org; Fri, 29 Apr 2022 05:05:40 -0400 Received: from localhost (localhost [127.0.0.1]) by lxc-smtp2.ens-lyon.fr (Postfix) with ESMTP id 52CF0E5619 for ; Fri, 29 Apr 2022 11:05:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.11.0 (20160426) (Debian) at ens-lyon.fr Received: from lxc-smtp2.ens-lyon.fr ([127.0.0.1]) by localhost (lxc-smtp2.ens-lyon.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IPhaBm4c74-L for ; Fri, 29 Apr 2022 11:05:33 +0200 (CEST) Received: from webmail.ens-lyon.fr (lxc-m2-webmail1.ens-lyon.fr [140.77.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by lxc-smtp2.ens-lyon.fr (Postfix) with ESMTPSA id 4375BE5607 for ; Fri, 29 Apr 2022 11:05:33 +0200 (CEST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_84dfe39756b915b402c35296beab0f1b" Date: Fri, 29 Apr 2022 11:05:33 +0200 From: Nguetchouang Ngongang Kevin To: qemu-devel@nongnu.org Subject: mount host directory as disk in VM Message-ID: <6ce88abda38291752cae0875c74c4dc3@ens-lyon.fr> X-Sender: kevin.nguetchouang@ens-lyon.fr User-Agent: Roundcube Webmail/1.2.7 Received-SPF: pass client-ip=140.77.167.81; envelope-from=kevin.nguetchouang@ens-lyon.fr; helo=lxc-smtp2.ens-lyon.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URI_TRUNCATED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 29 Apr 2022 09:28:46 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --=_84dfe39756b915b402c35296beab0f1b Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Hello everyone, I'm trying to mount a host directory as a disk in my VM at startup but I'm facing a problem. QEMU-SYSTEM-.... is returning "could not read directory". I'm using this https://qemu.readthedocs.io/en/latest/system/images.html#virtual-fat-disk-images as "-hdc fat:/mnt/data/output" but I'm getting this error: -- Nguetchouang Ngongang Kevin ENS de Lyon https://perso.ens-lyon.fr/kevin.nguetchouang/ --=_84dfe39756b915b402c35296beab0f1b Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hello everyone,

I'm trying to mount a host directory as a disk in my VM at startup but I= 'm facing a problem.

qemu-system-.... is returning "could not read directory= ".

I'm using this https://qemu.readthedocs.io/en/latest/s= ystem/images.html#virtual-fat-disk-images

as "-hdc fat:/mnt/data/output" but I'm getting this error:

--
= Nguetchouang Ngongang Kevin
ENS de Lyon
htt= ps://perso.ens-lyon.fr/kevin.nguetchouang/
--=_84dfe39756b915b402c35296beab0f1b--