[libvirt-users] how to convert from xen .cfg files to libvirt xml?

I have a .cfg configuration file for a xen virtual machine. I need to convert it in xml format to use with libvirt. So I run virsh domxml-from-native xen-xm backupsrv.cfg but I have an error: error: Unknown failure. How can I investigate about the error?

On 26 September 2011 21:28, Mauro <mrsanna1@gmail.com> wrote:
I have a .cfg configuration file for a xen virtual machine. I need to convert it in xml format to use with libvirt. So I run virsh domxml-from-native xen-xm backupsrv.cfg but I have an error:
error: Unknown failure. How can I investigate about the error?
Can I have a help?

On 27 September 2011 09:01, Mauro <mrsanna1@gmail.com> wrote:
On 26 September 2011 21:28, Mauro <mrsanna1@gmail.com> wrote:
I have a .cfg configuration file for a xen virtual machine. I need to convert it in xml format to use with libvirt. So I run virsh domxml-from-native xen-xm backupsrv.cfg but I have an error:
error: Unknown failure. How can I investigate about the error?
Can I have a help?
Please someone can help?

On 09/26/2011 01:28 PM, Mauro wrote:
I have a .cfg configuration file for a xen virtual machine. I need to convert it in xml format to use with libvirt. So I run virsh domxml-from-native xen-xm backupsrv.cfg but I have an error:
error: Unknown failure. How can I investigate about the error?
Have you looked in the logs to see if any further details are present there? Also, you may want to dial up debug verbosity, using LIBVIRT_DEBUG and friends, as documented here: http://libvirt.org/logging.html Beyond that, all I can suggest is stepping through things with gdb; I'm not familiar enough with xen myself to recognize these symptoms. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

Thanks for your replay. I've augmented debug level, run virsh domxml-from-native xen-xm backupsrv.cfg and this is the error: virsh: malloc.c:3097: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.

On 09/27/2011 10:07 AM, Mauro wrote:
Thanks for your replay. I've augmented debug level, run virsh domxml-from-native xen-xm backupsrv.cfg and this is the error:
virsh: malloc.c:3097: sYSMALLOc: Assertion `(old_top == (((mbinptr)
That's evil :( - this is a failure from glibc, which implies we've corrupted the heap. Try running things under valgrind to find the culprit. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

On 09/27/2011 11:19 AM, Eric Blake wrote:
On 09/27/2011 10:07 AM, Mauro wrote:
Thanks for your replay. I've augmented debug level, run virsh domxml-from-native xen-xm backupsrv.cfg and this is the error:
virsh: malloc.c:3097: sYSMALLOc: Assertion `(old_top == (((mbinptr)
That's evil :( - this is a failure from glibc, which implies we've corrupted the heap. Try running things under valgrind to find the culprit.
Also, it might help to post your backupsrv.cfg file, to see if anyone else can reproduce the failure. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

On 27 September 2011 19:24, Eric Blake <eblake@redhat.com> wrote:
On 09/27/2011 11:19 AM, Eric Blake wrote:
On 09/27/2011 10:07 AM, Mauro wrote:
Thanks for your replay. I've augmented debug level, run virsh domxml-from-native xen-xm backupsrv.cfg and this is the error:
virsh: malloc.c:3097: sYSMALLOc: Assertion `(old_top == (((mbinptr)
That's evil :( - this is a failure from glibc, which implies we've corrupted the heap. Try running things under valgrind to find the culprit.
If I do virsh domxml-to-native xen-xm prova.xml it works with no problems but if I do virsh domxml-from-native xen-xm backupsrv.cfg I have the error. Here is my backupsrv.cfg: # # Configuration file for the Xen instance backupsrv, created # by xen-tools 4.2 on Mon Sep 26 13:29:57 2011. # # # Kernel + memory size # bootloader = '/usr/lib/xen-default/bin/pygrub' vcpus = '1' memory = '1024' # # Disk device(s). # root = '/dev/xvda2 ro' disk = [ 'phy:/dev/vg-xen-domUs/backupsrv-disk,xvda2,w', 'phy:/dev/vg-xen-domUs/backupsrv-swap,xvda1,w', ] # # Physical volumes # # # Hostname # name = 'backupsrv' # # Networking # vif = [ 'ip=192.168.245.10,mac=00:16:3E:65:8E:86,bridge=xenbr.119' ] # # Behaviour # on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart'
participants (2)
-
Eric Blake
-
Mauro