Importing wild VM 4.14.2

Hi,
I am running a 2 nodes cluster + the sunstone, and the main purpose of this infrastructure was to migrate all the VM’s that we have in Xen servers to this cloud, so what I did it was to convert the xen images to qcow2, which are able to run over the KVM hosts. Once I’ve got this VM running (I can access to it from virt-manager that I have installed on the cluster), I try to import it following the instructions from Opennebula but it throws the following error:

Tue Jul 5 10:34:39 2016 [Z0][ReM][E]: Req:9536 UID:0 VirtualMachineAllocate result FAILURE [VirtualMachineAllocate] Error allocating a new virtual machine. Parse error: syntax error, unexpected CBRACKET, expecting VARIABLE at line 12, columns 143:147

More over, I’ve tried different approaches to try to migrate my current infrastructure to the cloud, but it didn’t work out . For example I’ve tried replacing the disk image with a VM that is already defined in the cloud, or creating an image and attaching this to an existing VM, or even creating a template based on that image (qcow2 file)

Not sure if this might be related, but the image contains /dev/vda1 and /dev/mapper/VolGroup_root
being vda1 /boot and the VG the rest of the filesystem
a

I hope you can shed light on this.

Cheers.

Hi,

Please add some more info, like virsh dumpxml of the subjected VM

Kind Regards,
Anton Todorov

Hi,
Here is the xml definition for this machine:

c02:~ # virsh dumpxml bscesweb03
+<domain type='kvm' id='19'>
  <name>bscesweb03</name>
  <uuid>75f6044c-c676-4776-8478-813d9ca1fd62</uuid>
  <description>VM Description</description>
  <memory unit='KiB'>1560576</memory>
  <currentMemory unit='KiB'>1560576</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-1.4'>hvm</type>
    <boot dev='hd'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/data/VM-jandres/bscesgf/image01.qcow2'/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci0'/>
    </controller>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
      <listen type='address' address='127.0.0.1'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='none'/>
</domain>

Let me know if you need more info.