<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>It looks like you’re hitting a recently introduced bug
(maybe). I haven’t run the code, but from reading through, it looks
like the xenhost.host_data plugin command is going to barf if it is not passed
a host_uuid parameter. It used to gracefully handle that case, but since 37a392dc
it’s not doing so any more. The plugin is being called with no
arguments from nova.virt.xenapi.host.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cc’d John Garbutt, who wrote that bit of code.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ewan.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>
openstack-bounces+ewan.mellor=citrix.com@lists.launchpad.net
[mailto:openstack-bounces+ewan.mellor=citrix.com@lists.launchpad.net] <b>On
Behalf Of </b>Alexandre Leites<br>
<b>Sent:</b> 23 March 2012 10:46<br>
<b>To:</b> openstack@lists.launchpad.net<br>
<b>Subject:</b> Re: [Openstack] [OpenStack] Xen Hypervisor<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>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.<o:p></o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>>
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<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>