[openstack-dev] [Nova] can someone help me : cannot create VM via libvirt+xen

Mark Kirkwood mark.kirkwood at catalyst.net.nz
Tue Apr 1 07:06:20 UTC 2014


On 01/04/14 19:49, Tian, Shuangtai wrote:
> Hi,
>
> Though the libvirt+ xen is in the group C to support, I am still
> interested in a try to have look at the case.
>
> When I used the last xen and libvirt code from the community. I cannot
> boot a VM, the error log is below.
>
> Is anyone once encountered such situation? Can someone give me some
> suggestions, will be greatly appreciated.
>
> BTW, Will the Icehouse realy deprecate the group C?
>
> Thanks!
>
> Config change :
>
>      libvirt_type=xen
>
>      libvirt_disk_prefix=xvd
>
>      use_cow_images=False
>
> Openstack log:
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb] Traceback (most recent call last):
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/opt/stack/nova/nova/compute/manager.py", line 1043, in _build_instance
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     set_access_ip=set_access_ip)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/opt/stack/nova/nova/compute/manager.py", line 1426, in _spawn
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     LOG.exception(_('Instance
> failed to spawn'), instance=instance)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/opt/stack/nova/nova/compute/manager.py", line 1423, in _spawn
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     block_device_info)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2091, in spawn
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     block_device_info,
> context=context)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3249, in
> _create_domain_and_network
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     domain =
> self._create_domain(xml, instance=instance, power_on=power_on)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3192, in _create_domain
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     domain.XMLDesc(0))
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3187, in _create_domain
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]
> domain.createWithFlags(launch_flags)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in
> doit
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     result =
> proxy_call(self._autowrap, f, *args, **kwargs)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in
> proxy_call
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     rv = execute(f,*args,**kwargs)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in
> tworker
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     rv = meth(*args,**kwargs)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]   File
> "/usr/local/lib/python2.7/dist-packages/libvirt.py", line 896, in
> createWithFlags
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb]     if ret == -1: raise
> libvirtError ('virDomainCreateWithFlags() failed', dom=self)
>
> 2014-04-01 13:58:38.899 TRACE nova.compute.manager [instance:
> fa7f57c2-fb18-4dd3-90b0-521e6b4a25bb] libvirtError: internal error:
> libxenlight failed to create new domain 'instance-0000000a'
>
> Libvirt log:
>
> libxl: debug: libxl_create.c:1356:do_domain_create: ao 0x7f4a380020c0:
> create: how=(nil) callback=(nil) poller=0x7f4a38000ac0
>
> libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk
> vdev=sda spec.backend=tap
>
> libxl: debug: libxl_device.c:210:disk_try_backend: Disk vdev=sda,
> backend tap unsuitable because blktap not available
>
> libxl: error: libxl_device.c:289:libxl__device_disk_set_backend: no
> suitable backend for disk sda
>
> libxl: debug: libxl_event.c:1739:libxl__ao_complete: ao 0x7f4a380020c0:
> complete, rc=-3
>
> libxl: debug: libxl_create.c:1370:do_domain_create: ao 0x7f4a380020c0:
> inprogress: poller=0x7f4a38000ac0, flags=ic
>
> libxl: debug: libxl_event.c:1711:libxl__ao__destroy: ao 0x7f4a380020c0:
> destroy
>

I'm not a Xen user myself - but this looks like the problem:


libxl: debug: libxl_device.c:210:disk_try_backend: Disk vdev=sda, 
backend tap unsuitable because blktap not available


Can you use a different backend (one that is there), or install the 
relevant blktap package? (What distro are you using)?

Cheers

Mark



More information about the OpenStack-dev mailing list