[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-users] Xen Config Files from Database
- To: James Harper <james.harper@xxxxxxxxxxxxxxxx>
- From: Carlos <cechevarne@xxxxxxxxx>
- Date: Tue, 19 Apr 2011 13:31:18 +0200
- Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>, Jonathan Tripathy <jonnyt@xxxxxxxxxxx>
- Delivery-date: Tue, 19 Apr 2011 04:34:39 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DLCoTEfmIdSOCoiCJTKpyoBDG4ep/O0KW+hCw+lqOohYEGjAr+sZDSmJgPGEX6qHJU XeTsHNrKtmIfPZNhC332GEEbjv7MyS023K1YhOA855rxovEjYbeM5RtwuqDknQWQ6S08 aZma27m+/SFbl6xA2Good7/YR3ptcXoh3ulmQ=
- List-id: Xen user discussion <xen-users.lists.xensource.com>
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
|