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] Xen Config Files from Database

To: Carlos <cechevarne@xxxxxxxxx>, Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Xen Config Files from Database
From: Jonathan Tripathy <jonnyt@xxxxxxxxxxx>
Date: Tue, 19 Apr 2011 12:39:26 +0100
Cc:
Delivery-date: Tue, 19 Apr 2011 04:42:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTimspo9s7FzRST1=_MAGLbA2B-PgSg@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: <4DAD69AA.3050302@xxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01CC8B2D@trantor> <BANLkTimspo9s7FzRST1=_MAGLbA2B-PgSg@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.16) Gecko/20101125 Thunderbird/3.0.11
Excellent Carlos! This is exactly what I was looking for!

So literally I just do:
xm create <Text from config file>

Cheers!

On 19/04/2011 12:31, Carlos wrote:
You can launch domUs without config file. In your case, you can read domU configuration parameters from database and them generate "xm create" command dynamically

Example.
                 xm create /dev/null ramdisk=initrd.img \
                    kernel=/boot/vmlinuz-2.6.12.6-xenU \
                    name=ramdisk vif='' vcpus=1 \
                    memory=64 root=/dev/ram0




2011/4/19 James Harper <james.harper@xxxxxxxxxxxxxxxx>
> Hi Everyone,
>
> Is there any way to make the xm create command read a config file via
a
> pipe or "<" ?
>
> My idea would be to generate the config file dynamically from a
database
> via  a php scripts, and somehow pipe the output to xm create
>
> Any help would be appreciated
>

Aren't the domu config files in /etc/xen just python source fragments?

James

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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>