|
|
|
|
|
|
|
|
|
|
xen-users
[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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-users] xen 4.1.1 - xl create and python in config files,
Sébastien Riccio <=
|
Previous by Date: |
[Xen-users] Re: Xen-users Digest, Vol 77, Issue 15, Oliver Wilcock |
Next by Date: |
Re: [Xen-users] Re: Xen-users Digest, Vol 77, Issue 15, Prakhar Srivastava |
Previous by Thread: |
[Xen-users] Re: Xen-users Digest, Vol 77, Issue 15, Oliver Wilcock |
Next by Thread: |
Re: [Xen-users] xen 4.1.1 - xl create and python in config files, Fajar A. Nugraha |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|
|
|