Ask Your Question

jilingshu's profile - activity

2015-04-07 21:55:57 -0500 commented answer No log or console for instance in libvirt and Xen

The log problem has been solved. Please my updated post. Thank you.

2015-04-07 21:55:36 -0500 received badge  Editor (source)
2015-04-07 21:54:47 -0500 answered a question No log or console for instance in libvirt and Xen

It turns out that the problem is in my libvirt. libvirt from Ubuntu utopic (14.10) is 1.2.8. This version is too old and includes a bug which prevent it fill in the path for pty when dumping xml from the instance. Upgrading it to the latest version (1.2.12) solve this problem. However, the console problem remains. It keep saying "Guest has not initialized the display (yet)."

2015-04-06 23:56:56 -0500 received badge  Famous Question (source)
2015-04-06 23:56:56 -0500 received badge  Popular Question (source)
2015-04-06 23:56:56 -0500 received badge  Notable Question (source)
2015-04-06 16:17:22 -0500 commented question No log or console for instance in libvirt and Xen

@dbaxps I added the link in my post.

2015-04-06 08:17:13 -0500 asked a question No log or console for instance in libvirt and Xen

Hi all, I have configured my OpenStack Juno installation with official instructions on Ubuntu. The compute node is Xen with libvirt as suggested in a http://wiki.xenproject.org/wiki/Xen_via_libvirt_for_OpenStack_juno (blog post)of http://xen.org. I can successfully launch a instance, 'xl show' confirmed the domain is running. However, in Horizon, 'Log' tab always said

Unable to get log for instance "xxxxx".

And I get following error message from nova log:

2015-04-06 03:05:42.564 1730 TRACE oslo.messaging.rpc.dispatcher     output = self.driver.get_console_output(context, instance)
2015-04-06 03:05:42.564 1730 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2705, in get_console_output
2015-04-06 03:05:42.564 1730 TRACE oslo.messaging.rpc.dispatcher     data = self._flush_libvirt_console(pty)
2015-04-06 03:05:42.564 1730 TRACE oslo.messaging.rpc.dispatcher UnboundLocalError: local variable 'pty' referenced before assignment
2015-04-06 03:05:42.564 1730 TRACE oslo.messaging.rpc.dispatcher 
2015-04-06 03:05:42.575 1730 ERROR oslo.messaging._drivers.common [req-e84c58ba-24a7-4730-bc90-7928b40c3a42 ] Returning exception local variable 'pty' referenced before assignment to caller

The console, however, shows no error message in log, but it always says:

Guest has not initialized the display (yet).

Any suggestion?

EDIT: It turns out that the problem is in my libvirt. libvirt from Ubuntu utopic (14.10) is 1.2.8. This version is too old and includes a bug which prevent it fill in the path for pty when dumping xml from the instance. Upgrading it to the latest version (1.2.12) solve this problem. However, the console problem remains. It keep saying "Guest has not initialized the display (yet)."