From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IL1fD-0005JY-Sf for qemu-devel@nongnu.org; Tue, 14 Aug 2007 15:02:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IL1fA-0005ED-Ku for qemu-devel@nongnu.org; Tue, 14 Aug 2007 15:02:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IL1fA-0005Di-9g for qemu-devel@nongnu.org; Tue, 14 Aug 2007 15:02:44 -0400 Received: from el-out-1112.google.com ([209.85.162.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IL1f9-0006P2-OL for qemu-devel@nongnu.org; Tue, 14 Aug 2007 15:02:43 -0400 Received: by el-out-1112.google.com with SMTP id y26so772049ele for ; Tue, 14 Aug 2007 12:02:41 -0700 (PDT) Message-ID: <59abf66e0708141202t4eaf009cs4596cc76a164e3de@mail.gmail.com> Date: Tue, 14 Aug 2007 16:02:35 -0300 From: "=?ISO-8859-1?Q?Jorge_Luc=E1ngeli_Obes?=" Subject: Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images In-Reply-To: <46C1BCAC.9030203@bull.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <59abf66e0708092155t2e3cd5o32f23c018bed65af@mail.gmail.com> <46BC9CDB.3080900@qumranet.com> <46BCB1DA.6060102@codemonkey.ws> <46BCBF73.5060406@qumranet.com> <46BCC666.6050406@codemonkey.ws> <59abf66e0708101841i76e26a35vcbc8df14b21f1ac0@mail.gmail.com> <46C01C8D.3060304@qumranet.com> <46C02216.2030503@bull.net> <46C1BCAC.9030203@bull.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org On 8/14/07, Laurent Vivier wrote: > Markus Hitter wrote: > > > > Am 13.08.2007 um 11:19 schrieb Laurent Vivier: > > > >> We can modify qemu to test if the argument is a directory, if yes, it > >> reads args > >> from file args in this directory and for security the disk image must > >> be in the > >> same directory. > >> > >> for instance, we have: > >> > >> ./pc1/ > >> ./pc1/args > >> ./pc1/my_disk > >> > >> and in ./pc1/args, we have "-hda my_disk" > > > > ... and "-hdb ../pc2/my_other_disk" > > If we want to preserve security we should forbid this, but you can make a soft link: > > ln -s shared_disks/my_disk1 pc1/my_shared_disk > ln -s shared_disks/my_disk1 pc2/my_shared_disk > > and have pc1/args and pc2/args = "-hda my_disk -hdb my_shared_disk" > to have: > > qemu -hda pc1/my_disk -hdb pc1/my_shared_disk > > qemu -hda pc2/my_disk and -hdb pc2/my_shared_disk > > > The directory idea sounds good. Especially for me, as I'm obviously the > > only one running one disk image in different virtual machines. > > > > Plus, it'd work for physical partitions / disks: Simply have a directory > > with an "args" file only. > > > > > > my $ 0.01 > > Markus Quoting Thiemo, this '@' thing was "a feature which is now implemented in the GNU toolchain". That's why I tried it. Now I would like to know what he did to get it working. It would certainly be an useful feature, even if it does not exactly suit our purposes. I still think that the executable-image approach could work nicely. However, the point in favour of a configuration directory when using physical partitions or disks is good. Nonetheless, a physical partition is much less "volatile" than an disk image, so the disadvantage of keeping a shell script is small in that case. Cheers, Jorge