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] setting the path where xm looks for config files

To: Henning Sprang <henning_sprang@xxxxxx>
Subject: Re: [Xen-users] setting the path where xm looks for config files
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Sun, 14 Jan 2007 16:20:12 +0000
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 14 Jan 2007 08:20:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <5bb00b3f0701140607r1d62f107h37e3bf24e91a5ef4@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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <5bb00b3f0701140607r1d62f107h37e3bf24e91a5ef4@xxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Sun, Jan 14, 2007 at 03:07:09PM +0100, Henning Sprang wrote:
> Hi,
> Sometimes it can be convenient to change the path where xm looks for
> vm config files.
> SuSE for example sets it to /etc/xen/vm, which I find quite nice. But
> they change the path by hard-coding it in the xm code - which I don't
> want to make for my Debian package installed xen hosts, and don't want
> to do it on the machines where I use plain xensource xen.
> 
> It looks in the code like xm could take some variable PATH as default
> instead the one that is hardcoded, but it seems not to be the PATH
> environment variable. does anyone have an idea if that can be changed
> somehow . maybe a config option in the xend config file?
> 
> The possibility of giving the search path with the xm create option
> path is not really useful - then I can also give the absolute path.

In the new Xen 3.0.4 the use of /etc/xen for storing VM config files
is now pretty much just there for back compatability. If you're using
the existing 'xm create' then it'll still load from /etc/xen as per the
usual rules. With the new command 'xm new', where the config file is
kept is prety irrelevant, as once it is loaded, XenD will keep the master
config file in a private managed dir under /var/lib/xend/domains.
So I'm not sure that its worth extending 'xm' to add more flexibility 
to let it look somewhere other than /etc/xen because that dir is not
really very relevant any more.

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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