|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] xen 4.1.1 - xl create and python in config files
2011/7/10 Sébastien Riccio <sr@xxxxxxxxxxxxxxx>:
> 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.
In Xen 3.4.x and below, xend would assume the configuration file was a
python module and you were therefore allowed to use python statements
and constructs to describe the configuration options dynamically. If
using that config file is a must, then you should use xend just as
before. Otherwise, you should read the guide to Xen 4.1 from the link
below:
http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B
-- TSFH
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|