[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.