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

[Xen-users] xen 4.1.1 - xl create and python in config files

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] xen 4.1.1 - xl create and python in config files
From: Sébastien Riccio <sr@xxxxxxxxxxxxxxx>
Date: Sun, 10 Jul 2011 08:24:14 +0200
Delivery-date: Sat, 09 Jul 2011 23:25:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0
Hi,

I am in the process of upgrading some xen installations from 3.x to 4.1.1 and
got into this:

box# xl create vm1.cfg
warning: Config file looks like it contains Python code.
warning:  Arbitrary Python is no longer supported.
warning:  See http://wiki.xen.org/xenwiki/PythonInXlConfig
Failed to parse config file: Invalid argument

I'm using python stuff to define vifs and disks related to vm
name:

bootloader = "/usr/bin/pygrub"
memory = 1024
name = "vm1"
vcpus = 4
vif = [ 'ip=10.111.5.10 10.111.5.11, bridge=trunk0, vifname=%s.0' % (name), 'ip=192.168.50.83, bridge=trunk1, vifname=%s.1' % (name) ]
disk = [ 'tap2:vhd:/cloud/data2/machines/%s.vhd,xvda,w' % (name) ]
root = "/dev/xvda1"
extra = "fastboot"
ip = "10.111.5.10"
netmask = "255.255.0.0"
gateway = "10.111.0.1"
hostname = "vm1.myhost.ch"
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
xen_shell = 'shelladmin %s' % (name)

Is there a workaround for this ? I headed to the suggested page
http://wiki.xen.org/xenwiki/PythonInXlConfig but it doesn't seems
to exists.

Any help appreciated :)

Thanks,
Sébastien


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

<Prev in Thread] Current Thread [Next in Thread>