Configure xen in openstack

Source: Internet
Author: User
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 :///  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.