WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] 2 instances of a DomU on the same LV

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] 2 instances of a DomU on the same LV
From: Guy Roussin <guy.roussin@xxxxxxxxxxxxxxxx>
Date: Wed, 24 Mar 2010 10:23:55 +0100
Delivery-date: Wed, 24 Mar 2010 02:25:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f1003232012w5986ce94oe81924295a274566@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4BA798D2.9050807@xxxxxxxxxxxxxxxx> <7207d96f1003232012w5986ce94oe81924295a274566@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)
Hi,
if i try to 'xm create xen-int-vm01.cfg' on LM09q i get this error :
xm create xen-int-vm01.cfg
Using config file "./xen-int-vm01.cfg".
Error: VM name 'xen-int-vm01' already exists
...
But, with virt-manager i can start xen-int-vm01 on LM09q
so thereis 2 instances of the DomU sharing the same LV !!!

You misunderstood the commands.

First the basics: xen does a basic sanity check to prevent more than a
domU uses the same block device/file when it's set as writable, unless
user specifically overides it. The check is only on the same dom0.
Nothing is done to prevent the same device used on another dom0. You
need some other kind of external mechanism to prevent that.

Your original "xm create" command failed because the domU is already
defined, but not started. You can start it with "xm start", which
would produce the same result as starting it from virt-manager

Thank you Fajar, now i understand the logic.
Is there some "external mechanism" i can use ?
Otherwise I could develop my own simple mechanisms (shell scripts),
and stop using virt-manager.

Thank you,

Guy

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users