<div class="__aliyun_email_body_block"><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Thanks.</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><br ></span></div><div style="clear:both;"><font face="Tahoma, Arial, STHeiti, SimSun"><span style="font-size:14.0px;line-height:23.3px;">The reason is that I want to test to deploy nova-compute on a Hyperv node although there are many problems.</span></font></div><div style="clear:both;"><font face="Tahoma, Arial, STHeiti, SimSun"><span style="font-size:14.0px;line-height:23.3px;"><br ></span></font></div><div style="clear:both;"><font face="Tahoma, Arial, STHeiti, SimSun"><span style="font-size:14.0px;line-height:23.3px;">The command "msiexec /i HyperVNovaCompute.msi ......" , it use the cloudbase solution.</span></font></div><div style="clear:both;"><font face="Tahoma, Arial, STHeiti, SimSun"><span style="font-size:14.0px;line-height:23.3px;">Is there any other installation documents without cloudbase solution ?</span></font></div><div style="clear:both;"><font face="Tahoma, Arial, STHeiti, SimSun"><span style="font-size:14.0px;line-height:23.3px;"><br ></span></font></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><br ></span></div><blockquote style="margin-right:.0px;margin-top:.0px;margin-bottom:.0px;"><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">------------------------------------------------------------------</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">From:Claudiu Belu <cbelu@cloudbasesolutions.com></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Send Time:2016年11月10日(星期四) 05:15</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">To:zhaolihuisky <zhaolihuisky@aliyun.com>; openstack <openstack@lists.openstack.org>; Matt Riedemann <mriedem@linux.vnet.ibm.com></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Subject:RE: [Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><br ></span></div><style type="text/css"></style><div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:13.0px;">No problem. :)<br ><br >
Is there any reason why you really want to manually build from scratch? As I've said, it requires a huge amount of effort to do so.<br ><br >
Like any other OpenStack service, its setup can be automated. If you just want automation, you can simply install it by running something like this:<br ><br >
msiexec /i HyperVNovaCompute.msi /qn /l*v log.txt ADDLOCAL=HyperVNovaCompute,NeutronHyperVAgent,iSCSISWInitiator,FreeRDP INSTALLDIR=C:\OpenStack\Nova GLANCEHOST=glancehost GLANCEPORT=9292 RPCBACKEND=RabbitMQ RPCBACKENDHOST=rabbithost RPCBACKENDPORT=5672 RPCBACKENDPASSWORD=12345678
INSTANCESPATH=C:\HyperV ADDVSWITCH=0 VSWITCHNAME=external1 LIMITCPUFEATURES=”” USECOWIMAGES=1 LOGDIR=C:\log ENABLELOGGING=1 VERBOSELOGGING=1 NEUTRONURL=http://neutronhost:9696 NEUTRONADMINTENANTNAME=service NEUTRONADMINUSERNAME=neutron NEUTRONADMINPASSWORD=12345678
NEUTRONADMINAUTHURL=http://keystonehost:35357/v2.0<br ><br >
With the proper parameters, of course.<br ><br >
For more details on the arguments, check [1].<br ><br >
Alternatively, there are juju charms available for setting up the nova-compute service on a Hyper-V node [2].<br ><br >
[1] <a href="https://cloudbase.it/hyper-v-nova-compute-installer-unattended-setup/">
https://cloudbase.it/hyper-v-nova-compute-installer-unattended-setup/</a><br >
[2] <a href="https://jujucharms.com/u/cloudbaseit/nova-hyperv">https://jujucharms.com/u/cloudbaseit/nova-hyperv</a><br ><br >
Best regards,<br ><br >
Claudiu Belu<br ><br ><div style="font-family:Times New Roman;color:#000000;font-size:16.0px;"><hr ><div style="direction:ltr;"><span style="color:#000000;font-family:Tahoma;"><b >From:</b> zhaolihuisky [zhaolihuisky@aliyun.com]<br ><b >Sent:</b> Wednesday, November 09, 2016 4:10 AM<br ><b >To:</b> openstack; Matt Riedemann; Claudiu Belu<br ><b >Subject:</b> Re: [Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2<br ></span><br ></div><div ></div><div ><div ><div style="clear:both;"><span style="font-size:14.0px;line-height:23.3px;font-family:Tahoma,Arial,STHeiti,SimSun;">Hello Claudiu, thanks.</span><br ></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span style="font-size:14.0px;line-height:23.3px;">I have installed nova-compute with cloudbase solutions, it run very will.</span></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span style="font-size:14.0px;line-height:23.3px;">But, I want to know how to install nova-compute manually with source code on windows 2012.</span></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span style="font-size:14.0px;line-height:23.3px;">I have fellowed the doc in <a href="http://docs.openstack.org/mitaka/config-reference/compute/hypervisor-hyper-v.html">http://docs.openstack.org/mitaka/config-reference/compute/hypervisor-hyper-v.html</a>, it's not the lastest.</span></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span style="font-size:14.0px;line-height:23.3px;">Do you have any other installation documents?</span></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span style="font-size:14.0px;line-height:23.3px;"><br ></span></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span style="font-size:14.0px;line-height:23.3px;">Thank you again.</span></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span style="font-size:14.0px;line-height:23.3px;"><br ></span></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span style="font-size:14.0px;line-height:23.3px;">Lihui Zhao</span></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span style="font-size:14.0px;line-height:23.3px;"> </span></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">------------------------------------------------------------------</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">From:Claudiu Belu <cbelu@cloudbasesolutions.com></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Send Time:2016年11月8日(星期二) 22:37</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">To:zhaolihuisky <zhaolihuisky@aliyun.com>; openstack <openstack@lists.openstack.org>; Matt Riedemann <mriedem@linux.vnet.ibm.com></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Subject:RE: [Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><br ></span></div><style type="text/css"><!-- --></style><div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:13.0px;">Hello,<br ><br >
It seems that you have not installed the requirements necessary to run nova-compute.<br ><br >
To do that, you'll have to install its requirements:<br ><br >
cd path\to\nova\project<br >
pip install -r requirements.txt<br ><br >
If you have a fresh install of python, you might not even have pip installed. You'll have to run:<br ><br >
easy_install pip<br ><br >
Also, keep in mind that nova has quite a few requirements, out of which there are several that require a C compiler (for example: the cryptography, numpy, etc. requirements). There might even be some Linux specific requirements (e.g.: posix_ipc), which are
extremely difficult to build on Windows. Which is why I recommended the installer [1], which already takes care of those requirements automatically.<br ><br >
[1] <a href="https://cloudbase.it/openstack-hyperv-driver/">https://cloudbase.it/openstack-hyperv-driver/</a><br ><br >
Best regards,<br ><br >
Claudiu Belu<br ><br ><div style="font-family:Times New Roman;color:#000000;font-size:16.0px;"><hr ><div style="direction:ltr;"><span style="color:#000000;font-family:Tahoma;"><b >From:</b> zhaolihuisky [zhaolihuisky@aliyun.com]<br ><b >Sent:</b> Friday, November 04, 2016 11:27 AM<br ><b >To:</b> openstack; Matt Riedemann; Claudiu Belu<br ><b >Subject:</b> Re: [Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2<br ></span><br ></div><div ></div><div ><div ><div style="clear:both;">Hello, Claudiu</div><div style="clear:both;"><br ></div><div style="clear:both;">Thanks for your reply.</div><div style="clear:both;">I fellowed the command, but it error:</div><div style="clear:both;"><br ></div><div style="clear:both;">PS C:\OpenStack> python.exe C:\Python27\Scripts\nova-compute-script.py --config-file 'C:\Program Files\OpenStack\Nova\et<br >
c\nova.conf'<br >
Traceback (most recent call last):<br >
File "C:\Python27\Scripts\nova-compute-script.py", line 5, in <module><br >
from pkg_resources import load_entry_point<br >
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 3084, in <module><br >
@_call_aside<br >
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 3070, in _call_aside<br >
f(*args, **kwargs)<br >
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 3097, in _initialize_master_working_set<br >
working_set = WorkingSet._build_master()<br >
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 651, in _build_master<br >
ws.require(__requires__)<br >
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 952, in require<br >
needed = self.resolve(parse_requirements(requirements))<br >
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 839, in resolve<br >
raise DistributionNotFound(req, requirers)<br >
pkg_resources.DistributionNotFound: The 'castellan>=0.3.1' distribution was not found and is required by nova</div><div style="clear:both;"><br ></div><div style="clear:both;">How to resolve this problem?</div><div style="clear:both;"><br ></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">------------------------------------------------------------------</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">From:Claudiu Belu <cbelu@cloudbasesolutions.com></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Send Time:2016年10月28日(星期五) 19:29</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">To:zhaolihuisky <zhaolihuisky@aliyun.com>; openstack <openstack@lists.openstack.org>; Matt Riedemann <mriedem@linux.vnet.ibm.com></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Subject:RE: [Openstack] [OpenStack][Nova][virt][hyperv]</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><br ></span></div><style type="text/css"><!-- p{margin-top:0;margin-bottom:0;}body{direction:ltr;font-family:Tahoma;color:#000000;font-size:10.0pt;}p{margin-top:0;margin-bottom:0;}body{scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-arrow-color:undefined;}--> BODY{direction:ltr;font-family:Tahoma;color:#000000;font-size:10.0pt;}P{margin-top:0;margin-bottom:0;}BODY{scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined;}BODY{scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined;}BODY{scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined;}</style><div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:13.0px;">Hello,v<br ><br >
Thanks Matt for the mail, and I apologize for the delay.<br ><br >
So, the error you've experienced is because you've tried to run an .exe file with python. Instead, you should have run:<br ><br ><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">'C:\Python27\python.exe c:\Python27\Scripts\nova-compute-script.py --config-file c:\etc\nova\nova.conf'</span><br ><br >
My personal recomendation is to use the installer [1], which greatly simplifies setting up a Hyper-V compute node. It comes with already compiled requirements (some of which would require a C compiler), it helps with the config files, and it registers nova-compute,
neutron-hyperv-agent, and ceilometer-polling as Windows services (and you will be able to control with commands like Start-Service / Stop-Service nova-compute (or any other service) in powershell, or net start/stop nova-compute in cmd). It can also be automatable
[2].<br ><br >
I would also recommend using OVS Windows [3]. You will also find a link to a step-by-step installation guide on [3]. Please do keep in mind that you can't run both neutron-ovs-agent and neutron-hyperv-agent at the same time, on the same vSwitches. As far as
security groups go, starting with OVS 2.6 (to be released soon!), you can you the OVSFirewallDriver, but the HyperVSecurityGroupsDriver works as well (starting with Liberty).<br ><br >
As for the Hyper-V version, you can get the latest version, the Windows Hyper-V Server 2016 [4], or at the very least, Windows Hyper-V Server 2012 R2. They are free :)<br >
If you want to also try out live migration, the Hyper-V compute nods will have to be joined into an Active Directory.<br ><br >
For Windows images, you can find some evaluation images here [5]. Windows guests work better on Hyper-V. Or if you want a simple cirros, you can get it from here [6]. Make sure that when you register the images into glance, you'll register them with the vhd
disk_format and hypervisor_type=hyperv. This will ensure that nova will properly schedule instances to Hyper-V compute nodes.<br ><br >
glance image-create --visibility public --property hypervisor_type=hyperv --name cirros-vhdx --disk-format vhd --container-format bare --file cirros-0.3.4-x86_64.vhdx<br ><br >
I would also like to note that we have a weekly Windows / Hyper-V IRC meeting [7], which you are welcome to join and participate / ask any questions you might have.<br ><br >
[1] <a href="https://cloudbase.it/openstack-hyperv-driver/">https://cloudbase.it/openstack-hyperv-driver/</a><br >
[2] <a href="https://cloudbase.it/hyper-v-nova-compute-installer-unattended-setup/">
https://cloudbase.it/hyper-v-nova-compute-installer-unattended-setup/</a><br >
[3] <a href="https://cloudbase.it/openvswitch/">https://cloudbase.it/openvswitch/</a><br >
[4] <a href="https://www.microsoft.com/en-us/evalcenter/evaluate-hyper-v-server-2016">
https://www.microsoft.com/en-us/evalcenter/evaluate-hyper-v-server-2016</a><br >
[5] <a href="https://cloudbase.it/windows-cloud-images/">https://cloudbase.it/windows-cloud-images/</a><br >
[6] <a href="https://cloudbase.it/downloads/cirros-0.3.4-x86_64.vhdx.gz">
https://cloudbase.it/downloads/cirros-0.3.4-x86_64.vhdx.gz</a> <br >
[7] <a href="https://wiki.openstack.org/wiki/Meetings/Hyper-V">https://wiki.openstack.org/wiki/Meetings/Hyper-V</a><br ><br ><br >
If I'm missing anything, please let me know!<br ><br >
Best regards,<br ><br >
Claudiu Belu<br ><br ><div style="font-family:Times New Roman;color:#000000;font-size:16.0px;"><hr ><div style="direction:ltr;"><span style="color:#000000;font-family:Tahoma;"><b >From:</b> zhaolihuisky [zhaolihuisky@aliyun.com]<br ><b >Sent:</b> Thursday, October 27, 2016 11:31 AM<br ><b >To:</b> openstack; Matt Riedemann<br ><b >Subject:</b> Re: [Openstack] [OpenStack][Nova][virt][hyperv]<br ></span><br ></div><div ></div><div ><div ><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Thanks for reply.</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><br ></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">I have fellowed this doc to install nova-compute.</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">But there was an error on the step with command 'C:\Python27\python.exe c:\Python27\Scripts\nova-compute --config-file c:\etc\nova\nova.conf', and
error is:</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">" File "C:\Python27\Scripts\nova-compute.exe", line 1<br >
SyntaxError: Non-ASCII character '\x90' in file C:\Python27\Scripts\nova-compute.exe on line 1, but no encoding declared<br >
; see <a href="http://python.org/dev/peps/pep-0263/">http://python.org/dev/peps/pep-0263/</a> for details"</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">------------------------------------------------------------------</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">From:Matt Riedemann <mriedem@linux.vnet.ibm.com></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Send Time:2016年10月27日(星期四) 16:14</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">To:openstack <openstack@lists.openstack.org></span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">Subject:Re: [Openstack] [OpenStack][Nova][virt][hyperv]</span></div><div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><br ></span></div>
On 10/27/2016 8:38 AM, zhaolihuisky wrote:<br >
> Hi, all<br >
> I want to use hyperv.<br >
> How to install nova-compute with source code on windows 2012 operation system?<br >
><br >
> Best Regards.<br >
> _______________________________________________<br >
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br >
> Post to : openstack@lists.openstack.org<br >
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br >
><br ><br ><a href="http://docs.openstack.org/newton/config-reference/compute/hypervisor-hyper-v.html">http://docs.openstack.org/newton/config-reference/compute/hypervisor-hyper-v.html</a><br ><br >
Claudiu Belu is a good contact for this. He works on the hyper-v compute <br >
driver code in Nova.<br ><br >
-- <br ><br >
Thanks,<br ><br >
Matt Riedemann<br ><br ><br >
_______________________________________________<br >
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br >
Post to : openstack@lists.openstack.org<br >
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></div></div></div></div><div ><br ></div></div></div></div></div><div ><br ></div></div></div></div></div></blockquote><div ><br ></div></div>