<div class="__aliyun_email_body_block"><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><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年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;}</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></blockquote><div ><br ></div></div>