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/
Home Products Support Community News


Re: [Xen-users] config.sxp pain - auto start?

To: James Pifer <jep@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] config.sxp pain - auto start?
From: Grant McWilliams <grantmasterflash@xxxxxxxxx>
Date: Fri, 9 Oct 2009 12:33:30 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 09 Oct 2009 12:34:33 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=8eticn8w3ky1yz5kZTRbuCMxADoATFy3epu6WPOIdvw=; b=jihFhS4RoYpizpsuVeOFCyxLl1eDj81Lrwslp1BKPaYwHKEOtJfwy+iJzYrVru+Pm4 PENTJB6VSGKeLOeGJ82r1F50qUFf3y1c7fpdQCwViAvSGx5CaX+2vb54zRj+lBRY6tl7 Iuj0T3kSS8A+mS5Dor1G688grCZd3B8tz5/t8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=ftUbGJqUMYHwZ7H0dceng4uE8yNaNdxWOkJEdOSZw/TFc+bzmylNJ9RRFmPN1HJMqk R7k69l4qs+sU/Id+vsZSc3d3lwxejXQmEts1ZtFXraeYofvoU3i4hbQZyJ0Wfgnjiyh0 xfqGoEl6hn2rk9cYxDk+GSPIRoKCDwtVdMz8k=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1255116167.7244.40.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
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: <C72F1C34-24F8-4DDD-90E8-6D7936C31C7A@xxxxxxxxxx> <1255116167.7244.40.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

On Fri, Oct 9, 2009 at 12:22 PM, James Pifer <jep@xxxxxxxxxxxxxxxx> wrote:
On Thu, 2009-10-08 at 11:37 -0700, Brian Krusic wrote:
> Hi all,
> In the older format using Xen 3.0.3 (domains created via xm), I simply
> created a sym link from /etc/xen/domU config file to /etc/xen/auto.
> I am now using virt-install (Xen 3.4.1) which creates the domU config
> in /var/lib/xend/domains/UUID_#_of_domU/config.sxp.
> So I sym link this to a file in /etc/xen/auto/hostname_of_domU and
> noticed that no auto starting of the domU happens.
> I've looked in both my Xen books and only find that /etc/xen/auto is
> the place to auto start domUs.
> Any ideas on how to auto start gracefully while not writing a script
> in /etc/rc3.d every time a new domU comes on line?
> And why are xm create and virt-install so diff in how they approach
> domU configs?  This is confusing.
> - Brian

I've read through this thread. Is there a consensus here? When I first
started on xen it used the files in /etc/xen/vm for configs, and to
autostart on boot you would put a softlink under /etc/xen/auto.

Should I be doing this a different way?

ps- sorry this got so long....

You know I could be wrong on this but I think the config.sxp way has to do with
libvirt. Virt-install and virsh manage libvirt domains I believe. The first thing I do
to a Xen Dom0 is shutdown libvirtd or delete the bridge that it creates so I can manage
everything I do myself. This also means I create /etc/xen/config files from template.

Xen-users mailing list