[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


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

bootloader = "/usr/bin/pygrub"
memory = 1024
name = "vm1"
vcpus = 4
vif = [ 'ip=, bridge=trunk0, vifname=%s.0' % (name), 'ip=, bridge=trunk1, vifname=%s.1' % (name) ]
disk = [ 'tap2:vhd:/cloud/data2/machines/%s.vhd,xvda,w' % (name) ]
root = "/dev/xvda1"
extra = "fastboot"
ip = ""
netmask = ""
gateway = ""
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 :)


Xen-users mailing list



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