# Problems importing Xen VMs with 4.14.2

**URL:** <https://forum.opennebula.io/t/problems-importing-xen-vms-with-4-14-2/1548>\
**Category:** Product Support\
**Created:** [December 3, 2015, 1:00pm UTC](https://forum.opennebula.io/t/problems-importing-xen-vms-with-4-14-2/1548 "2015-12-03T13:00:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsanjuan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/hsanjuan/32/4372_2.png) [@hsanjuan](https://forum.opennebula.io/u/hsanjuan)\
**Post date:** [December 3, 2015, 1:00pm UTC](https://forum.opennebula.io/t/problems-importing-xen-vms-with-4-14-2/1548/1 "2015-12-03T13:00:29Z")

</div>

Hello. I am trying to use OpenNebula to import a wild VM (`plotter`) in a hypervisor called `hypervisor001` (id 14)

The Wild VMs tab in sunstone for this HV (and others) is empty.

The `onehost show 14` does show the wild VMs (output below). But the onehost importvm command does not work:

```auto
oneadmin@onemaster001:~$ onehost importvm 14 plotter
No importable wilds with name 'plotter' found.

```

Have plasted some useful outputs below:

onehost show output:

```auto
HOST 14 INFORMATION                                                             
ID : 14                  
NAME : hypervisor001.mydomain
CLUSTER : Production
STATE : MONITORED           
IM_MAD : xen                 
VM_MAD : xen                 
VN_MAD : fw                  
LAST MONITORING TIME : 12/03 12:51:08      

HOST SHARES                                                                     
TOTAL MEM : 32G                 
USED MEM (REAL) : 20.9G               
USED MEM (ALLOCATED) : 4G                  
TOTAL CPU : 2400                
USED CPU (REAL) : 35                  
USED CPU (ALLOCATED) : 400                 
RUNNING VMS : 1                   

LOCAL SYSTEM DATASTORE #112 CAPACITY                                            
TOTAL: : 265.2G              
USED: : 233.1G              
FREE: : 32.1G               

MONITORING INFORMATION                                                          
ARCH="x86_64"
CPUSPEED="2294"
HOSTNAME="hypervisor001"
HYPERVISOR="xen"
IM_MAD="xen"
MODELNAME="Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz"
NETRX="47805525"
NETTX="912301971"
RESERVED_CPU=""
RESERVED_MEM=""
TOTAL_WILDS="2"
VERSION="4.14.2"
VM_MAD="xen"
VN_MAD="fw"
WILDS="Domain-0, plotter"

WILD VIRTUAL MACHINES

NAME IMPORT_ID CPU MEMORY
Domain-0 - - -
plotter - - -

VIRTUAL MACHINES

    ID USER GROUP NAME STAT UCPU UMEM HOST TIME
   268 hsanjuan oneadmin onemaster001.my runn 3.0 4G hyperviso 0d 20h40

```

Probes output:

```auto
oneadmin@hypervisor001:~$ /var/tmp/one/im/run_probes xen4 /opt/datastores 4124 20 14 hypervisor001.mydomain
ARCH=x86_64
MODELNAME="Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz"
DS_LOCATION_USED_MB=238711
DS_LOCATION_TOTAL_MB=271600
DS_LOCATION_FREE_MB=32890
DS = [
  ID = 112,
  USED_MB = 238711,
  TOTAL_MB = 271600,
  FREE_MB = 32890
]
HOSTNAME=hypervisor001
VM_POLL=YES
VM=[
  ID=-1,
  DEPLOY_ID=Domain-0,
  VM_NAME="Domain-0",
  POLL="NAME=Domain-0 VM_NAME=Domain-0 STATE=a CPU=15.2 MEMORY=16232488 NETTX=0 NETRX=0" ]
VM=[
  ID=268,
  DEPLOY_ID=one-268,
  VM_NAME="one-268",
  POLL="NAME=one-268 VM_NAME=one-268 STATE=a CPU=2.0 MEMORY=4194304 NETTX=23705896960 NETRX=24622892032" ]
VM=[
  ID=-1,
  DEPLOY_ID=plotter,
  VM_NAME="plotter",
  POLL="NAME=plotter VM_NAME=plotter STATE=a CPU=20.4 MEMORY=1048576 NETTX=910487808000 NETRX=24327863296" ]
VERSION="4.14.2"
HYPERVISOR=xen
TOTALCPU=2400
CPUSPEED=2294
TOTALMEMORY=33518592
FREEMEMORY=11603968
USEDMEMORY=21914624
USEDCPU=28
FREECPU=2372
NETTX=912298707
NETRX=47803481

```

Any help would be appreciated…

---

<div class="post-metadata">

**Author:** ![hsanjuan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/hsanjuan/32/4372_2.png) [@hsanjuan](https://forum.opennebula.io/u/hsanjuan)\
**Post date:** [December 4, 2015, 10:03am UTC](https://forum.opennebula.io/t/problems-importing-xen-vms-with-4-14-2/1548/2 "2015-12-04T10:03:55Z")

</div>

I have been digging further. The poll script for Xen does not work with Xen XM toolstack (or XL configured with sxp output format), as it expects to parse JSON output which is a XL-feature (and only from Xen 4.2).

It should be indicated in the documentation that the feature is only available with XL and modern versions of qemu-img (older ones won’t provide json output either).
