Configure xen in openstack
First install Nova-compute-xen: APT-Get install Nova-compute-xen Configure NOVA: /Etc/NOVA/nova-compute.conf: -- Lib1__type = xen /Etc/NOVA. conf: -- Connection_type = libvirt -- Lib1__type = xen In this case, the Nova-compute cannot be started, and an error is returned: 2012-06-28 15:12:26 trace Nova traceback (most recent call last ):
2012-06-28 15:12:26 trace Nova file "/usr/bin/NOVA-compute", line 49, in <module>
2012-06-28 15:12:26 trace Nova service. Wait ()
15:12:26 trace Nova file "/usr/lib/python2.7/dist-packages/eventlet/greenthread. py", line 166, in wait
2012-06-28 15:12:26 trace Nova return self. _ exit_event.wait ()
15:12:26 trace Nova file "/usr/lib/python2.7/dist-packages/eventlet/event. py", line 116, in wait
2012-06-28 15:12:26 trace Nova return hubs. get_hub (). Switch ()
15:12:26 trace Nova file "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub. py", line 177, in Switch
2012-06-28 15:12:26 trace Nova return self. greenlet. Switch ()
15:12:26 trace Nova file "/usr/lib/python2.7/dist-packages/eventlet/greenthread. py", line 192, in Main
2012-06-28 15:12:26 trace Nova result = function (* ARGs, ** kwargs)
15:12:26 trace Nova file "/usr/lib/python2.7/dist-packages/NOVA/service. py", line 101, in run_server
2012-06-28 15:12:26 trace Nova server. Start ()
15:12:26 trace Nova file "/usr/lib/python2.7/dist-packages/NOVA/service. py", line 174, in start
2012-06-28 15:12:26 trace Nova self. Manager. update_available_resource (ctxt)
15:12:26 trace Nova file "/usr/lib/python2.7/dist-packages/NOVA/compute/manager. py", line 2409, in update_ava
Ilable_resource
15:12:26 trace Nova self. Driver. update_available_resource (context, self. HOST)
15:12:26 trace Nova file "/usr/lib/python2.7/dist-packages/NOVA/virt/libvirt/connection. py", line 1934, In up
Date_available_resource
15:12:26 trace Nova 'memory _ mb': Self. get_memory_mb_total (),
15:12:26 trace Nova file "/usr/lib/python2.7/dist-packages/NOVA/virt/libvirt/connection. py", line 1711, in Ge
T_memory_mb_total
2012-06-28 15:12:26 trace Nova meminfo = self. _ conn. getinfo () [1]
2012-06-28 15:12:26 trace Nova nameerror: Global name 'self 'Is Not Defined It seems that there is a bug in Nova on ubuntu12.04. Make the following changes: /Usr/lib/python2.7/dist-packages/NOVA/virt/libvirt/connection. py: Change the two rows starting from row 1699: # @ Staticmethod
Def get_memory_mb_total (Self ): In this way, you can start the NOVA-compute. In addition, if you want to use virsh to check the VM, you must note that virsh is qemu by default. You must add the xen parameter: virsh-C xen :///