public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Vivier <Laurent.Vivier-6ktuUTfB/bM@public.gmane.org>
To: qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [Qemu-devel] Re: Storing command line options in images
Date: Tue, 14 Aug 2007 16:31:08 +0200	[thread overview]
Message-ID: <46C1BCAC.9030203@bull.net> (raw)
In-Reply-To: <F213D784-7927-4233-BD3E-57A808D31FE7-5aU9hSJ5JWgb1SvskN2V4Q@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 1360 bytes --]

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
> 
> - - - - - - - - - - - - - - - - - - -
> Dipl. Ing. Markus Hitter
> http://www.jump-ing.de/
> 
> 
> 
> 
> 
> 
> 


-- 
------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org  --------------
          "Software is hard" - Donald Knuth


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

  parent reply	other threads:[~2007-08-14 14:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-10  4:55 Storing command line options in images Jorge Lucángeli Obes
     [not found] ` <59abf66e0708092155t2e3cd5o32f23c018bed65af-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-10 16:02   ` Anthony Liguori
     [not found]     ` <46BC8C18.6020108-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-08-10 17:14       ` [Qemu-devel] " Avi Kivity
     [not found]         ` <46BC9CDB.3080900-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-10 18:43           ` Anthony Liguori
     [not found]             ` <46BCB1DA.6060102-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-08-10 19:41               ` Avi Kivity
     [not found]                 ` <46BCBF73.5060406-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-10 20:11                   ` Anthony Liguori
     [not found]                     ` <46BCC666.6050406-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-08-11  1:41                       ` Jorge Lucángeli Obes
     [not found]                         ` <59abf66e0708101841i76e26a35vcbc8df14b21f1ac0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-13  8:55                           ` Avi Kivity
     [not found]                             ` <46C01C8D.3060304-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-13  9:19                               ` Laurent Vivier
2007-08-13  9:27                                 ` [kvm-devel] " Christian MICHON
2007-08-14 14:18                                 ` Markus Hitter
     [not found]                                   ` <F213D784-7927-4233-BD3E-57A808D31FE7-5aU9hSJ5JWgb1SvskN2V4Q@public.gmane.org>
2007-08-14 14:31                                     ` Laurent Vivier [this message]
     [not found]                                       ` <46C1BCAC.9030203-6ktuUTfB/bM@public.gmane.org>
2007-08-14 19:02                                         ` [Qemu-devel] " Jorge Lucángeli Obes
     [not found]                                           ` <59abf66e0708141202t4eaf009cs4596cc76a164e3de-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-14 20:07                                             ` Thiemo Seufer
     [not found]                                               ` <20070814200757.GA7685-eH4hzgmiRX8dwXzzRB9H2Q@public.gmane.org>
2007-08-14 20:46                                                 ` Christian MICHON
2007-08-13 19:39                         ` [kvm-devel] " Thiemo Seufer
     [not found]                           ` <20070813193927.GA21215-eH4hzgmiRX8dwXzzRB9H2Q@public.gmane.org>
2007-08-13 20:26                             ` [Qemu-devel] " Christian MICHON
2007-08-14  3:17                             ` Anthony Liguori
2007-08-14  4:39                               ` Jorge Lucángeli Obes
2007-08-14  7:46                           ` [kvm-devel] " Laurent Vivier
     [not found]                             ` <46C15DCE.1000205-6ktuUTfB/bM@public.gmane.org>
2007-08-15 21:26                               ` [Qemu-devel] " Segher Boessenkool

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46C1BCAC.9030203@bull.net \
    --to=laurent.vivier-6ktuutfb/bm@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox