<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi folks,<br><br>Sorry for late reply, i was trying to install this without following any ready-to-use scripts ( but i used one :( ) to understand how things are made. So i installed XCP 1.4.90 from DVD and configured it from installation screen.<br><br>Execute the following commands on dom0<br>------- Dom 0 Extra Config --------<br>cd /etc/xapi.d/plugins/<br>wget -q https://raw.github.com/openstack/nova/master/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost<br>wget -q https://raw.github.com/openstack/nova/master/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenstore.py<br>wget -q https://raw.github.com/openstack/nova/master/plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py<br>wget -q https://raw.github.com/openstack/nova/master/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration<br>wget -q https://raw.github.com/openstack/nova/master/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance<br>wget -q https://raw.github.com/openstack/nova/master/plugins/xenserver/xenapi/etc/xapi.d/plugins/agent<br>chmod 777 *<br>service xapi restart<br>-----------------------------------<br><br>After that i downloaded XenCenter and created a VM from Ubuntu Server 11.10 CD... (all from below is on guest)<br><br>After this, i did updated all the system with command apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y and rebooted the machine. When you do this, you'll boot on newer kernel (3.0.0-16-server, check with uname -a command)... and unsinstall the old kernel (apt-get purge linux-image-3.0.0-12-server).<br><br>After this, i did installed the virtual kernel (3.0.0-16-virtual) and rebooted the machine. Check if you rebooted in this kernel via uname -a and unsinstall the old kernel.<br><br>After this, execute on dom0 again:<br>------- Dom 0 Extra Config --------<br>cd ~<br>wget http://94.212.78.134/res/xenserver/makepv.sh<br>chmod +x makepv.sh<br>./makepv.sh YOUR-XEN-GUEST-NAME<br>-----------------------------------<br><br>After this, you can do<br>apt-get install -y cracklib-runtime curl wget ssh openssh-server tcpdump ethtool python-pip git vim-nox sudo<br>and<br>pip install xenapi<br>wget http://images.ansolabs.com/xen/xe-guest-utilities_5.6.100-651_amd64.deb -O xe-guest-utilities_5.6.100-651_amd64.deb<br>dpkg -i xe-guest-utilities_5.6.100-651_amd64.deb<br>update-rc.d -f xe-linux-distribution remove<br>update-rc.d xe-linux-distribution defaults<br><br>mkdir -p /usr/share/cracklib<br>echo a | cracklib-packer<br>pwconv<br><br>echo root:password | chpasswd<br><br>rm -f /etc/localtime<br>groupadd libvirtd<br>useradd stack -s /bin/bash -d /opt/stack -G libvirtd<br>echo stack:password | chpasswd<br>echo "stack ALL=(ALL) NOPASSWD: ALL" >> etc/sudoers<br>mkdir -p /opt/stack<br>chown -R stack /opt/stack<br><br>After all this, you can install nova-compute , copy nova.conf from your controller and configure the following vars:<br>--connection_type=xenapi<br>--xenapi_connection_username=root<br>--xenapi_connection_password=password<br>--xenapi_connection_url=http://<<XENDOM0IP>><br><br>and restart your nova-compute service.<br><br>You can test your XenAPI configuration using sudo nova-manage shell python and after pasting this<br>import XenAPI<br>import nova.virt.xenapi_conn<br>nova.virt.xenapi_conn.XenAPI = XenAPI<br>x = nova.virt.xenapi_conn.XenAPIConnection("http://<<XENDOM0IP>>","root","password")<br>x.list_instances()<br><br>------<br><br>After all this things, i got Xen working, but i have a error with bridge now, as trace below:<br><br>2012-03-23 16:30:00,116 DEBUG nova.virt.xenapi [-] Updating host stats from (pid=23556) update_status /usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py:488<br>2012-03-23 16:30:00,988 WARNING nova.virt.xenapi [-] Task [Async.host.call_plugin] OpaqueRef:d7a9f0df-0c7c-a760-6b76-3e985c747b1d status: failure    ['XENAPI_PLUGIN_FAILURE', 'host_data', 'KeyError', "'host_uuid'"]<br>2012-03-23 16:30:00,992 WARNING nova.compute.manager [-] Error during report_driver_status(): ['XENAPI_PLUGIN_FAILURE', 'host_data', 'KeyError', "'host_uuid'"]<br>2<br><br>And yes, my permissions are 777 to all plugins.<br><br><div><div id="SkyDrivePlaceholder"></div>> From: todd.deshane@xen.org<br>> Date: Wed, 21 Mar 2012 11:04:19 -0400<br>> To: openstack@lists.launchpad.net<br>> Subject: Re: [Openstack] [OpenStack] Xen Hypervisor<br>> <br>> Just realized my reply was accidentally not sent to the list.<br>> <br>> On Tue, Mar 20, 2012 at 2:03 PM, Todd Deshane <todd.deshane@xen.org> wrote:<br>> > Please post specific error messages.<br>> ><br>> > Some general suggestions inline.<br>> ><br>> > On Tue, Mar 20, 2012 at 12:56 PM, Alexandre Leites <alex_tkd@live.com> wrote:<br>> >> Hi folks,<br>> >><br>> >> First let me say that i'm trying to install xen hypervisor and integrate it<br>> >> with OpenStack for more than one week. I'm studying OpenStack for a company<br>> >> and this company doesn't allow us to use ready scripts (Why? they want to be<br>> >> different from the whole world).<br>> >><br>> >> I have used some links for references:<br>> >> https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md<br>> >> http://wiki.openstack.org/XenAPI<br>> >> http://wiki.openstack.org/XenServer/DevStack<br>> >> http://wiki.openstack.org/XenServer/Install<br>> >> http://wiki.openstack.org/XenServerDevelopment<br>> >> http://wiki.openstack.org/XenXCPAndXenServer<br>> >> http://wiki.xen.org/wiki/XAPI_on_Ubuntu<br>> >> http://wiki.xen.org/xenwiki/XAPI_on_debian<br>> >> https://github.com/openstack/openstack-chef/tree/master/cookbooks/xenserver<br>> >> https://review.openstack.org/#change,5419<br>> >><br>> >> Me and my coworker are trying to install this and integrate on a running and<br>> >> tested OpenStack infrastructure, so this machines will have just<br>> >> nova-compute service. He is trying with XCP and I with XenServer, so let me<br>> >> introduces our tries:<br>> >><br>> >> 1. XCP On Ubuntu (Kronos)<br>> >> * Install fine<br>> >> * Doesn't work<br>> >><br>> ><br>> > There are devstack scripts that create the VMs for you on this<br>> > xcp-toolstack branch.<br>> > https://github.com/mcclurmc/devstack/tree/xcp-toolstack<br>> ><br>> > Kronos hasn't officially been released to anything stable yet, but<br>> > Ubuntu 12.04 and Debian Wheezy should have decently stable support.<br>> ><br>> >> 2. XCP On CentOS<br>> >> * Install fine<br>> >> * We can run a instance of Ubuntu using XenCenter<br>> >> * Installed nova-compute and configured it.<br>> >> * No Errors, but when we try to run a instance on it, appears on an error<br>> >> about XAPI.<br>> >> * We read something about privileged guest, how to set it?<br>> >><br>> ><br>> > It sounds like you need to convert your VM to a PV guest and not a HVM guest.<br>> ><br>> > see:<br>> > https://lists.launchpad.net/openstack/msg06522.html<br>> ><br>> >> 3. DevStack (We can't use this, but also tried to)<br>> >> * Install XenServer (or XCP, we tested on both)<br>> >> * Following<br>> >> https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md<br>> >> guide<br>> >> * On Step 4, it wont create ALLINONE.xva and give some errors about<br>> >> directories on console (running script with root user on XenServer)<br>> >><br>> > post the specific errors and we can help you work through it.<br>> ><br>> >> I hope that someone can help me solve this problems, and maybe help someone<br>> >> else to install Xen and integrate with OpenStack.<br>> >><br>> >> @OffTopic<br>> >> Why this is so difficult?<br>> ><br>> > We are working on making everything work together smoothly. Sorry that<br>> > you have ran into so much trouble so far.<br>> ><br>> > Cheers,<br>> > Todd<br>> ><br>> > --<br>> > Todd Deshane<br>> > http://www.linkedin.com/in/deshantm<br>> > http://blog.xen.org/<br>> > http://wiki.xen.org/<br>> <br>> <br>> <br>> -- <br>> Todd Deshane<br>> http://www.linkedin.com/in/deshantm<br>> http://blog.xen.org/<br>> http://wiki.xen.org/<br>> <br>> _______________________________________________<br>> Mailing list: https://launchpad.net/~openstack<br>> Post to     : openstack@lists.launchpad.net<br>> Unsubscribe : https://launchpad.net/~openstack<br>> More help   : https://help.launchpad.net/ListHelp<br></div>                                       </div></body>
</html>