From: Mats Petersson Subject: Re: Many same managed domain Date: Sun, 22 Jul 2007 11:30:52 +0100 Message-ID: <46a33202.1636440a.6636.72b9@mx.google.com> References: <91C7CC1E6AF558kanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Return-path: In-Reply-To: <91C7CC1E6AF558kanno.masaki@jp.fujitsu.com> References: <91C7CC1E6AF558kanno.masaki@jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Masaki Kanno , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 06:09 22/07/2007, Masaki Kanno wrote: >Hi, > >When I tested xm new command without uuid parameter repeatedly, >I saw many same managed domain as follows. > ># xm list >Name ID Mem >VCPUs State Time(s) >Domain-0 0 941 2 r----- 51.9 ># xm new /xen/vm1.conf >Using config file "/xen/vm1.conf". ># xm new /xen/vm1.conf >Using config file "/xen/vm1.conf". ># xm new /xen/vm1.conf >Using config file "/xen/vm1.conf". ># xm list >Name ID Mem >VCPUs State Time(s) >Domain-0 0 941 2 r----- 56.3 >vm1 256 1 0.0 >vm1 256 1 0.0 >vm1 256 1 0.0 > > >But, when I tested xm new command with uuid parameter repeatedly, >I did not see same managed domain as follows. > ># xm list >Name ID Mem >VCPUs State Time(s) >Domain-0 0 941 2 r----- 69.9 ># xm new /xen/vm1.conf uuid="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" >Using config file "/xen/vm1.conf". ># xm new /xen/vm1.conf uuid="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" >Using config file "/xen/vm1.conf". ># xm new /xen/vm1.conf uuid="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" >Using config file "/xen/vm1.conf". ># xm list >Name ID Mem >VCPUs State Time(s) >Domain-0 0 941 2 r----- 74.4 >vm1 256 1 0.0 > > >I think that xm new command should cause a command error if without >uuid parameter. What do you think? Either that, or check that the name isn't a duplicate - I added such a check for "xm create" and "xm restore" about two months ago, because it would allow multiple instances of the same domain (with the same UUID - something I never got to the bottom of). -- Mats >Best regards, > Kan > > > >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.xensource.com >http://lists.xensource.com/xen-devel